2. Write a program for the Air Force to label an aircraft as military or civilian. The program is to be given the plane's observed speed in kilometer/hour (km/h) and its estimated length in meters. For Planes travelling in excess of 1100 km/h, and length more than 52 meters, you should label them as "CIVILIAN" aircraft, and shorter such as 500 km/h and 20 meters as "MILITARY" aircraft. For planes traveling at slower speeds, you will issue an "It's a Bird" message.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 12PE: Write a program that takes as input five numbers and outputs the mean (average) and standard...
icon
Related questions
icon
Concept explainers
Question

Computer Programming
Language: C
Conditional Statements

2. Write a program for the Air Force to label an aircraft as military or civilian.
The program is to be given the plane's observed speed in kilometer/hour
(km/h) and its estimated length in meters. For Planes travelling in excess
of 1100 km/h, and length more than 52 meters, you should label them
as "CIVILIAN" aircraft, and shorter such as 500 km/h and 20 meters as
"MILITARY" aircraft. For planes traveling at slower speeds, you will issue
an "It's a Bird" message.
Transcribed Image Text:2. Write a program for the Air Force to label an aircraft as military or civilian. The program is to be given the plane's observed speed in kilometer/hour (km/h) and its estimated length in meters. For Planes travelling in excess of 1100 km/h, and length more than 52 meters, you should label them as "CIVILIAN" aircraft, and shorter such as 500 km/h and 20 meters as "MILITARY" aircraft. For planes traveling at slower speeds, you will issue an "It's a Bird" message.
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr