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

  Assignment on project budgeting estimating

Imagine that you have completed the same project discussed . You exceeded the project budget, but you were able to complete the project within 15% of its scheduled completion date. Now, the management has requested a project review of your project.

  Define the grid layout

In the production for layout_type that define the grid layout, the first two numbers represent the number of rows and columns, and the optional next two the horizontal and vertical gaps.

  Using javascript to liven up web site

How to Use JavaScript to Liven up your site, how to protect users whose browsers will not load JavaScript. What is the tip?

  Describe storyboard diagram depicting the layout of website

Create a narrative that describes the site to your prospective client. Create a storyboard diagram depicting the layout of your Website

  Establish and maintain payroll system prepared manually

Establish and Maintain Payroll system prepared on a computer programme and prepared manually. How much Holiday leave would you tell her she has?

  Create a desktop and mobile-based shopping website

Create a desktop and mobile-based shopping website page with interactions (Hint: Use adaptive views) Use iPhone template and solve following assignment.

  Identify the technology and the web page you found

Identify the technology and the Web page you found. Briefly summarize the article and then analyze two challenges of the chosen technology

  Create a form that contains a guessing game

Create a Form that contains a guessing game with five RadioButtons numbered 1 through 5.  Randomly choose one of the RadioButtons as the winning button.

  Make a dynamic web page

CO539 Assessment  - Food Hygiene Ratings - For this assessment, you are going to use JQuery and AJAX to make a dynamic web page that communicates with two server-side scripts that we have developed for you.

  Discuss the apache web server in regard to cost

Discuss the Apache Web server in regard to cost, functionality, and compatibility. Are there certain implementations were it may not be suitable?

  Web page project

Purpose of this assignment: This assignment gets you thinking about your website project. Your team will later flesh out each of these web pages in much more detail. See the actual web site project in assignments to get a better idea of what wil..

  Build the web site for flyhigh

Build the web site for FlyHigh including the following content: Specific trip information travelers need to plan their ( costs, accommodations, options , and so on) and Information international customers will need ( passports , visas, vaccination..

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