1 IPO Model, 3 Versions of Pseudocode, 3 Visual Logic Flowcharts, 3 Output Displays.
This project will require you to develop a solution using each of the following 3 repetition control structures:
- Do Loop
- Do While Loop
- Repeat Until Loop
You will develop 1 IPO Model which will be used by all 3 repetition control structures. The logic and design for each repetition control structure will consist of pseudocode, a Visual Logic flowchart, and output display.
You have been retained by a high-end jewelry boutique to design an algorithm determining the total jewelry purchases and sales tax. According to the store owner, a special sale is being held where all valued clients will purchase four items from the jewelry boutique.
Design an algorithm where the client will enter the price of each of the four jewelry purchases into a handheld device. The algorithm will determine the subtotal, the sales tax, and the total purchase amount. The handheld device will need to display the subtotal, the sales tax amount, and the total purchase amount. Assume the sales tax is 7%.
Be sure to think about the logic and design first (IPO chart and pseudocode), then code it in Visual Logic. Display all output using currency formatting using the built-in Visual Logic function.
Advanced: Use a constant variable for the 7% sales tax.
Your solution must include the following:
- 1 IPO Model detailing the program inputs, processing and outputs
- 3 versions of pseudocode, one for each of the three types of loops
- 3 Visual Logic flowcharts, one for each of the three types of loops
- 3 output displays, one for each of the three types of loops
Hint: Develop your IPO Model followed by the complete solution for the first loop. Then, modify your first successful repetition loop to accommodate the design for your second loop
|