Question: Please write it only and only in C++ language!!!! And use switch statement and write it as simple as possible please. This project will introduce
Please write it only and only in C++ language!!!! And use switch statement and write it as simple as possible please.This project will introduce switch-statements and logical operators Write a program that uses a switch-statement and loops to decide how to assign airline passengers to a particular class of seating on a plane. Prompt for passengers to add, and then (for each passenger) prompt for both class, and destination. As each passenger is entered, print out what flight, and what class they are in At the end after all the passengers are entered, list the total passengers added to each flight. The flights are: Flight #1 Headed to Miami, or Flight#2 Headed to Los Angeles. Passenger classes are 3, 4 and 5 (three classes possible). Include cases for handling classes outside the range (i.e. 1, 2, 6, etc) and include appropriate messages for these non-supported classes... you need to be able to differentiate between the requested classes (i e. "No first class seating available etc.) (optional) Voltage Signal-To-Noise-Ratio (SNRv) is a measure of how "clean" a voltage signal is (i.e. a signal coming from a GPS satellite.) The overall SNR, depends on the value of the 1-second SNR, E, according to the following formulas (from JPL paper: Lowe, S. T., TMO Progress Report 42-137, May 15, 1999) ES 1.6755 SNR,, a V 4 4 64 768 2 1 1 3 E 1.6755 2 28 853 1683) Assume k is equal to '1'. Write a program that prompts for a value of E and (depending of the value of E)prints out the correct calculation for SNRr. Test Cases: E 1.2 SNR, 0.63415589635931 E 25 SNR, 36.27747549346561
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
