Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
please solve the a) part only
please use javascript
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

1. Why do you think that most people treat email so casually?

Answered: 1 week ago

Question

; Find f(x) such that f'(x) 4x and f(0)

Answered: 1 week ago