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
Cengagenowv2 is a comprehensive online learning tool. using cengagenowv2, you may access all of the following except: 2. each time you log in, cengagenowv2 automatically performs a system check and informs you if your computer does not meet the cengagenowv2 system requirements. 3. which tab/page allows you to easily track your assignment scores, number of submissions, time spent, as well as the ability view assign
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Which task uses a simple parameter?
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, 08.12.2019 10:31
question
Mathematics, 08.12.2019 10:31
question
Social Studies, 08.12.2019 10:31
question
Social Studies, 08.12.2019 10:31