Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Brave File Edit View D2L Assignm x H Web Develo D2L Lesson 04 D2L practice que 2L SHERIDAN SLATE S Sheridan Central!... 1) Listen

imageimage

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

Step by Step Solution

3.41 Rating (151 Votes )

There are 3 Steps involved in it

Step: 1

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Programming questions