127,533 views
40 votes
40 votes
Write an algorithm to create a customer’s bill for a company. The company sells only five different products. TV, VCR, Remote Controller, CD Player, Tape Recorder. The unit prices are P$400, $220, $35, $280 and $90 respectively. The algorithm must read the quantity of each piece of equipment purchased from the keyboard. It the calculates the cost of each item, the subtotal, and the total cost after an 8% sales tax.

User RealWillyWonka
by
2.6k points

1 Answer

10 votes
10 votes

Answer:

so

tv= 400$

VCR= $220

remote controller= $35

CD Player= $280

Tap recorder= $90

so total = $1025 total

here 8% sale tax increase so is 82$ so

1025-82$ = 943 total amount

increase or decrease tax according to your question :)

User Giggle
by
2.5k points