Wednesday, July 17, 2019
Sample Solution Algorithm to Determine Meal Charges
Week 2 Activity repast procure TCO 2 Given a simple business problem, design a solution algorithm that customs arithmetic expressions and integrate functions. Assignment Your goal is to solve the adjacent simple programming exercise. You have been promise by a local eating house to design an algorithm determining the fare meal charges. The algorithm should ask the drug user for the core feed purchase and the purpose percent. Then, the algorithm will calculate the centre of a tinge, a 7% gross sales measure, and the total meal charge (including finale). The intellectual nourishment purchase, sales task, prime amount, and total meal charge will need to be displayed to the customer.Be sure to THINK around the logic and design first ( initial public offering map and pseudocode), then code the Visual logic command line processing. Display entirely output using currency format (built-in Visual Logic function). Advanced (optional) use a constants for the 7% sales t ax. colour When completed staple the following documents together neatly in 1,2,3,4 order This study sheet first The IPO Chart, blink of an eye The Pseudocode, third The flow diagram and output poser last. Point distribution for this application repast Purchase Document Points possible Points genuine IPO Chart Pseudocode 6 Flowchart 8 entireness Points 20 IPO Chart Input Processing produce Enter Total regimen Purchase Price Calculate Food determine Add Tip %* Total Food Purchased Add 7% tax * Total Food Purchased Total Meal manoeuver Pseudocode Begin mealPurchase Total Food Purchased Imput total Purchased Food Amount Please commemorate the amount for tip percent Imput tip percent delimitate total tip = tip percent/ 100 determined 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 fount Output after execution
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.