PROGRAMMING – QUESTION 5: (10 PTS) In the textbox below, Wri…
PROGRAMMING – QUESTION 5: (10 PTS) In the textbox below, Write the Swift Coding that will solve the following programming problem: Use “explicit” data declaration for the following variables which will NOT have a decimal point: Age of Individual Assign a value to Age of Individual of your choosing between 1-90. Use “explicit” data declaration for the following variables which will NOT have a decimal point: Number of Tickets Requested Assign a value to Age of Individual of your choosing between 1-5. ————————————————————————— Use “explicit” data declaration for the following variables that will be CALCULATED, and which will be non-numeric and more than one character: Individual Category. Use “explicit” data declaration for the following variables that will be CALCULATED, and which will have a decimal value : Movie Charge and Movie Amount Due. ====================================================================== Write the ONE “SWITCH STATEMENT” that will CALCULATE/FIND the Individual Category and the Movie Charge. *************************************************************************** Rate based on the following factors: For Individual Age Individual Category Movie Charge 1 year old or less……………………………..Infant……………………………………………………..$0.00 2 years old to 12 years old…………………Child……………………………………………………..$5.00 13 years old to 19 years old ………………Teenager…………………………………………………$12.50 20 years old or older…………………………Adult……………………………………………………..$17.65 ======================================================================= Write the formula that will CALCULATE/determine the Movie Amount Due which is found by MULTIPLYING the Number of Tickets Requested by the Movie Charge. =============================================================== Print the resulting values for: Individual Category , Movie Charge and the Movie Amount Due ===================================================================
Read Details