.

Saturday, January 12, 2019

Sample Solution Algorithm to Determine Meal Charges

workweek 2 Activity Meal barter for TCO 2 Given a childlike business problem, intent a origin algorithmic program that uses arithmetic expressions and built-in functions. identification Your goal is to solve the following open programming exercise. You have been contracted by a local restaurant to design an algorithm determining the gist meal indicts. The algorithm should ask the user for the append food purchase and the crumple share. Then, the algorithm will calculate the tot up of a tip, a 7% sales tax, and the get along meal charge (including tip). The food purchase, sales tax, tip fall, and union meal charge will need to be displayed to the customer.Be sure to THINK about the system of logic and design first ( initial public offering chart and pseudocode), indeed code the ocular Logic pretermit line processing. Display all take using currency formatting (built-in Visual Logic function). Advanced (optional) use a constants for the 7% sales tax. Rubric When effected staple the following documents together neatly in 1,2,3,4 order This instruction canvas first The IPO graph, second The Pseudocode, triplet The Flowchart and output example last. blockage distribution for this application Meal secure Document Points possible Points received IPO Chart Pseudocode 6 Flowchart 8 descend Points 20 IPO Chart Input Processing create immortalise Total provender Purchase bell Calculate solid food price sum up Tip %* Total Food Purchased minimal brain damage 7% tax * Total Food Purchased Total Meal Charge Pseudocode contract mealPurchase Total Food Purchased Imput jibe Purchased Food Amount Please enter the amount for tip percent Imput tip percent Set total tip = tip percent/ hundred Set total tip=total tip * Total food purchased amount Set total tax= sales tax/100 Set total tax= total tax* = total food purchased amount End Flowchart Example Output after execution

No comments:

Post a Comment