Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ Assignment Write a program that calculates the ticket cost of a group coming to BAU ClubFest2021. The program will read three inputs in the

c++

image text in transcribed

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: US 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 group Type 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. Input U AGU 3 U BAU 8 H ROB 40 Output 46 16 No admittance

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

=+X. Is it feasible to perform Function X? For instance,

Answered: 1 week ago

Question

What is are examples of COVERT non-violence action?

Answered: 1 week ago

Question

Describe the appropriate use of supplementary parts of a letter.

Answered: 1 week ago