1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anna35 [415]
3 years ago
7

Module main() //Declare local variables Declare Real restaurantSales //Set gratuity tax rate as 10 percent Declare Real salesTax

Rate=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
Computers and Technology
1 answer:
Nastasia [14]3 years ago
6 0

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

You might be interested in
Can someone please help me? my audio visual teacher wants me to watch two movies. i've never seen them and i have no way to watc
kati45 [8]

Answer:

You can try afdah or 123 movies, maybe try Netflix if you have it

Explanation:

The sites do have ads but that's where I usually watch my movies

4 0
3 years ago
What is this screen called? (I attached a picture)
Anna11 [10]

Answer:

graph screen is the correct answer

8 0
3 years ago
Read 2 more answers
Your database was damaged due to hardware failure. What can you use to restore it?
vesna_86 [32]
The only way is if you have backed up everything! Computers are amazing but they don't know that you need to back up your info. You should back up everything regularly! 
Hope this helped and have a nice day!

8 0
3 years ago
A + B (AC (B +C’) D) = A + BD
zmey [24]
Yo what is that i’m confused
5 0
3 years ago
Read 2 more answers
Why is E in DELL tilted?​
BigorU [14]

Answer:

The letter “E” in Dell logo is slightly turned towards D. It represents that the company founder Michael Dell's wish to “turn the world on its ear.” Others believe that the slanted 'E' represents a floppy disk.

Explanation:

hope it's help u

6 0
3 years ago
Read 2 more answers
Other questions:
  • g The reciprocal Fibonacci constant ψ is defined by the infinite sum: ψ=∑n=1 [infinity] 1 Fn Where Fn are the Fibonacci numbers
    7·1 answer
  • Which of these statements is true?
    9·1 answer
  • A technician is troubleshooting a small network with cable Internet service in which a user is receiving a message in her web br
    15·1 answer
  • How to connect to my wireless printer for dummies?
    12·1 answer
  • Which aperture setting will give the shallowest depth of field?
    10·2 answers
  • 5. RAM IS YOUR SYSTEM’S-
    14·2 answers
  • An equation that performs a calculation is a formula. True or false quest
    9·1 answer
  • What happens to a message when it is deleted?
    11·1 answer
  • A small company with 100 computers has hired you to install a local area network. All of the users perform functions like email,
    9·1 answer
  • Can someone tell me what this means Higfaa
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!