Brave File Edit View D2L Assignm x H Web Develo D2L Lesson 04 D2L practice que...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Brave File Edit View D2L Assignm x H Web Develo D2L Lesson 04 D2L practice que ◄ с □ 2L SHERIDAN SLATE S Sheridan Central!... 1) Listen History Bookmarks Profiles Tab Window Help Google Docs Search Resu ★PROG 1008 slate.sheridancollege.ca/d2l/le/content/1014076/viewContent/13012620/View google drive Submission YouTube Facebook Assignment 1 This assignment will test your knowledge and skills acquired in the first two weeks of this course. Assignment Requirements For example if you use the value 65 for the bearing degree, your output would be: The runway for a bearing of 65 would be: 7 Or, if you use the value 350 for the bearing degree, your output would be: The runway for a bearing of 350 would be: 36 Homework Chartwell login -. 14.073 SEP 16 employee.ja NhacCuaTui S ♫ $ 22% 4 PROG 1008 W VI TX Assignment YouTube to Mp3 M... V Airport runways are often given numbers determined by the direction in which planes travel as they move along the runways. If we assume that an airport contains 36 runways, the number of a runway is found by taking the bearing to the nearest ten degrees. For example, a runway with a bearing between 00 and 9⁰ would have a runway number of 1; a runway with a bearing between 260 and 269 would have a runway number 27. Write a program that uses a variable of type int with a value between 0 and 359 for bearing (0° to 3590) and then determines the corresponding runway number. Declare and use CONSTANTS, not literals in your calculation. (C. Note: The program must produce the correct output, when the value for bearing is changed, without the need to modify the output statement. The solution must not contain IF-ESLE IF-ELSE statements. We have not learned yet selection statements. In addition using IF statements in this case would be very inefficient. I▶ Airport run ឆ 1 Other Requirements • This assignment is to be done individually; you are not allowed to work on this assignment with anyone. See also the Academic Honesty Policy for more details. Copied assignments will be subject to regulations against academic integrity. • All assignments are subject to a late penalty of 10% per day (including weekends). • Late assignments will only be accepted up to 3 days after the due date (including weekends). ♂ ດາ New Tab youtube cutter so... (1) Claim Allianz Fri 16 Sep 18:04 > Bonus (1 mark) There are no partial marks for bonus points. If you are going to do the bonus part, you do not need to provide the solution for the initial assignment. Just submit the solution for the bonus one. Your output must be as it is shown below. Assuming that the airport has only 20 runways, calculate the runway that will show a number between 1 and 20. In addition the program the program should work even when the bearing number is greater than 359. Since 360°, 720⁰...etc. (full circles) are equivalent to 0º, calculate the runway by excluding multiples of 360°. Output examples for different bearing values: The runway for a bearing of 65 would be: 4 The runway for a bearing of 357 would be: 20 The runway for a bearing of 1234 would be: 9 Brave File Edit View D2L Assignm x H Web Develo D2L Lesson 04 D2L practice que ◄ с □ 2L SHERIDAN SLATE S Sheridan Central!... 1) Listen History Bookmarks Profiles Tab Window Help Google Docs Search Resu ★PROG 1008 slate.sheridancollege.ca/d2l/le/content/1014076/viewContent/13012620/View google drive Submission YouTube Facebook Assignment 1 This assignment will test your knowledge and skills acquired in the first two weeks of this course. Assignment Requirements For example if you use the value 65 for the bearing degree, your output would be: The runway for a bearing of 65 would be: 7 Or, if you use the value 350 for the bearing degree, your output would be: The runway for a bearing of 350 would be: 36 Homework Chartwell login -. 14.073 SEP 16 employee.ja NhacCuaTui S ♫ $ 22% 4 PROG 1008 W VI TX Assignment YouTube to Mp3 M... V Airport runways are often given numbers determined by the direction in which planes travel as they move along the runways. If we assume that an airport contains 36 runways, the number of a runway is found by taking the bearing to the nearest ten degrees. For example, a runway with a bearing between 00 and 9⁰ would have a runway number of 1; a runway with a bearing between 260 and 269 would have a runway number 27. Write a program that uses a variable of type int with a value between 0 and 359 for bearing (0° to 3590) and then determines the corresponding runway number. Declare and use CONSTANTS, not literals in your calculation. (C. Note: The program must produce the correct output, when the value for bearing is changed, without the need to modify the output statement. The solution must not contain IF-ESLE IF-ELSE statements. We have not learned yet selection statements. In addition using IF statements in this case would be very inefficient. I▶ Airport run ឆ 1 Other Requirements • This assignment is to be done individually; you are not allowed to work on this assignment with anyone. See also the Academic Honesty Policy for more details. Copied assignments will be subject to regulations against academic integrity. • All assignments are subject to a late penalty of 10% per day (including weekends). • Late assignments will only be accepted up to 3 days after the due date (including weekends). ♂ ດາ New Tab youtube cutter so... (1) Claim Allianz Fri 16 Sep 18:04 > Bonus (1 mark) There are no partial marks for bonus points. If you are going to do the bonus part, you do not need to provide the solution for the initial assignment. Just submit the solution for the bonus one. Your output must be as it is shown below. Assuming that the airport has only 20 runways, calculate the runway that will show a number between 1 and 20. In addition the program the program should work even when the bearing number is greater than 359. Since 360°, 720⁰...etc. (full circles) are equivalent to 0º, calculate the runway by excluding multiples of 360°. Output examples for different bearing values: The runway for a bearing of 65 would be: 4 The runway for a bearing of 357 would be: 20 The runway for a bearing of 1234 would be: 9
Expert Answer:
Answer rating: 100% (QA)
a program that determines the corresponding runway number for a given bearing taking into account that runway numbers are based on the direction in which planes travel and are rounded to the nearest 1... View the full answer
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
The City of Pfeiffer starts the year of 2010 with the General Fund and an enterprise fund. The General Fund has two activities: education and parks/recreation. For convenience, assume that the...
-
find the steady state expression for vo in the circuit fig 9.32 if ig = 500cos2000tmA 3) 9.32 Find the steady-state expression for u,, in the circuit of Fig. P9.32 if i = 500 cos 2000 mA. Figure...
-
The following transactions took place in December 2017 for MegaMart. MegaMart uses the contract- based approach to revenue recognition and a perpetual inventory system. MegaMart estimates returns at...
-
The unclassified balance sheet accounts for Sorkin Corporation, which is a public company using IFRS, for the year ended December 31, 2011, and its statement of comprehensive income and statement of...
-
The generator initially provided \(125 \mathrm{~W}\) of power. If you assume that the power of the generator is proportional to the activity of the plutonium, by approximately what percent did the...
-
Bonnie and Jake (ages 35 and 36, respectively) are married with no dependents and live in Montana (not a community property state). Because Jake has large medical expenses, they seek your advice...
-
What are the mechanisms underlying immuno senescence and how does age-related decline in immune function impact susceptibility to infections and vaccine responsiveness?
-
On January 1, 2016, Iowa Company purchased a delivery truck for $32,000. The van was estimated to have a 5-year useful life or 100,000 miles. Salvage value was estimated at $2,000. The van was driven...
-
Student A gets a motorized model airplane for her birthday. She flies it in a circle that has a radius of 36 m. If it has a period of 3 seconds, what is the velocity of the plane?
-
A. During 2018, Fossil INC had sales of $600,000, cost of goods sold of $450,000, administrative and selling expenses of $95,000, depreciation expense of $140,000 and interest expense of $70,000. The...
-
How does reliability shows in customer service management particularly in supermarket like T&T Supermarket and Real Canadian Superstore? How does competence shows in customer service management...
-
1) a) b) Assignment must be uploaded to Canvas as a pdf file or MS Word. It is ok to scan a hand-written document, but scan to pdf only (no jpeg or camera photo, etc.) Also, scan must be a single...
-
compare and contrast HR functions in Brazil with the USA. The HR functions that I am going to compare and contrast are training, human resources development, and performance evaluation. How are they...
-
As a future professional how can you overcome an ethical dilemma in your organization
-
How does health insurance risk differ from other types of insurance risk (e.g., automobile or homeowners insurance)? What is the difference between cost sharing and cost shifting? Is retiree health...
-
Write a program that repeatedly prompts the user to enter a capital for a state. Upon receiving the user input, the program reports whether the answer is correct. Assume that 50 states and their...
-
Given an undirected graph G = (V, E) and an integer k, find an induced subgraph H of G of maximum size such that all vertices of H have a degree > = k, or conclude that no such induced subgraph...
-
Write the following method that displays the bit representation for the last byte in an integer:public static?String getBits(int?value)For a hint, see Programming Exercise 5.44. Write a program that...
-
When are increased profits in a managers personal interest?
-
Make a list of six aims that a manager of a high street department store might have. Identify some conflicts that might arise between these aims.
-
A frequent complaint of junior and some senior managers is that they are frequently faced with new targets from above, and that this makes their life difficult. If their complaint is true, does this...
Study smarter with the SolutionInn App