Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please this is one activity , answer a) and b) if you can . thanks please solve the a) part only please use javascript a)
please this is one activity , answer a) and b) if you can . thanks
please solve the a) part only
please use javascript
a) Using the html code in Example 2, add the if, else if, else statement that will display a receipt message if the quantity is between 1 and 20. For example, if the user enters 6 for variable quantity, the display in the browser will be: Activity 1 Welcome Peter Quantity = 6 Subtotal $42 Shipping $8.99 TOTAL $50.99 On the other hand, if the user enters a number less than zero, a negative number, for variable quantity, the display in the browser will be: Activity 1 Welcome Peter -3 is invalid Activity 1 Welcome Peter O is not a valid quantity Also, if the user enters a number that is greater than 20, for variable quantity, the display in the browser will be: Activity 1 Welcome Peter OUT OF STOCK. We don't have 35 tiles on stock b) Using example 6, make that all elements in the list that are greater than 3 has the background color, font color, and font size changes. Activity 1.b Milk Eggs Broccoli Chicken Fish a) Using the html code in Example 2, add the if, else if, else statement that will display a receipt message if the quantity is between 1 and 20. For example, if the user enters 6 for variable quantity, the display in the browser will be: Activity 1 Welcome Peter Quantity = 6 Subtotal $42 Shipping $8.99 TOTAL $50.99 On the other hand, if the user enters a number less than zero, a negative number, for variable quantity, the display in the browser will be: Activity 1 Welcome Peter I -3 is invalid Activity 1 Welcome Peter O is not a valid quantity Also, if the user enters a number that is greater than 20, for variable quantity, the display in the browser will be: Activity 1 I Welcome Peter OUT OF STOCK. We don't have 35 tiles on stock Step 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