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

  Explaining the rsa

Using the RSA with p = 3, q = 11, e = 7: Explain the suitable value for d? Encode the message “cat” by encrypting each letter separately, i.e., by encrypting ASCII code of each letter.

  What are the advantages of subroutines

Find the overflow bit after performing an arithmetic shift on B616 three times to the left.

  Make a proposal to deploy windows server onto an existing

make a proposal to deploy windows server onto an existing network based on the provided scenario. the proposal will

  Write a void function definition for a function

Write a void function definition for a function called add_tax. The function add_tax has two formal parameters taxrate.

  Display total cost of their selection including sales tax

Create Web site that allows users to enter their first and last names phone number and e-mail. Display the total cost of their selection including 7% sales tax.

  Write application that displays frame containing two labels

Write an application that displays a frame containing two labels that display your name, one for your first name(Jeremy) and one for your last(Green).

  Explain the distinction between a lut and a clb

Explain the distinction between a LUT and a CLB within the FPGA reconfigurable fabric. What is an advantage of a strategy to increase reliability.

  Design a complex abstract type

Design a Complex abstract type, whose values are complex numbers. Equip your abstract type with operations such as magnitude and complex addition.

  Write an iterator for the shape class

Write an iterator for the Shape class. Use this iterator to traverse the collection of shapes that are created to display on the page.

  How has virtualization fuel business interest in data center

How/why has virtualization fueled business interest in data center consolidation? Discuss pros of using consultants to manage data center consolidation project?

  Create an application that lets user enter number of books

Create an application that lets the user enter the number of books that he or she has purchased this month and displays the number of points awarded.

  Which survey item area of concern should be addressed first

What do the survey results show? Analyze and explain the survey results using both numbers and words, and be specific. Brainstorm. What reasons could explain these results? Which survey item area of concern should be addressed first? Why?

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