The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
answer the question in  pseudo code need help how to write it .
Â
Â
1.) Pseudo Code Problem #2 (20 points)
Program Requirements: A parking company would like a program that calculates the parking
charge based on the vehicle and the number of passengers in the car. The user will enter the
type of vehicle and number of passengers. The program will compute the parking charge and
print the parking charge. The parking charge calculation is based on the following rules:
There are three valid types of vehicles: Limo, Bus, or Car.
For a Limo, charge $40. For a Bus, charge $50. For a Car, ask the user for the number of
passengers, and charge based on table below. If an invalid vehicle type is entered, then
output: Invalid vehicle type XXX
Number of Passengers
1-2
3-4
Over 4
Any other value entered Parking Charge for Car
$5
$10
$15
$15 Sample Output 1:
Enter the vehicle type (limo, bus, or
car)
limo
The charge is $40 Sample Output 2:
Enter the vehicle type (limo, bus, or
car)
bus
The charge is $50 Sample Output 3:
Enter the vehicle type (limo, bus, or
car)
plane
Invalid vehicle type plane Sample Output 4:
Enter the vehicle type (limo, bus, or
car)
car
Enter the number of passengers
2
The charge is $5 Sample Output 5:
Enter the vehicle type (limo, bus, or
car)
car
Enter the number of passengers
4
The charge is $10 Sample Output 6:
Enter the vehicle type (limo, bus, or
car)
car
Enter the number of passengers
5
The charge is $15 Write pseudo code on additional sheet provided.