Skip to content

Latest commit

 

History

History

10 - Self-Checkout

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Self-Checkout

Create a self-checkout system.
Prompt for the number of items, take each item's price, and also its quantity.
Calculate the subtotal, use a tax rate of 5.5%, and return the total.

EXAMPLE:

How many items? 2
Enter the price of item 1: 25
Enter the quantity of item 1: 2
Enter the price of item 2: 4
Enter the quantity of item 2: 4
Subtotal: £66
Tax: £3.63
Total: £69.63