Loading
Home › Computer Science Help › Write a program that displays the price of a plane ticket...
Status: Completed

Write a program that displays the price of a plane ticket depending on the age of the passenger. The program asks the user to enter the age and the price of the ticket and calculates the total cost based on the discount table below. The program should display the final cost of the ticket.

Date Posted: 03/12/2015
Category: Computer Science
Due Date: 03/12/2015
Instruction
Write a program that displays the price of a plane ticket depending on the age of the passenger. The program asks the user to enter the age and the price of the ticket and calculates the total cost based on the discount table below. The program should display the final cost of the ticket.
Attached
No File uploaded yet.
Bidders
BusyStudent 11 years, 6 months ago
Rated 10.0 earned 155.00 around 2 assignments.
I can do this easy. But what language is this required?
$25.00
  • C++
    User_8378 | Mar 12, 2015, 20:26 PM
  • When do you finish it ?
    User_8378 | Mar 12, 2015, 20:27 PM
  • hey still here!
    User_8378 | Mar 12, 2015, 20:34 PM
  • hey still here!
    User_8378 | Mar 12, 2015, 20:34 PM
  • Depends. Do you only need the code?
    User_3213 | Mar 12, 2015, 20:36 PM
  • yes
    User_8378 | Mar 12, 2015, 20:41 PM
  • I can do it in one hour maximum
    User_3213 | Mar 12, 2015, 20:43 PM
  • Or 30 minutes..
    User_3213 | Mar 12, 2015, 20:47 PM
  • 30$ alot it just was 25$
    User_8378 | Mar 12, 2015, 20:48 PM
  • Ok. Ill do it for 25.
    User_3213 | Mar 12, 2015, 20:49 PM
  • alright do not be late plz you have 35 mins
    User_8378 | Mar 12, 2015, 20:50 PM
  • Working on it.
    User_3213 | Mar 12, 2015, 20:52 PM
  • So how much would be the full price of a ticket?
    User_3213 | Mar 12, 2015, 21:02 PM
  • I uploaded the code. The full price I put was 30. You can just change that.
    User_3213 | Mar 12, 2015, 21:12 PM
  • the user will enter it
    User_8378 | Mar 12, 2015, 21:25 PM
  • where can i find it ?
    User_8378 | Mar 12, 2015, 21:27 PM
  • where can i find it ?
    User_8378 | Mar 12, 2015, 21:27 PM
  • At the top. Next to the file you uploaded
    User_3213 | Mar 12, 2015, 21:28 PM
  • it's not right
    User_8378 | Mar 12, 2015, 21:33 PM
  • What part.
    User_3213 | Mar 12, 2015, 21:37 PM
  • all of it
    User_8378 | Mar 12, 2015, 21:43 PM
  • Its perfectly running on my part. Please elaborate
    User_3213 | Mar 12, 2015, 21:45 PM
  • I do not say it does not run its run but not like what i need
    User_8378 | Mar 12, 2015, 21:48 PM
  • int age should no more than age and about the price you do not have to choose your own price , the user should enter any price
    User_8378 | Mar 12, 2015, 21:50 PM
  • also no need for asking how many tickets, the question did not say that !!
    User_8378 | Mar 12, 2015, 21:52 PM
  • Ok. Let me edit
    User_3213 | Mar 12, 2015, 21:53 PM
  • The program asks the user to enter the age and the price of the ticket and calculates the total cost based on the discount table below
    User_8378 | Mar 12, 2015, 21:53 PM
  • -Up to 2 years old (Free) -Older than 2 and up to 18 years old (25% discount for children and minors) -Older than 18 and up to 25 years old (10% youth discount) -Older than 25 and up to 64 years old (Full price) -65 or more (5% senior discount)
    User_8378 | Mar 12, 2015, 21:55 PM
  • the first if statement is wrong, so if the age less than 2, what the program should do ?
    User_8378 | Mar 12, 2015, 21:58 PM
  • many errors !!
    User_8378 | Mar 12, 2015, 22:01 PM
  • you know what I will cancel the assignment, because it past due,
    User_8378 | Mar 12, 2015, 22:05 PM
  • That's a bit unfair since I had already put on work.
    User_3213 | Mar 12, 2015, 22:10 PM
  • I had already uploaded another file. Much simpler
    User_3213 | Mar 12, 2015, 22:11 PM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}