subject

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*(sa lesTaxRate/100.0) End Module Module getGratuitiesTax(real expectedGratuities, real gratuityTaxRate, real ref gratuityTax) //calculate the gratuities taxes gratuityTax=expectedGratuities*(gra tuityTaxRate/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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
Answers: 1
question
Computers and Technology, 24.06.2019 11:30
What does the https: // mean when you type in a website
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
Answers: 1
You know the right answer?
Module main() //Declare local variables Declare Real restaurantSales //Set gratuity tax rate as 10 p...
Questions
question
Mathematics, 23.06.2021 22:40
question
Chemistry, 23.06.2021 22:40
question
Chemistry, 23.06.2021 22:40
question
Chemistry, 23.06.2021 22:40
Questions on the website: 13722363