Write a main function that prompts user

Assignment Help Computer Engineering
Reference no: EM133483089

Question: Createe a class named "Taxpayer".

Data fields for Taxpayer class include the Social Security number (usea string for the type, but do not use dashes within the number), the yearly grossincome, the tax owed, and totalTaxAmt (static variable).

The class includes the properties with get and set for the first two data fields, but make the tax owed a read-only property. The tax should be calculated whenever the income is set. Assume the tax is 15% of income for incomes under $30,000 and 28% for incomes that are $30,000 or higher. After the tax owed is calculated, the tax owed is added into totalTaxAmt.

Writee a main function that prompts user to enter the number of Taxpayer and creates a dynamic array of the Taxpayer objects. Prompt the user for data for each object and display total tax amount. After the main function, writee a function that compare each object based on tax owed; then display the objects in order by the amount of tax owed.

Reference no: EM133483089

Questions Cloud

Draw a picture illustrating the timestamps : Draw a picture illustrating the timestamps for the messages and explain how timestamps are obtained
Reduce burnout with medical professionals : What are some options to reduce burnout with medical professionals?
Concepts of epidemiology and apply nursing theories : The purpose of this assignment is to discuss concepts of epidemiology and apply nursing theories and research to a communicable disease.
Do you think that the economic struggle : Do you think that the economic struggle will be most important then the mental problem(s) people are developing as a result of the pandemic?
Write a main function that prompts user : Writee a main function that prompts user to enter the number of Taxpayer and creates a dynamic array of the Taxpayer objects. Prompt the user for data
Explain the terms using shekhars explanation : Explain the following terms using Shekhar's explanation: scrum, scrum Master, sprint, product backlog, sprint backlog, user story, epic and theme
Compare and contrast all types of sorting : Use a table to compare and contrast all types of sorting Algorithms used in data structures for all programming languages
Write arm assembly code to calculate the summation : Write ARM assembly code to calculate the summation of an array such - the variable sum also must be declared as a byte by using the .byte directive
Develop a process to manage stock replenishment : Develop a process to manage stock replenishment when the quantity falls below a certain threshold. This could involve querying products with low stock

Reviews

Write a Review

Computer Engineering Questions & Answers

  Determine how many comparisons are made

Determine how many comparisons are made, and thereby check the formula for the average number of comparisons for a successful search.

  Create a gui pad that has numbers and letters

Create a GUI pad that has numbers and letters(That can be capitalized), and a text area to display One button that clears the text.

  How this technology can be used effectively in a business

Describe how this technology can be used effectively in a business setting. Are there any drawbacks to using social networks in a business setting?

  Describe the terms analyzability and core technology

Students must choose one of the following terms for your research for Journal Article Summary 5: analyzability, core technology, interdependence.

  What are the business interests of organized crime groups

what are the business interests of organized crime groups? how have these interests evolved over time? how would you

  Create a windows form mock-up for the given requirements

Create a Windows form mock-up for the following requirements document and Use Case Definition. The Windows Form object and the other objects in the user interface are shown in Figure 2-82

  What types of countermeasures need to be implemented

Start a discussion thread and discuss what type(s) of countermeasures need to be implemented to prevent the cyber attack described above from occurring.

  Create an erd to capture the business

Create an ERD to capture the business rules: When a customer brings a device to PE for repair, data must be recorded about the customer,

  Write a program that is a gpa calculator

Ask for student name, then add classes (course name, credit hours and letter grade) ..then ask user if they want to add another class.

  Write a mips program that computes the factorial of a number

Write a MIPS program that computes the factorial of a number n input by the user, and display the result on the screen.

  Display the sorted sequence

Write a program name sorting.java that will use an array to store 10,000 randomly generated numbers (ranging from 1 to 10,000 no repeat number)

  Write a sentinel-controlled while loop that allow any number

Write a sentinel-controlled while loop that allows any number of temperatures to be entered. The average temperature should be calculated and displayed.

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