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
When would a one way flag variable be used
Tamiku [17]
A one-way flag<span> can also be </span>used<span>, for example, to watch errors occuring in input data so that the program </span>could<span> ask the inputs again. A </span>variable<span> is a temporary if its value is always needed only for a very short period.</span>
7 0
3 years ago
How does the occupational outlook affect the monetary benefits of a career
Ksivusya [100]
If there are changes to the responsibilities in a career, the typical outcome will change.
4 0
3 years ago
The navigation items for a Lightning app are available on mobile: A. In a special mobile configuration in the navigation menu an
mr_godi [17]

Navigation items are used for moving from one part of the part to a destination using actions and also for passing information. The right option is  <em>C. In the navigation menu and the first four items of the </em><em>navigation bar</em><em>, when users are in the app </em>

<em />

There are different methods/ways to implement the Navigation component in a mobile application, we have the following type of Navigation Implementation

  1. Bottom Navigation
  2. Drawer Navigation(Slides from Left to right)
  3. Top Navigation

Learn more about Navigation here:

brainly.com/question/8908486

5 0
2 years ago
Find the titles of courses in the Computer Science department that have 3 credits. Find the IDs of all students who were taught
Kay [80]

Answer:

Explanation:

To solve this we break down the question and write the programme in steps as shown in the attachment

Download docx
4 0
3 years ago
An example of a(n) ____ reconnaissance attack is a user who sends SQL injections to a system in hopes of generating some type of
Elden [556K]
The answer to this question is A
7 0
2 years ago
Read 2 more answers
Other questions:
  • ____ technology essentially takes the data to be transmitted and rather than transmitting it in a fixed bandwidth spreads it ove
    15·1 answer
  • Your help will help me understand my answers by comparing to yours. Your kind contribution is very much appreciated.
    6·1 answer
  • Assume that the array arr has been defined and initialized with the values {4, 2, 5, 3, 1}. What are the values in the array arr
    15·1 answer
  • Importance of taking correct body measurement....
    15·1 answer
  • Match the item to the type.
    11·1 answer
  • You attempt to telnet to system 192.168.1.240. You receive the following message: "Connecting To 192.168.1.240...Could not open
    5·1 answer
  • How did the use of ARPANET change computing?
    14·1 answer
  • What will the following code display?
    12·1 answer
  • When an organizatin needs a program to do a very specific job, it mayhire someone to write _____ software.​
    10·1 answer
  • Which of the following is NOT a function of a Web Browser?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!