Question: Mandatory ) Write a program that uses a switch - statement and loops to decide how to assign airline passengers to a particular class of
Mandatory Write a program that uses a switchstatement 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# Headed to Miami, or Flight# Headed to Los Angeles. Passenger
classes are and three classes possible Include cases for handling classes outside
the range ie etc. and include appropriate messages for these nonsupported
classes...you need to be able to differentiate between the requested classes ieNo first
class seating available. etc.
Optional Voltage SignalToNoiseRatio SNRV is a measure of how clean a
voltage signal is ie a signal coming from a GPS satellite. The overall SNRV depends
on the value of the second SNR
according to the following formulas from JPL
paper: Lowe, S T TMO Progress Report May :
SNRV k
k
Assume k is equal to Write a program that prompts for a value of
and
depending of the value of
prints out the correct calculation for SNRV
Test Cases:
; SNRV
; SNRV
Optional A Taylor series expansion can approximate various functions with its
terms...the more terms, the closer to the real function value it is The Taylor series
expansion of ex xn
n x
x
x
n
Write a program that calculates ex until the
amount a new term adds is less than Prompt for x and calculate ex Print out the
result, and the number of terms needed. Test case: e
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
