Answer:
Check the explanation
Explanation:
Program module pseudo code to find the restaurant sales, gratuity tax
Module main()
//Declare local variables
Declare Real restaurantSales
//Set gratuity tax rate as 10 percent
Declare Real salesTaxRate=10
Declare Real restaurantTaxes
Declare Real expectedGratuities
//Set gratuity tax rate as 8 percent
Declare Real gratuityTaxRate=8
Declare Real gratuityTax
//call getRestaurantTax module
getRestaurantTax(restaurantSales, salesTaxRate, restaurantTaxes);
//call getGratuitiesTax module
getGratuitiesTax(expectedGratuities, gratuityTaxRate, gratuityTax);
//call display module
display(restaurantSales, restaurantTaxes, expectedGratuities, gratuityTax)
End Module
Module getRestaurantTax(real restaurantSales, real salesTaxRate, real ref restaurantTaxes)
//calculate the restaurant taxes
restaurantTaxes=restaurantSales*(salesTaxRate/100.0)
End Module
Module getGratuitiesTax(real expectedGratuities, real gratuityTaxRate, real ref gratuityTax)
//calculate the gratuities taxes
gratuityTax=expectedGratuities*(gratuityTaxRate/100.0)
End Module
Module display(real restaurantSales,real restaurantTaxes, real expectedGratuities, real gratuityTax)
//print the sales ,gratuities to output window
Print "Restaurant Sales, $" , restaurantSales
Print "Restaurant Taxes, $" , restaurantTaxes
Print "Expected Gratuities, $" , expectedGratuities
Print "GratuityTax, $" , gratuityTax
End Module