Question
JavaScript Hello I would like some help getting started with this program. Create a program that uses a loop, conditional statements, and a function to
JavaScript
Hello I would like some help getting started with this program.
Create a program that uses a loop, conditional statements, and a function to complete the following:
Using a loop, ask the user to enter the item name, price, and quantity for 3 items.
Using a function, calculate the following:
- Calculate the cost of each item and display the cost on the screen.
- Calculate the total cost of the three items and display the total cost on the screen.
Add a shipping charge at the end of the order based on the following conditions:
- If the grand total is greater than $500, the shipping charge is $30.
- If the grand total is between $200 and 499, the shipping charge is $15.
- Otherwise, the shipping charge is $10.
Display the shipping charge.
Calculate the grand total of the order which includes the total cost of the three items with the shipping charge and display it on the screen.
All the numbers should display with 2 decimal places.
Here is my code so far:
Java Script Homework Chapter 3
not sure what to do after this.
Thanks
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