Reference no: EM13979023
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.
A coin that is balanced should come up heads half the time
: A coin that is balanced should come up heads half the time in the long run. A coin is tossed 4040 times and gives 2085 heads.
|
Using bitwise operators
: Using bitwise operators. Now, the goal is to find prime number less than 31, which is a number -1 that a " unsigned int" variable takes in bits. Instead of using an array, let's use an" unsigned int "variable,
|
Find prime number less than 31
: Find prime number less than 31,using bitwise operators. which is a number - 1 that a"unsigned int" variable takes in bits.Instead of using an array, let's use an "unsigned int" variable.
|
Input into the budgeting process
: For governmental agencies, a budget places a legal limit on expenditures. As employees are asked for input into the budgeting process, what types of biases are likely to be encountered? Explain why these biases exist.
|
Performs the necessary computations
: 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 reques..
|
What would be the power of the type of test used in problem
: What test can be used to test the hypothesis that an increase in amount of sleep will change the number of medical errors per day?
|
How did the organization create a guiding coalition
: Build a guiding coalition for your change - Review the article titled Creating Cultural Change in a 115-Year-Old R&D Organization". How did the organization create a guiding coalition
|
Research paper on individualism in fahrenheit 451
: Argumentative Research Paper on Individualism in Fahrenheit 451
|
Determining the mixed-attribute model
: Assume a 6% discount rate is reasonable, and using a mixed-attribute model, prepare the journal entries to account for this hedge at the following dates:
|