Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Do not use anything from ASSIGNMENT 6 Use loops Problem to solve: The Good Sipping Coffee Shop has a frequent buyer club that awards points
Do not use anything from ASSIGNMENT 6
Use loops
Problem to solve: The Good Sipping Coffee Shop has a frequent buyer club that awards points to its customers based on the number of coffees purchased each month. The points are awarded as follows: If the customer purchases 0 coffees, they earn 0 points If the customer purchases 1 coffee, they earn 3 points If the customer purchases 2 coffees, they earn 6 points If the customer purchases 3 coffees, they earn 10 points If the customer purchases more than 3 coffees, they earn an additional 2 points on top of the 10 points for each coffee above 3 Good Sipping Coffee Shop also awards points based on the dollar value spent on non-coffee merchandise. Three (3) points are awarded for every $15 spent. Partial awards are not provided. For example, 3 points will be awarded for spending $15.00 up to $29.99. No points are awarded for less than $15 Preferred Customers receive a bonus of double award points The Good Sipping Coffee Shop website needs to be updated to ask the customer to enter the number of coffees purchased last month, the dollars spent on non-coffee merchandise, confirnm if they are a Preferred Customer, and then calculate and display the number of award points earned Requirements For this assignment; 1. Your program will calculate the award points as described above 2. You will generate HTML comments to add your name, section and TA name. Each on a separate line within the tags. This will (should) NOT be visible in the document on the web browser) 3. Utilize aorm> tag 4. You will then add the HTML tags with the proper JavaScript code to produce A textbox to solicit the number of coffees purchased b. a. A textbox to solicit the dollars of non-coffee merchandise Grouped radio buttons to determine Preferred Customer membership d. c. A button to calculate the number of points awarded A read-only textbox to display the result the calculation e. 5. Utilize JavaScript comments to explain the steps you are preforming within your code. A JavaScript comment's form is *Place your comment between the stars 6. Variable names should be descriptive. For example, if a program is calculating the total charge for a bill at a restaurant, it may have a variable named tipAmount. 7. Utilize at least one if/else statement. Consider using the if/else in determining the bonus pointsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started