# – Given a simple business problem, design a solution algorithm that uses arithmetic expressions and built-in functions. Assignment: Your goal is to solve the following simple programming exercise. You have been contracted by a local restaurant to design an algorithm determining the total meal charges. The algorithm should ask the user for the total food purchase and the tip percent. Then, the algorithm will calculate the amount of a tip, a 7% sales tax, and the total meal charge (including tip). The food purchase, sales tax, tip amount, and total meal charge will need to be displayed to the customer. Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing. Display all output using currency 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: 1) This instruction sheet first 2) The IPO Chart, second 3) The Pseudocode, third 4) The Flowchart and output example last.

Designing an algorithm to determine the total meal charges for a local restaurant involves several steps. First, the algorithm needs to ask the user for the total food purchase and the tip percent. Then, it needs to calculate the amount of the tip, the 7% sales tax, and the total meal charge (including tip). Finally, the algorithm should display the food purchase, sales tax, tip amount, and total meal charge to the customer, using currency formatting.

To design the algorithm, we can start by creating an IPO (Input-Process-Output) chart. This chart will help us identify the variables and calculations necessary for the algorithm. The input variables in this case are the total food purchase and the tip percent. The process involves calculating the tip amount, the sales tax, and the total meal charge. The output is the food purchase, sales tax, tip amount, and total meal charge.

Next, we can create pseudocode to outline the step-by-step logic of the algorithm. The pseudocode will provide a high-level overview of the algorithm’s structure and calculations. This will facilitate the translation into actual code later on.

Once the pseudocode is created, we can proceed to code the algorithm using Visual Logic command line processing. Visual Logic is a programming language designed for flowchart-based programming, making it a suitable choice for this task.

To display the output with currency formatting, we can utilize the built-in currency formatting function provided by Visual Logic.

To take the algorithm to an advanced level, we can introduce constants for the 7% sales tax. By using constants, the sales tax percentage can be easily modified in the future, if needed, without having to change multiple places in the code.

Overall, this algorithm follows a simple and logical structure that allows the restaurant to calculate the total meal charges accurately and efficiently. By using arithmetic expressions and built-in functions, the algorithm ensures accurate calculations and proper display of the results to the customers.

### Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.

Click Here to Make an Order Click Here to Hire a Writer