I’m a total newb at javascript and I understand the concepts but not enough for this project I have to do. If there is any expert who would graciously write up the coding behind this I would be eternally grateful and would appreciate it. This is the project as follows:
You’re going into business by opening a fast food restaurant! For this project, you are to
create a Fast Food restaurant web page to incorporate a form and function(s) to manage the customer’s interaction with the web page content. Your page needs to display a picture of a restaurant when the page is first loaded. You need to offer at least three menu items and their associated text boxes. A picture of the food item in the menu will replace the picture of the restaurant when the user places the mouse cursor over the appropriate input text box. This effect is known as an image rollover (chapter 9). So you will need at least an additional three images.
The customer will have to order the items by filling in the number of items in text boxes and then the total bill due is calculated by clicking a button labeled “Ring It UP”. The onclick action for this button will call a function called billme() that will calculate the bill. A discount calculation needs to be applied in this function. Separate functions to calculate the tax due and the total bill can be broken out of the billme() function, but it is not required.
Discounts (10% off for 5 or more items of any product) are applied before the tax is calculated, 7% sales tax applied. Display the cost subtotal in one textarea, the tax in a second textarea, and the total bill in a third textarea. Also display the money saved in the fourth textarea if discounts are applied. As an alternative, all of this information may be placed as one large string value into one textarea, with one item displayed per line. Also include a reset button to clear all form object values and place the values of 0 (zero) in each of the text boxes.
Include three radio buttons with the same name.
1. to indicate you are a student.2. to indicate you are a Professor.3. to indicate neither 1 and 2.
Apply an extra 10% discount if you have the Pitt student radio button selected, 5% discount for the Pitt professor radio button selected, and no discount for button 3.
Include a checkbox for a $1.00 donation to the Pitt Old Instructor’s Retirement fund. If this box is checked your bill will have $1.00 added to it after taxes. No money is added to your bill if the box is unchecked.
Document your code and webpage with comments.
My email is [email][email protected]