NEW PERSP.ON COMP.CONCEPTS-PACKAGE
NEW PERSP.ON COMP.CONCEPTS-PACKAGE
17th Edition
ISBN: 9781337761116
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
Of the five primary components of an information system (hardware, software, data, people, process), which do you think is the most important to the success of a business organization? Part A - Define each primary component of the information system. Part B - Include your perspective on why your selection is most important. Part C - Provide an example from your personal experience to support your answer.
Management Information Systems
Q2/find the transfer function C/R for the system shown in the figure Re ད
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.
Similar questions
SEE MORE QUESTIONS
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