write an algorithm to accept the price and quantity of the product that has been purchased and display the total amount spent
Answers
Answered by
7
Answer:
Step 1: Accept the price
Step 2: Accept the quantity
Step 3: Calculate the total amount price*quantity
Step 4: Display the total amount spent
Answered by
1
Answer:
Explanation:
1. Start
2. Read ItemName
3.Read price Per unit
4.Read quantity
5. Total Cost =quantity * Price per Unit
6.Display "Total payment"
7.Read payment
8. PayChange= Payment - TotalCost
9. Display ItemName, Payment ,TotalCost and PayChange
End
Similar questions