Concept explainers
a)
To create a function named calcCart ()to calculate the registration cost and save the customer’s choices information in the session storage and to store the value of the customer first and last name fields of the regForm forma variable named confNamein the session storage variable confName in the mas_register.jsfile.
b)
To create the four variablesin the session storage named confGroupto store the value of the group,confMailto store the value of the email, confPhoneto store the value of the phone, and confBanquetto store the value of the banquetGuests in the mas_register.jsfile.
c)
To create a session storage variable named confBanquetCostto store the cost of the banquet. Calculate the cost of the banquet by multiplying the banquestGuests field value by the value of 55 in the mas_register.jsfile.
d)
To record the user selected session when the selected session is not equal to -1 then store the selected option text in the session storage variable named confSessionand store the selected optionvalue in the session storage variable named confSessionCost. When the selected session equals to -1 then set the selected option text to empty and set the selected option value to 0 in the mas_register.jsfile.
e)
Tocreate two session storage variable named confPackand confPackCost when the user clicked the mediaCB check box and set the value “yes” in the confPackvariable and set the cost of media pack 115 in the confPackCost variable. Otherwise set the values “no” and 0 in the confPackandconfPackCost variables in the mas_register.jsfile.
f)
Tocreate a session storage variable named confTotalto calculate the total registration cost by adding the value of session storage variables named session (confSessionCost) + banquet (confBanquetCost) + media (confPackCost) . The parseFloat ()method return the numeric values of the data fields in the mas_register.jsfile.
g)
To call the writeSessionValues ()function in the mas_register.jsfile.
Want to see the full answer?
Check out a sample textbook solutionChapter 13 Solutions
New Perspectives on HTML5, CSS3, and JavaScript
- show work on paperarrow_forwardWhat should the next three steps be in my machine based home security system after deployment and after the following current steps: Enhancing Security & Privacy Measures User Interface (UI) and Experience (UX) Improvement Machine Learning Model Refinement & Continuous Improvementarrow_forwardI am creating a machine learning home based security system, have completed initial deployment and in the following phases of the project: Expanding device compatibility and integration, preparing for cloud integration, and implementing system reduncancy and disaster recovery. What should the next three phases be?arrow_forward
- Hands-On Assignments Part II Assignment 1-5: Querying the DoGood Donor Database Review the DoGood Donor data by writing and running SQL statements to perform the following tasks: 1. List each donor who has made a pledge and indicated a single lump sum payment. Include first name, last name, pledge date, and pledge amount. 2. List each donor who has made a pledge and indicated monthly payments over one year. Include first name, last name, pledge date, and pledge amount. Also, display the monthly payment amount. (Equal monthly payments are made for all pledges paid in monthly payments.) 3. Display an unduplicated list of projects (ID and name) that have pledges committed. Don't display all projects defined; list only those that have pledges assigned. 4. Display the number of pledges made by each donor. Include the donor ID, first name, last name, and number of pledges. 5. Display all pledges made before March 8, 2012. Include all column data from the DD PLEDGE table.arrow_forwardWrite a FancyCar class to support basic operations such as drive, add gas, honk horn, and start engine. FancyCar.java is provided with method stubs. Follow each step to gradually complete all methods. Note: This program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress. The main() method includes basic method calls. Add statements in main() as methods are completed to support development mode testing. Step 0. Declare private fields for miles driven as shown on the odometer (int), gallons of gas in tank (double), miles per gallon or MPG (double), driving capacity (double), and car model (String). Note the provided final variable indicates the gas tank capacity of 14.0 gallons. Step 1 (2 pts). 1) Complete the default constructor by initializing the odometer to five miles, tank is full of gas, miles per gallon is 24.0, and the model is "Old Clunker". 2)…arrow_forwardFind the error: daily_sales = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] days_of_week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] for i in range(7): daily_sales[i] = float(input('Enter the sales for ' \ + day_of_week[i] + ': ')arrow_forward
- Find the error: daily_sales = [0.0, 0,0, 0.0, 0.0, 0.0, 0.0, 0.0] days_of_week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] for i in range(7): daily_sales[i] = float(input('Enter the sales for ' \ + days_of_week[i] + ': ')arrow_forwardFind the error: daily_sales = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] days_of_week = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] for i in range(6): daily_sales[i] = float(input('Enter the sales for ' \ + days_of_week[i] + ': '))arrow_forwardWhat are the steps you will follow in order to check the database and fix any problems with it and normalize it? Give two references with your answer.arrow_forward
- New Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage Learning