Question: programming logic and design danica Unit 3 Pseudocode and Modules This lab requires you to think about the steps that take place in a progr

 programming logic and design danica Unit 3 Pseudocode and Modules This
lab requires you to think about the steps that take place in
programming logic and design

danica Unit 3 Pseudocode and Modules This lab requires you to think about the steps that take place in a progr Read the following program prior to completing the lab. A local restaurant must file a monthly sales report listing restaurant sa amount of taxes on the sales and the gratuities earned by the wait staff gratuities is 8% of the sales. The taxes on restaurant sales is 10%. The 12%. Write a program that asks the user to enter the total sales for the should calculate and display the following: The monthly restaurant sales The amount of taxes on restaurant sales The amount of expected gratuities The amount of taxes on the expected gratuities NOTE: The results from this program is identical to the results y Pseudocode. However, this exercise will make use of modules to a Please follow all of the steps to receive full credit. Step 1: This program is most easily solved using just four variables. you will need in the program, using the proper data type and documen (Please use the same variables as in your Unit 2 Pseudocode exercise Variable Name Declare hea restaurant Sales Declar Real, taxas on restaurant sa Declare Real Expected gratuities Declare leal Tahun U LICUILIUL LIL LALILIS. remember to make use of the keywords you learned in the pr Take use of the keywords you learned in the previous 2 pseudocode exercises. Module main() 7/Declare local variables Declare Real, restaurant Sales Declare Real taxes on Restaurant Declare to Expected graivities Sales Expected Declare heakeal loved on gratuities //call statements Call input Restaurant Sales (restaurant Sales) Call mg/culates End Module //this module takes in the required user input Module input Restaurant Sales (Real Ref restaurant Sales) Display "Enter the restaurant sales for the month." Input restaurant Sales End Module //this module calculates restaurant sales tax Module get Restaurant Tax (real restaurant Sales, real sales Tax Rate, real ref restaurant Taxes) 1/include the sales tax rate constant in the definition End Module //this module calculates the gratuities Module End Module //this module calculates the gratuities tax Module End Module 1/this module prints the restaurant sales, restaurant taxes, 1/gratuities, gratuities taxes Module

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!