Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create an algorithm for the following program. Welcome to THE APP STORE ********

ID: 3593284 • Letter: C

Question

Create an algorithm for the following program.

Welcome to THE APP STORE

**********************************

You have $0.00 in your bank

-------------------------

HERE ARE THE SELECTIONS:

L -- LogmeIn Ignition $1399.99

V -- VIP Black $999.99

F -- Facetune $3.99

T -- Tap Menu $399.99

M -- Minecraft $6.99

Please enter a selection: l

------------------------------

You do not have enough in your bank

The item costs $1399.99

You have $0.00 available in your bank

Please credit your money by selection:

--- 1 $1000.00

--- 2 $500.00

--- 3 $100.00

--- 4 $10.00

Deposit Amount: 2

------------------------------

You do not have enough in your bank

The item costs $1399.99

You have $500.00 available in your bank

Please credit your money by selection:

--- 1 $1000.00

--- 2 $500.00

--- 3 $100.00

--- 4 $10.00

Deposit Amount: 2

------------------------------

You do not have enough in your bank

The item costs $1399.99

You have $1000.00 available in your bank

Please credit your money by selection:

--- 1 $1000.00

--- 2 $500.00

--- 3 $100.00

--- 4 $10.00

Deposit Amount: 2

You have purchased: l

you have $100.01 left,

would you like to make another purchase?y

**********************************

You have $100.01 in your bank

-------------------------

HERE ARE THE SELECTIONS:

L -- LogmeIn Ignition $1399.99

V -- VIP Black $999.99

F -- Facetune $3.99

T -- Tap Menu $399.99

M -- Minecraft $6.99

Please enter a selection: f

You have purchased: f

you have $96.02 left,

would you like to make another purchase?y

**********************************

You have $96.02 in your bank

-------------------------

HERE ARE THE SELECTIONS:

L -- LogmeIn Ignition $1399.99

V -- VIP Black $999.99

F -- Facetune $3.99

T -- Tap Menu $399.99

M -- Minecraft $6.99

Please enter a selection: t

------------------------------

You do not have enough in your bank

The item costs $399.99

You have $96.02 available in your bank

Please credit your money by selection:

--- 1 $1000.00

--- 2 $500.00

--- 3 $100.00

--- 4 $10.00

Deposit Amount: 3

------------------------------

You do not have enough in your bank

The item costs $399.99

You have $196.02 available in your bank

Please credit your money by selection:

--- 1 $1000.00

--- 2 $500.00

--- 3 $100.00

--- 4 $10.00

Deposit Amount: 3

------------------------------

You do not have enough in your bank

The item costs $399.99

You have $296.02 available in your bank

Please credit your money by selection:

--- 1 $1000.00

--- 2 $500.00

--- 3 $100.00

--- 4 $10.00

Deposit Amount: 2

You have purchased: t

you have $396.03 left,

would you like to make another purchase?n

you have: $396.03 credit available for next purchase

Thank you, enjoy your purchase(s) Press any key to continue . . .

Explanation / Answer

The algorithm for the above given program is as follows:

Algorithm For the Above Program

1. Initialize the bank amount as INITIAL_BAL = 0
2. Make a menu for the appstore
3. Initialize an array with the product name as
APPS = {Logemeln Ignition,VIP Black,....};
4. Initialize another array for the respective cost of the items
ITEMS = {1399.99,999.99,...};
5. Declare a variable for selection of the menu which will be an character as choice
6. If choice equals the item than check the cost of the item.
7. Ask the user to confirm the selection.
8. If confirmed check whether the bank account has sufficient balance to get the item.
9. If yes, then buy the app otherwise, ask the user to credit to the account.
10. Give user options for the amount to credit in the bank. Let the user select how much amount he/she wants to fill in the bank.
11. Check whether the user has credited sufficient balance to buy the item if yes, then buy the product , otherwise, ask the user to add more balance.
12. If the user has purchased the product than subtract the amount from the bank balance and display the
  remaining balance to the user.
13. Ask the user if he/she wants to make more purchases if yes, take them back to the menu , otherwise, Exit the application with an good greeting message.
14. Exit.

Rate an upvote....Thankyou

Hope this helps.....

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote