Posts Tagged ‘White Space’

can you put this in c++ format?

lincolndriver97 asked:


to all c++ programers, please help me write this program, or if you know how to do it, please do it. remember you’ll get the points.
Write a program to compute and print the cost of airline tickets from Boston to New York.

Your program prompts the user to input a ticket price.
Your program prompts the user to input the number of tickets to be bought.

Due to a membership in travel clubs you will receive a 13% discount.

There is 8.75% tax on the price of the tickets plus a airport charge of $15.

Your program should print out the total amount due in the following format (you may use spaces or the tab for the white space, which does not have to be a specific number of spaces), with the following input.

# of tickets: 5 @ $178.00
subtotal:
amount of discount:
total without tax:
tax:
airport charge: $15
total due:

DANNY