What is a solution to this Javascript and HTML code for this webpage?

World

New member
I am really stuck with my code on this question for a Javascript and HTML assignment. My coding is not working here is the question, if anyone can offer some suggestions.
Thanks


A large company pays its salespeople on a commission basis. The salespeople receive $200 per week, plus 9% of their gross sales for that week. For example, a salesperson who sells $5000 worth of merchandise in a week receives $200 plus 9% of $5000, for a total of $650. You have been supplied with a list of items sold by each salesperson. The value of these items is as follows:
Item Value
1239.99
2129.75
399.95
4350.89

Develop a program that inputs a salesperson's name and the quantity of each item sold the preceding week, calculates the salesperson's earnings, and outputs XHTML text that displays the salesperson's earnings. The following is an example input:

Salesperson’s name: John Dole
Number of item 1 sold: 5
Number of item 2 sold: 3
Number of item 3 sold: 7
Number of item 4 sold: 3

Note: you need to use prompt dialogs to input the data.

this is the question for now
 
Back
Top