Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write the program in c++ Courses Groups Calendar Support BAU BAUGO BAU Library P1001 (1-3) Introduc... Overview Plans Resources Follow-up and reports 113 Immersive Reader
write the program in c++
Courses Groups Calendar Support BAU BAUGO BAU Library P1001 (1-3) Introduc... Overview Plans Resources Follow-up and reports 113 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 a char (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 CAPITAL LETTER representing the university name, high- school name, or company name (eg'B for BAU student, "M" for Marmara University student, etc..). We do not accept any non-students to the Clubfest so, if the groupType is 'N then the program will say "No admittance". If the groupType is vand the groupinst is 'B, meaning they are BAU students, the cost is 0. Otherwise, the cost of entrance is 10 per person in the group. If the group is composed of students, the program will print out the ticket cost of the group as an int value. Input Output UB 3 UES 0 NX2 No admittance Answer assignment > Colt MacBook Pro Q A 2 3# + 4 % 5 & 6 I 7 8 ) 9 W 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