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

  Systems analysis

Assume are a project manager of a small startup corporation assigned to a project to a build a dynamic web application to market to customers to more easily/cheaply download copyrighted videos and movies.

  Effect of class inheritance on application development

What is the effect of class inheritance on application development

  Find contact information quickly when you need it

You should be able to store each person's name, phone number, and email address. The Contact Manager App should enable you to find contact information quickly when you need it.

  Create presentations using cascading style sheets

Create presentations using Cascading Style Sheets and DHTML. Write clearly and concisely about Web design and development using proper writing mechanics and technical style conventions.

  Determining the throughput

A group of stations share a sixteen kbps slotted Aloha channel. Each station outputs a eighty Bytes frame and buffers any outgoing frames until they can be sent.

  Create images for the web

What this assignment has taught you about the Object-Oriented programming concept; be sure to use 00 terminology to express your thoughts; connections to 00 programming may be difficult to make, but you should be able to make some.

  What were the goals of the web site

Write a one-page summary of your work. This summary should focus on the process of your work, not the content of the web site. Give details. You might consider some of the following when writing your summary: What were the goals of the web site

  Find recommendations for good design of web interfaces

Use a search engine to find recommendations for good design of Web interfaces. How are these recommendations similar to those discussed? How do they differ

  What you would check to ensure that a website is compatible

Imagine that you are Web designer for a company of your choice. Identify the company and describe what you would check to ensure that a Website is compatible with most browsers.

  Project on it-related ethical workforce issue

Write an organizational policy (a text-only report with a total minimum of 1,000 words) to address an IT-related ethical workforce issue that you wrote about in your matrix for the B1 assignment.

  Implement an ecommerce web application

Use any Content Management System (CMS), design, implement an e-commerce web application that sells products and should allow user search products, add products to shopping cart, checkout items into the cart. application should be visually nice and g..

  Describe three different types of web application

Identify and describe three different types of Web application tests that can be demonstrated using the Damn Vulnerable Web Application tool

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