Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A code must calculate the costs of tickets of a group visiting UNIFest-21. The code will take 3 inputs in the following order: type of
A code must calculate the costs of tickets of a group visiting UNIFest-21. The code will take 3 inputs in the following order: type of the group as a char, institution of the group as string and number of the group as an int The type of the group can be ONLY one of the three following things: "U". stud for Uni 'H': stud for High school "N". stud for Non 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..). high-school students aren't accepted to the UNUFest so, if the group Type is 'H' then the program will say "No admittance. If the group Type is 'U' and the group Institution is YRE, meaning they are YRE 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
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