Need help on how to start and do this homework problem?

For this assignment, write a program that will calculate the amount that a customer spends on tickets at a movie theater.

The program should:

Prompt the user for the number of adult tickets they would like to purchase

Prompt the user for the number of childrens tickets they would like to purchase

Prompt the user to determine if they have a discount coupon ("Y" for yes, anything else for no)

If the user has a discount coupon, determine if it's for a free adult ticket or for a free childrens ticket ("A" for adult, "C" for child, anything else is an error)

Calculate the user's purchase amount

Display the number of adult tickets that were purchased, the number of childrens tickets that were purchased, the discount amount (if a discount was applied to the purchase), and the total purchase amount.

Calculations

An adult ticket costs $10.50 while a child's ticket costs $5.00.

The purchase amount is the cost of adult tickets plus the cost of childrens tickets minus the discount (if any).

Processing Requirements



All of the calculated dollar amounts should be displayed with exactly 2 digits after the decimal point.

The numeric values read in from the user should all be integer values. The discount values read in from the user should all be string values. Use meaningful variable names.

Make sure and test your program with values that you have calculated.



Output

A few runs of the program should produce the following results:

Run 1

Enter the number of adult tickets that are being purchased: 2
Enter the number of child tickets that are being purchased: 5

Do you have a discount coupon (Y for yes)? Y

Is the discount for an adult or child's ticket (A for adult, C for child)? C
This is exactly the same problem as your other post in the General C++ page.

Don't do this - it's confusing, someone might write a whole lot of stuff into one thread, only to discover someone else has written heaps of the same into the other one.

You are not going to get any help until you show some code of your own.
Topic archived. No new replies allowed.