Thread: C++ Project

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    8

    Question C++ Project Help Needed

    I have to do a program for a class and I am clueless.

    I have to write a C/C++ program for an amusement park that encourages family visits. The pricing schedule is as follows:

    Category Price

    Children under 8 $ 2.00 each

    Youth 8 - 18 $ 8.50 each (for every 4 tickets in this age group,
    one person is free; this means for every four tickets purchased, the 4th ticket is free.)

    Adults 19+ $12.50 each (after 10 adult tickets, the price is $9.00 the first 10 tickets are always $12.50)


    All groups with 20 or more people must pay a $25.00 security fee.

    Write a program that accepts the number of people in each of the three age categories, performs the necessary computations, and displays a bill for the group's admission similar to the display below. Display the number of tickets and the cost of admission for each category, total number of tickets, and the total cost. Only display the security fee if not zero. Be sure to test for a variety of values.

    Set up constants as necessary.

    Attached is the code I have written so far. I have the basics down but can't get the necessary mathmeatical operations down.

    If someone could take a look and give me suggestions I would greatly appreciate it.
    Last edited by Rhino1775; 10-16-2003 at 12:52 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 09:05 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. Dynamic Binding
    By gpr1me in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2006, 09:01 AM
  4. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM