Question: Using Visual Studio C#, make up a program. Nested if else Purpose: Calculate the total amount due after parking in the Pentagon Parking lot. Important:
Using Visual Studio C#, make up a program.


Nested if else Purpose: Calculate the total amount due after parking in the Pentagon Parking lot. Important: 1. You must complete the pseudo code before you begin. The pseudocode should summarize the structure of the nested if/else statements that you will use. 2. The user input MUST be in minutes. Your program should convert the minutes to hours PENTAGON VISITOR PARKING FEES First 2 hours Cars Free Next 3 hours $.50 hour (for hours 3-5) Next 10 hours $.25 hour (for hours 6-15 Trucks: First 1 hour Free Next 2 hours $1.00 hour for hours 2-3) Next 12 hours 75 hour (for hours 4-15) Senior Citizens: No Charge Write a program that will accept as input: 1. A one-character designator C, T, or S (for Car, Truck, or Senior Citizen) 2. The number of minutes (a whole number) a vehicle has been parked Program specifics: 1. The program should compute the appropriate parking charge for the customer. 2. You must use a nested if else. This program SHOULD NOT be a huge if-else ladder. 3. User input MUST be in minutes. 4. Any part of an hour (from 1 minute to 60 minutes) should be counted as a full hour 5. Vehicles will never remain for more than 15 full hours (The vehicle is towed at the end of the 15th hour. No cost should be displayed just a mean warning.) 6. Senior citizens will not be towed and do not need to be told how long they parked 7. The user interface should a. Ask the user the relevant data input questions. (Time MUST be in minutes.) b. Display the total number of hours the user will be charged for c. Look neat and attractive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
