Question: LT Immersive Reader Assignment Write a program that calculates the ticket cost of a group coming to BAU ClubFest2021. The program will read three inputs

 LT Immersive Reader Assignment Write a program that calculates the ticket

LT Immersive Reader Assignment Write a program that calculates the ticket cost of a group coming to BAU ClubFest2021. The program will read three inputs in the following order: type of the group as a char (groupType), institution of the group as an std::string (groupinst), and number of people in the group as an int (groupNbr). The type of the group can be ONLY one of the three following things: "U": University student 'H: High-school student "N: Non-student Institution of the group will be A SINGLE WORD representing the university name, high-school name, or company name (e.g., "BAU' for BAU student, 'YTU' for Yildiz Technical University student, etc..). We do not accept any high-school students to the ClubFest so, if the groupType is 'H' then the program will say "No admittance". If the groupType is 'U' and the groupinst is 'BAU', meaning they are BAU students, the cost is 2 per person in the group. Otherwise, the cost of entrance is 20 + 13 per 2 PEOPLE in the group (rounded up). If the group is composed of non-high school students, the program will print out the ticket cost of the group as an int value. . U AGU 3 U BAU 8 H ROB 40 Input Output 46 16 No admittance Answer assignment

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!