Assume the input to be the charge for the food, draw a flowchart that will compute the total amount of a meal purchased at a restaurant. The output should be the charge for the food, the amount of a 15 percent tip, the amount of the 7 percent sales tax (on the charge for the food), and the total.

1 answer

Draw a flowchart and write pseudocode to represent the logic of a program that allows the user to enter values for a salesperson’s base salary, total sales, and commission rate. The program computes and outputs the salesperson’s pay by adding the base salary to the product of the total sales and commission rate.