Ask Question
25 December, 17:51

Using only the sequential operations described in Section 2.2.2, write an algorithm that gets two values: the price for item A and the quantity purchased. The algorithm should then print the total cost and the total cost plus an 8% sales tax.

+3
Answers (1)
  1. 25 December, 17:56
    0
    total_cost = cost + tax

    Explanation:

    Step1) Let the 2 variable for take input from user e. g price and quantity

    var price;

    var quantity;

    var cost;

    var tax;

    var total_cost;

    Step2) take input from user quantity of item 'A'

    step3) cost = price * quantity

    Step4) tax = 0.08 * cost

    Step5) total_cost = cost + tax

    Step6) print the total_cost
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Using only the sequential operations described in Section 2.2.2, write an algorithm that gets two values: the price for item A and the ...” in 📗 Engineering if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers