Thursday, September 3, 2020

Sample Solution Algorithm to Determine Meal Charges

Week 2 Activity †Meal Purchase TCO #2†Given a basic business issue, plan an answer calculation that utilizes number juggling articulations and implicit capacities. Task: you will probably tackle the accompanying basic programming exercise. You have been shrunk by a nearby eatery to structure a calculation deciding the complete feast charges. The calculation ought to approach the client for the all out food buy and the tip percent. At that point, the calculation will figure the measure of a tip, a 7% deals charge, and the all out feast charge (counting tip). The food buy, deals charge, tip sum, and absolute feast charge should be shown to the client. Make certain to THINK about the rationale and plan first (IPO diagram and pseudocode), at that point code the Visual Logic order line preparing. Show all yield utilizing money arranging (worked in Visual Logic work). Progressed (discretionary): utilize a constants for the 7% deals charge. Rubric: When finished staple the accompanying reports together conveniently in 1,2,3,4 request: †¢This guidance sheet first †¢The IPO Chart, second †¢The Pseudocode, third †¢The Flowchart and yield model last. Point dissemination for this application: Meal Purchase Document: Points potential: Points got IPO Chart Pseudocode 6 Flowchart 8 Total Points 20 IPO Chart: Input Processing Output Enter Total Food Purchase Price Calculate Food value Add Tip %* Total Food Purchased Add 7% charge * Total Food Purchased Total Meal Charge Pseudocode: Begin mealPurchase Total Food Purchased Imput absolute Purchased Food Amount Please enter the sum for tip percent Imput tip percent Set complete tip = tip percent/100 Set all out tip=total tip * Total food bought sum Set all out tax= deals charge/100 Set all out tax= all out tax* = all out food bought sum End Flowchart: Example Output after execution:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.