Algorithms

Can I have help on how to do this?

A programmer is writing a total ticket price calculator for a theme park. The park offers the price of £13 per adults and £8 per child. There is a bulk purchase discount of 10% off the total price if there are more than 5 people.

Write an algorithm that:
Asks for the number of adult tickets
Asks for the number of child tickets
Calculate the total price
Checks to see if there are more than five people and applies the appropriate discount
Produces the appropriate ticket price

  1. 👍 0
  2. 👎 0
  3. 👁 68
asked by Hollie
  1. It's already been answered

    1. 👍 0
    2. 👎 0
    posted by Hollie

Respond to this Question

First Name

Your Response

Similar Questions

  1. Computer Science

    I haven't done this before and I need some help starting this: A programmer is writing a total ticket price calculator for a theme park. The park offers the price of £13 per adults and £8 per child. There is a bulk purchase

    asked by Hollie on June 18, 2016
  2. ALG2! WORD PROBLEM! PLZ HELP!!

    A family of 5 comes to the amusement park. There are two adults and three children (under the age of 12). They qualify for a special family rate of $174.45. The clerk tells them that a child's ticket always costs $11 less than an

    asked by tyneisha on November 28, 2012
  3. Math

    Game tickets for 1 adult and 2 kids is $21. The adult ticket is $3 more than the kid ticket. How much does adult ticket cost? How much does a child ticket cost? Use a let statement. Write an equation. (21-3) / 3 = x 18/3=x X = $6

    asked by Meagieting on October 9, 2012
  4. Math HELP!!!

    The booster club sold tickets to a high school basketball game. They sold 700 student tickets and 500 general admission tickets, and raised a total of $5000. The combined cost of one student ticket and one general admission ticket

    asked by JSHJHDH on April 2, 2013
  5. Marketing

    How would various company objectives affect the development of a marketing mix for a new type of internet browser software? If this company were just being formed by a former programmer with limited financial resources, list the

    asked by Janet on February 18, 2014
  6. Marketing

    How would various company objectives affect the development of a marketing mix for a new type of internet browser software? If this company were just being formed by a former programmer with limited financial resources, list the

    asked by Janet on February 17, 2014
  7. algebra

    Q 2: If the ticket agency charges ‘p’ dollars per ticket for a concert, it can sell maximum of (40000 – p) tickets. Find: a. A polynomial to represent the total revenue with a ticket price as p dollars. b. How many tickets

    asked by Anonymous on April 26, 2010
  8. Math

    The ratio of the cost of an adult ticket to a student ticket for the circus is 5:3. If $32 is the total spent on tickets, how much was each adult ticket and how much was each student ticket?

    asked by Larry on June 3, 2012
  9. math

    The ticket machine at the service counter was not operating correctly and began to skip every third ticket, beginning with ticket 430. how many tickets were skipped between ticket 431 and ticket 444?

    asked by gary on June 3, 2012
  10. ALG2! WORD PROBLEM!very important!!

    There are two adults and three children (under the age of 12). They qualify for a special family rate of $174.45. The clerk tells them that a child's ticket always costs $11 less than an adult's ticket. How much is each adult

    asked by tyneisha on November 30, 2012

More Similar Questions