Computer Science, asked by mahesboomi79, 10 hours ago

1. Write a program in C that accepts price and quantity of an item purchased. Price and quantity of the item should be accepted from the user. Compute the amount and Sales Tax to be paid for the item. Amount = Price * Quantity Sales Tax = 8% of Amount​

Answers

Answered by supriyasonawane623
0

Answer:

Program Explanation

Get two inputs quantity and price from user using scanf statement

Calculate amount by using the expression amount = quantity * price

Check whether amount is greater than 5000 using if statement.

if amount is greater than 5000 then calculate discount and amount using the expressions discount = amount * 0.05 and amount = amount - discount.

print amount using printf statement.

Explanation:

Mark this answer in brainlest answer

Similar questions