Question: Algorithm solution (in pseudocode): Total = Price x (1 + Taxes) 100 To solve this problem your program must perform the following tasks: Declare variables

Algorithm solution (in pseudocode): Total = Price x (1 + Taxes) 100 To solve this problem your program must perform the following tasks: Declare variables named price, tax, and total that hold single precision real numbers. Prompt the user to "Enter the price and tax (%) please: ". Read the values from the keyboard and store them in price and tax respectively. Calculate the total cost using the expression shown above and assign the resulting value to total. Round the value of total to ONE decimal digit and reassign the rounded value to total Format the output to display the values in fixed format with two decimal digits. Print a message like the one below: "For a price $", P, "and ", X "% tax, the total cost of the product is $", T where P, X, and T are the values corresponding to variables price, tax, and total respectively. Note: ensure your expression does not use mixed data types by defining your literal values appropriately (pay attention to the data type of the variables you are using in the expression)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
