Bndl: Llf New Perspectives Htm L5 Css3 & Javascript, 6th Edition
Bndl: Llf New Perspectives Htm L5 Css3 & Javascript, 6th Edition
6th Edition
ISBN: 9781337755870
Author: Carey
Publisher: CENGAGE L
bartleby

Concept explainers

Question
Book Icon
Chapter 13, Problem 6CP3

a)

Program Plan Intro

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)

Program Plan Intro

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)

Program Plan Intro

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)

Program Plan Intro

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)

Program Plan Intro

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)

Program Plan Intro

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)

Program Plan Intro

To call the writeSessionValues ()function in the mas_register.jsfile.

Blurred answer
Students have asked these similar questions
se Problem 1 Data Files needed for this Case Problem: sp_home_txt.html, sp_layout_txt.css, 2 CSS files, 11 PNG files Slate & Pencil Tutoring Karen Cooke manages the website for Slate & Pencil Tutoring, an online tutoring service for high school and college students. Karen is overseeing the redesign of the website. do you have this solution?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning