Question: I would like to know if my input variables are written the right way? Write an algorithm and the pseudocode solving the following problem: Ask
I would like to know if my input variables are written the right way? 

Write an algorithm and the pseudocode solving the following problem: Ask the user for a total food bill and then calculate and display the total paid after adding both a 7% tax and a tip of the users choice to the bill. Request and read in from the user the percentage of tip to be applied (15, 18, 20%) in order to calculate the tip. ++++++ -++ -+++ ++++++ ++++++++++ ++++++++ // Input variables Display "Please enter mealprice" Input mealprice Display " The tip at 15%" Tip = mealprice * 0.15 Display "The tip at 18% Tip = mealprice * 0.18 Display the tip at 20%" Tip = mealprice * 0.20 Compute tax amount as 7% Tax = mealprice * 0.07 Display Enter the percentage of tip (15,18,20%) Input tip // This function will calculate the tip, tax, and total cost Calc_total (mealprice, tip, tax): total = mealprice + tip + tax // Display the total Display "The mealprice is $", mealprice Display "The tip is $", tip Display "The tax is $", tax Display "The total is $", total
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
