Chapter
2-3 Programs
(REM, CLS,
PRINT, INPUT, LET, Variables, Expressions)
See textbook, Pg 53, #4
Write a program that allows
the user to enter the price of an item for sale. The program should compute the sales tax due on the product and
the final price of the product after sales tax. The output should show the price before tax, the tax, and the
price after tax. Assume a sales tax of
6%.
Write a program that allows
the user to enter the price of a product and a discount percentage. For example, the user may enter an item that
normally costs $1400, but is available at a 25% discount. The user should enter the price and the
discount percentage. The program should
compute the discount value and show the pre-discount price, the discount
amount, and the post-discount price.
A fast food restaurant
charges $1.49 for burgers, $0.89 for fries, and 0.99 for sodas.
Write a program that allows
an employee to enter an order (the number of burgers, fries, and sodas), and
then display a total, the tax (at 6%), and the final cost. The program should look similar to:
Enter the number of
burgers: 3
Enter the number of
fries: 2
Enter the number of sodas:
5
The total before tax
is: $11.20
The tax is $0.67
The grand total is $11.87.
When the program works, modify
the program to allow the employee to enter the amount tendered, and then
display the change. Addition program
output should look similar to:
Enter the amount
tendered: 20.00
The change is: $8.13