.

Sunday, March 3, 2019

Sample Solution Algorithm to Determine Meal Charges

Week 2 Activity Meal bargain for TCO 2 Given a unprejudiced business problem, design a solution algorithmic program that uses arithmetic expressions and entire functions. Assignment Your goal is to solve the following simple programming exercise. You substantiate been contracted by a local restaurant to design an algorithm determining the make sense meal sticks. The algorithm should ask the user for the total viands purchase and the achievement percent. Then, the algorithm forget calculate the pith of a tip, a 7% sales tax, and the total meal charge (including tip). The viands purchase, sales tax, tip amount, and total meal charge will need to be displayed to the customer.Be sure to THINK about the logical system and design first (IPO chart and pseudocode), then code the Visual logical system command line processing. Display all output using bills formatting (built-in Visual Logic function). Advanced (optional) use a constants for the 7% sales tax. Rubric When completed staple the following documents together neatly in 1,2,3,4 order This instruction sheet first The IPO map, snatch The Pseudocode, third The Flowchart and output example last. Point distribution for this exertion Meal Purchase Document Points possible Points received IPO map Pseudocode 6 Flowchart 8 organic Points 20 IPO Chart Input Processing Output Enter complete solid food Purchase Price Calculate Food price Add Tip %* Total Food Purchased Add 7% tax * Total Food Purchased Total Meal Charge Pseudocode Begin mealPurchase Total Food Purchased Imput total Purchased Food Amount Please enter the amount for tip percent Imput tip percent Set total tip = tip percent/ snow Set total tip=total tip * Total food purchased amount Set total tax= sales tax/ cytosine Set total tax= total tax* = total food purchased amount End Flowchart Example Output after implementation

No comments:

Post a Comment