Write a program that accepts the number of people in each


Ment Park Problem - Part I   

Write a C++ program for an amusement park to display the bill for the cashier.  The pricing schedule is as follows: 

 Category  Price  Children   $ 10.00 each  Adults   $ 20.50 each   

Write a program that accepts the number of people in each of the two age categories, performs the necessary computations, and displays a bill for the group's admission similar to the display below.  After displaying the total bill, the program requests the cash received and calculates the change.  Be sure to test for a variety of values.  You may assume the cash payment is equal to or greater than the total bill. 

Use the amuseOne.cpp file as a template for this project.  This code will help you organize your first project.  Be sure to delete my comments.  

Here is a sample display after two values are entered:     

Purpose of this project 

Develop C++ program with the following features: 

o Constants and variables o Input data o Calculations including totals o Output display with readable formatting 

Project One Page 2 

? Advice from the Instructor: 

o Print and review the information listed with the Projects link. 

o Chapter Two in the text contains information on all the C++ tools you need. 

o The Chapter Two Notes contain the code for the Payroll Problem.  This sample uses all the elements you need for Project One. 

o As you work on Project One, only code the input, calc, and output for children. Don't add the code for adults until the child code works. 

This will eliminate a lot of frustration as you work. 

o Problems that students have with this project: 

? Don't set up constants (see Chapter 2.5 Naming Constants). ? Don't align the decimals in the output (see Chapter 2.2 Formatting for Numbers with a Decimal Point and Formatting for Numbers with a Decimal Point in the Chapter Two Notes).    

CSIT 210 Introduction to Programming (Java) is a prerequisite for this course.  You will find that C++ statements are very similar to Java so you can rely on your Java skills in this class.  The variables, constants, and calculations are the same.  The major difference is in the input/output statements and the output formatting.

Solution Preview :

Prepared by a verified Expert
Business Management: Write a program that accepts the number of people in each
Reference No:- TGS01285423

Now Priced at $30 (50% Discount)

Recommended (91%)

Rated (4.3/5)