Thursday, September 3, 2020

Sample Solution Algorithm to Determine Meal Charges

Week 2 Activity †Meal Purchase TCO #2†Given a basic business issue, structure an answer calculation that utilizes math articulations and implicit capacities. Task: you will likely explain the accompanying basic programming exercise. You have been shrunk by a neighborhood café to structure a calculation deciding the all out supper charges. The calculation ought to approach the client for the absolute food buy and the tip percent. At that point, the calculation will ascertain the measure of a tip, a 7% deals charge, and the absolute feast charge (counting tip). The food buy, deals charge, tip sum, and all out feast charge should be shown to the client. Make certain to THINK about the rationale and plan first (IPO graph and pseudocode), at that point code the Visual Logic order line handling. Show all yield utilizing money designing (worked in Visual Logic work). Progressed (discretionary): utilize a constants for the 7% deals charge. Rubric: When finished staple the accompanying archives together flawlessly in 1,2,3,4 request: †¢This guidance sheet first †¢The IPO Chart, second †¢The Pseudocode, third †¢The Flowchart and yield model last. Point conveyance 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 all out Purchased Food Amount Please enter the sum for tip percent Imput tip percent Set all out tip = tip percent/100 Set complete tip=total tip * Total food bought sum Set absolute tax= deals charge/100 Set all out tax= all out tax* = all out food bought sum End Flowchart: Example Output after execution: