Calculate the tax owed amount for tax returns

Assignment Help Computer Engineering
Reference no: EM131909904

Assignment: Event-Driven programming

Learning Objectives:

This assignment is designed to practice:

1. Implement JavaScript code which will handle user events.
2. Display feedback to the user in case of data entry errors.
3. Use of the conditional if and if/else statements.
4. Use of arithmetic and logic operators.
5. Use of comments.

Tax Return processing program

Requirements:

The company that needed the flowchart and pseudocode for calculating the Tax Owed amount for tax returns is now giving you the responsibility of creating a program for that purpose.

The requirements for performing the calculation remain the same as those indicated for the flowchart:

For citizens younger than 21, the tax applied is one of the following:

8% for income up to $20,000.
12% for income greater than $20,000 up to $50,000.
20% for income greater than $50,000.

For citizens 21 years old or older, the tax applied is one of the following:

10% for income up to $20,000.
15% for income greater than $20,000 up to $35,000.
25% for income greater than $35,000 up to $70,000.
30% for income greater than $70,000.

- The formula to calculate the Tax Owed amount is: tax rate percentage x income

The company has also provided a video - attached to these instructions on Sakai - that displays the way the program should work as well as the screen format when the program is run. (Note: on the video the program is run three times with different data entries).

Additional Requirements:

- You will enter a comment on the head section with your name on it.
- You will use radio buttons to acquire the age range of the user.
- You will use a text box to get the user's income data.
- You will use a Process button to process the Tax Owed amount.
- The button mentioned above should also:

* Produce an error message (via an alert window) if the user forgets to select a radio button.
* Produce an error message (via an alert window) if the user forgets to enter income data or enters data that cannot be processed such as text data.

- You will use text box to display the tax owed amount.

- You will use a Clear button to reset the main variables as well as the radio buttons and text boxes in order to be able to process the next user's information.

- The variable names should be descriptive. For example, if a program is calculating the tip given at a restaurant, an appropriate variable name may be tipAmount.

- The format of the screen should be similar to that provided on the video example.

Additional Information:

- Since the content of a text box - which is what the prompt() function generates - is going to be used in mathematical operations, use the function parseInt() to ensure that the numeric input is treated as numeric data.

Syntax example:

numericVariable = parseInt(numericVariable)

- Resetting dark circle of a radio button: use the checked property.

- Evaluating if there is no numeric value on a text box: use the isNaN function.

References:

- Recitation sessions
- Lectures
- Fluency textbook Chapters 17, 18
- w3schools website.

 

Reference no: EM131909904

Questions Cloud

Research the information : Why is it important to thoroughly research the information that will go in a communication document prior to beginning the layout the document
Journal entries using percentage-of-completion method : ACC204 – Advanced Financial Accounting How would you account for the revaluation of the above assets and What would the relevant journal entries be?
Discuss the issue of speech anxiety : Discuss the issue of speech anxiety as it relates to public speaking (found in Part 1 of your text).
Calculate the average variation in driving time : Wayne Merritt drives from Cleveland to Chicago frequently and has noticed that traffic and weather make a big difference in the time it takes to make the trip.
Calculate the tax owed amount for tax returns : The company that needed the flowchart and pseudocode for calculating the Tax Owed amount for tax returns is now giving you the responsibility.
How should the options be compared : What factors are important in choosing the length of the planning horizon for aggregate planning? 11. A barbershop has been using a level workforce of barbers.
Discuss about the inflation effects : Inflation Effects Assume that inflation is expected to decline soon. How could this affect future bond prices?
State general rule regarding the amount of capacity to build : Suppose we are considering the question of how much capacity to build in the face of uncertain demand. Assume that the cost is $20 per unit of lost sales.
What is the probability of idle capacity : What is the probability of idle capacity, and what is the average utilization of the plant at 18 million tons of capacity?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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