Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Objectives: You are hired to work at the Rainforest Zoo during the summer. You were asked to design an algorithm and write a C++ program
Objectives: You are hired to work at the Rainforest Zoo during the summer. You were asked to design an algorithm and write a C++ program for the tickets purchasing system. The program prompts the user to input the number of adult tickets, number of child tickets, and number of senior tickets. Moreover, the program checks if the user is a military member or not because the zoo decided to offer 10% discount (before tax) for military members. The tax rate is 5.3%. The prices for the tickets are as follow: Adult Ticket Senior Ticket Children Ticket $17.95 $15.95 $14.95 Design an algorithm and write a C++ program that includes two functions as follow: 1. A void function to prompt the user to input the following: a. number of adult tickets b. number of child tickets C. number of senior tickets d. if the user is a military member or not Make sure to validate the user's input. The number of tickets must be greater than or equal to zero. The user enters Y if he/she is a military member and the user enters N if he/she is not a military member. 2. A value returning function that calculates and returns the net sale amount
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started