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
You just received a message from the internet which was encrypted with asymmetric encryption. what do you need to do to read the
Bezzdna [24]
Assuming the data was encrypted with YOUR public key, you'll need YOUR private key to decrypt it. That's answer e.

a and b are not solutions by themselves, of course you need to use the decryption algorithm, but a key goes with it.

c would be about symmetric encryption, but this is asymmetric, so different keys are used for encryption and decryption

d is possible, but it would mean anyone can decrypt it (after all the key is public), so then there's no point in encrypting it in the first place.

So e is the only logical answer.
5 0
2 years ago
What offers backup services that use cloud resources to protect applications and data from disruption caused by disaster? Multip
sattari [20]

Answer:

The correct answer to the following question will be "Disaster Recovery as a Service (DRaaS)".

Explanation:

DRaaS seems to be a cloud services term used only to secure an infrastructure or data through human catastrophe or interruption of service at any destination by allowing a complete recovery throughout the cloud.

  • DR seems to be a security or management preparation field which seeks to protect an organisation from those in the consequences of major negative experiences.
  • This provides offsite backups which use storage resources to defend programs including assets from disaster-induced destruction.

8 0
3 years ago
Whats my screen name?
adoni [48]
It could be any thing of your chose
8 0
3 years ago
Read 2 more answers
Should you ever force a CPU into<br>its socket?​
tatyana61 [14]

Answer:

no you should not force a cpu into its socket.

Explanation: on an intel platform the pins are on the motherboard, therefore if you force it in it will damage the pins on the motherboard, and on AMD the pins are on the cpu itself so you can damage the extremely fragile pins on it, you can not shock your cpu however like the other answer.

7 0
3 years ago
Calcule o resultado em cada caso atividade de matemática poder me ajudar<br><br>​
Phoenix [80]

Answer:

I do not understand can you type in English?

Explanation:

7 0
3 years ago
Other questions:
  • 8 POINTS!!!!!!!!
    6·2 answers
  • Two electronics students are discussing electrical units. Student A says that electrical power is measured in units called coulo
    5·1 answer
  • In 3-5 sentences, describe how you would insert a graph in your word-processing document.
    13·1 answer
  • Type an SQL statement into the Record Source property of the report. The statement should select all fields (*) for employees wi
    5·1 answer
  • How do I type the integral symbol?
    6·1 answer
  • What does a computer need from people in order to solve problems effectively?
    9·1 answer
  • I will mark brainliest
    9·1 answer
  • Effective scrum masters apply which coaching behavior
    5·1 answer
  • Answer to this problem
    11·1 answer
  • There are parallels between the trust models in Kerberos and Public Key Infrastructure (PKI). When we compare them side by side,
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!