Generate html comments to add your name section and ta name

Assignment Help Web Project
Reference no: EM131321486

Computer Applications for Business Assignment

JavaScript Event-Driven Programming

To get credit for this assignment:

Learning Objectives:

This assignment is designed to practice:

1. Understand the basic input and output mechanisms of dynamic web applications from the code perspective
2. Implement JavaScript code which will handle user events
3. Display feedback of said processed interactions back to the user
4. Practice your understanding of basic JavaScript from the prior Assignment
a variables, including;

i The declaration, initialization and assignment processes

b Use of the conditional if statements
c Use of arithmetic and logic operators
d Use of comments

Directions:

You are provided an HTML program. Your responsibility is to insert the HTML tags with the appropriate JavaScript statements that will solve the problem discussed below, and to comment the html file with the requested information per the requirements. The problem description and HTML program provided are slightly different from Assignment. Be sure to start fresh.

Problem to solve:

The Serendipity Booksellers has a book club that awards points to its customers based on the number of books purchased each month. The points are awarded as follows:

• If a customer purchases 0 books, they earn 0 points
• If a customer purchases 1 book, they earn 4 points
• If a customer purchases 2 books, they earn 8 points
• If a customer purchases 3 books, they earn 16 points
• If a customer purchases more than 3 books, they earn an additional 7 points on top of the 16 points for each book above 3.

Serendipity Booksellers also awards points based on the dollar value spent on non-book merchandise. Four points are awarded for every $10 spent. Partial awards are not provided. For example, 4 points will be awarded for spending $10.00 up to $10.99. No points are awarded for less than $10.

Preferred Customers receive a bonus of double award points.

The Serendipity Booksellers website needs to be updated to ask the customer to enter the number of books purchased last month, the dollars spent on non-book merchandise, confirm if they are a Preferred Customer, and then calculate and display the number of award points earned.

Requirements:

For this assignment;

1. Your program will calculate the award points as described above.

2. You will generate HTML comments to add your name, section and TA name. Each on a separate line within the <Head> tags. This will (should) NOT be visible in the document on the web browser).

3. Utilize a <form> tag

4. You will then add the HTML tags with the proper JavaScript code to produce:

a. A textbox to solicit the number of books purchased
b. A textbox to solicit the dollars of non-book merchandise
c. Grouped radio buttons to determine Preferred Customer membership
d. A button to calculate the number of points awarded
e. A readonly textbox to display the result the calculation

5. Utilize JavaScript comments to explain the steps you are preforming within your code. A JavaScript comment's form is:
/* Place your comment between the stars */

6. Variable names should be descriptive. For example, if a program is calculating the total charge for a bill at a restaurant, it may have a variable named tipAmount.

7. Utilize at least one if/else statement. Consider using the if/else in determining the bonus points.

A sample of what your webpage could look like:

1503_Sample.jpg

Additional Information:

Since the contents of a textbox, is going to be used in mathematical operations. Textboxes sometimes treat input as Strings. Use the function parseInt() to convert the String text to a number. Otherwise your calculation operations will not perform as expected.

JavaScript provides several math utilities. The Math.floor() method rounds a number DOWNWARDS to the nearest integer, and returns the result.

References:
Fluency 6 - Chapter 17 • Fundamental Concepts Expressed in JavaScript

- Chapter 18 - A JavaScript Program w3schools.com • https://www.w3schools.com/js/default.asp

Firefox Tools - https://developer.mozilla.org/en-US/docs/Tools/Debugger

Lectures' slides and examples

Reference no: EM131321486

Questions Cloud

Study the mobile device management platforms : Recently Apple's iOS4 encryption was hacked by a Russian; compare and discuss the weaknesses in the iOS4 disclosed by the Russian company.
Discuss the iphone mobile authentication system : Discuss the Windows Mobile security model, authentication services, Credential Manager, cryptography, and LASS application development and programming elements.
Component of the earth magnetic field : In New England, the horizontal component of the Earth's magnetic field has a magnitude of2.8 × 10-5T. An electron is shot vertically straight up from the ground with a speed of4.0 × 106m/s.What is the magnitude of the acceleration caused by the magn..
Realistic capacity level of seven patients infused per day : The exhibit assumes three chairs and one 40-hour RN, for a realistic capacity level of seven patients infused per day. Required Prepare another Infusion Center Capacity Level Forecast as follows: Assume the same three infusion chairs, but add another..
Generate html comments to add your name section and ta name : You will generate HTML comments to add your name, section and TA name. Each on a separate line within the tags. This will (should) NOT be visible in the document on the web browser).
Discuss at least three internal control weaknesses : Prepare a summary that identifies the department, the weakness, and control that you will implement in the new system - Discuss at least three internal control weaknesses in each of the five departments that you are working with.
Describe the technology and discuss what it accomplishes : Describe the technology. Discuss what it accomplishes. Elaborate on the scientific principles that make this technology possible. Your goal in this section of the paper is to show the instructor that you understand the underlying science behind th..
Estimate of the stock current market value : Burke Tires just paid a dividend of D0 = $1.45. Analysts expect the company's dividend to grow by 30% this year, by 10% in Year 2, and at a constant rate of 5% in Year 3 and thereafter. The required return on this low-risk stock is 10.00%. What is th..
What three things do high-performing organizations never do : What are the differences between high-performing organizations and medium- and low-performing organizations in terms of normal operating performance? Detection of security breaches? Percentage of budget devoted to IT?

Reviews

Write a Review

Web Project Questions & Answers

  Evaluating an ecommerce website

Create a check list that contains key point for evaluating an ecommerce website - Write a short, reflective report about website

  Gpc and runtime magic quotes

Create a script that lets you know whether Zeus or Helios has the GPC and Runtime Magic Quotes turned on or off. The output should have appropriate labels that define what output signified and should display 'ON' or 'OFF' depending on the setting.

  Creating functions through conditional operator

Use the conditional operator and the cal_days_in_month function, determine the number of days in the current month and output to browser whether it is normal month or a leap month.

  Web development projects with database

Since the vast majority of web-development projects involve a database, do you think that computational activities should be performed there, or do you think they belong in the XML page or stylesheet?

  Comparing shelf software packages

Required assistance with comparing and contrasting two main off the shelf software packages that could be implemented in an organization.

  Web based scams

Web phishing, pharming and vishing are popular web based scams. Talk about currently used tools and recommended measures to defeat this kind of attacks efficiently?

  Explanation of contextual links

The most powerful hypertext capabilities is the the contextual link. Wikipedia . com is a great example of a site that utilizes contextual links.

  How architectural and protocol changes occur

Discuss how architectural and protocol changes happen, the administrative organization that oversees the technical development of the Internet,

  Traditional approaches for training professionals

Webinars and other web conferencing techniques have proved most beneficial for the provision of affordable quality corporate training.

  Internet for business

Discuss how can a business use the Internet and give at least three examples with web links demonstrating your answer.

  It influences the behavior of organizations

Information technology influences the behavior of organizations. Name one effect of Information technology implementation and long-term usage you suppose having a positive contribution and one having a negative consequence.

  Importance of a guided navigation system

Explain the use and importance of a guided navigation system and shopping cart for a website designed for e-commerce and business purpose.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd