Question: 1.You are implementing an application for managing a very small coffee shop. The application will allow users to swipe a card and select from three
1.You are implementing an application for managing a very small coffee shop. The application will allow users to swipe a card and select from three options:
-Check account balance.
-Add funds to account.
-Make a purchase.
You can assume that there is a web service available that manages the cards, providing functions such as:
-Read card and log in.
-Log out.
-Check balance.
-Add funds.
-Spend funds.
The coffee shop sells:
-Plain coffee ($3 each)
-Fancy coffee ($5 each)
-Muffins ($2 each)
A user can select any number of coffees of each type and any number of muffins. A transaction is incomplete if:
-The card cannot be read.
-The user cannot be logged in.
-The balance is insufficient for the purchase amount.
-The deposit fails to add funds.
A completed deposit will spend funds from the user.
i need js code ,html code,MVC
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
