The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Hi , I need assistance with completing this assignment. It's Javascript and I have attached the assignment below.
Â
JavaScript HW11.Write a script that reads in two integers from a user and displays whether or not the sum is EVEN or ODD.Display as a header level 1 the two numbers entered, sum, and even/odd.(3 + 4 = 7 ODD)2.Write a script that calculates the squares and cubes of the numbers from 1 to 15 (use a loop) and outputs theresults using a table. Consider usingdocument.writeNumberSquareCube111248:::1522533753.Write a script that has the user enter in a valid 5 digit integer (10000 – 99999).Verify that the number entered isvalid.Assume a leading 0 is not a valid entry.Determine whether or not the number entered is a palindrome (leftto right is the same as right to left).4.Your company sells the following 5 products:Product 1 = $1.00Product 2 = $2.00Product 3 = $3.00Product 4 = $4.00Product 5 = $5.00Write a script that has the user enter in theproduct numberand then thequantity ordered.The same productcan be ordered multiple times.Use aswitchto help determine the total retail value of each product sold.Use asentinel loop to display the final results.The final results should show theproduct number,cost/productnumber,total quantity ordered/product number,total cost/product numberand at the bottom show thetotalcostfor all of the products combined. Sample output is shown below.Save all four problems aslastname_js1.html
Attachments:
-----------