Outputs the monthly paycheck information

Assignment Help Basic Computer Science
Reference no: EM131186760

Complete the following two programs:

Programming Problem 1

Write a program that calculates and outputs the monthly paycheckinformation for an employee, including all the amounts deductedfrom an employee's gross pay, and the net pay that is due to theemployee. The user of your program will know the employee's nameand the gross pay for the employee. Each employee has the followingdeductions taken from his gross pay:

Federal Income Tax: 15%
State Tax: 3.5%
Social Security + Medicare Tax: 8.5%
Health Insurance $75

The output from your program should be structured as is displayedbelow:

Bill Robinson
Gross Amount: ............ $3575.00
Federal Tax: ............. $ 536.25
State Tax: ............... $ 125.13
Social Sec / Medicare: ... $ 303.88
Health Insurance: ........ $ 75.00
Net Pay: ................. $2534.75

Your program should deal with erroneous input values. Gross salaryshould always be a positive number. Make sure that you deal withthe possibility that the user may have entered a non-numeric inputvalue. Have your program output appropriate error messages in thesecases.

1. Identify the inputs and outputs of the problem.

2. Identify the processing needed to convert the inputs to theoutputs.

3. Design an algorithm in pseudocode to solve the problem. Makesure to include steps to get each input and to report each output.Include steps to deal with error cases.

4. Identify three test cases, one using a positive number, and oneusing a negative number, and one using incorrect input (ie. Input aletter rather than a digit for the numeric input). For each of thethree test cases show what inputs you will use and what yourexpected outputs should be.

5. Write the program to implement your algorithm. Test your programusing your test cases.

Programming Problem 2

In a right triangle, the square of the length of one side is equalto the sum of the squares of the lengths of the other two sides.Stephanie has the integer lengths of three sides of a triangle andneeds to know if it is a right triangle.

Write a program to solve this problem. NOTE: The user must beallowed to input the values of the sides in ANY ORDER!

1. Identify the inputs and outputs of the problem.

2. Identify the processing needed to convert the inputs to theoutputs.

3. Design an algorithm in pseudocode to solve the problem. Makesure to include steps to get each input and to report eachoutput.

4. Identify five significant test cases including one for incorrectinput (ie. Input a letter rather than a digit for the numericinput). (Think about what impact changing the order of the inputvalues should have on your program!) For each of the five testcases show what inputs you will use and calculate what yourexpected outputs should be.

5. Write the program to implement your algorithm. Test your programusing your test cases.

For each of the two programming problems, create a program usingVisual C++.Net. Make sure to capture a sample of your program'soutput. The best way to do this is to click on the console windowyou want to capture and then press the Alt and PrintScreen keys atthe same time. Then paste your captured screen image into a Worddocument. For each of the two programs, put the screen capturefollowed by a copy of your source code into your Worddocument.

Your final programming document should contain in the followingorder:

1. Answers to the questions listed above.

2. Screen capture of the first program followed by sourcecode.

3. Screen capture of the second program followed by sourcecode.

Reference no: EM131186760

Questions Cloud

Describe how cryptography can be used to meet your goal : You are designing a program that will be able to detect if any of the standard operating system files on a PC have been modified. You decide to use cryptography to accomplish this. Describe how cryptography can be used to meet your goal.
Which of the general categories best described the example : If the British pound (?) appreciates by 10% against the dollar: Consumer expenditure plans is an example of a forecasting method. Which of the general categories best described this example?
Dramatic transformation of matter : Classically, before the 20th century, chemistry was defined as the science of the nature of matter and its transformations. It was therefore clearly distinct from physics which was not concerned with such dramatic transformation of matter.
Variable in the macro environment : Which one of the following is NOT a variable in the macro environment? Airlines know that if there is a global shortage of fuel, their ticket prices have to increase to accommodate the higher price they will pay for the fuel. Which characteristic of ..
Outputs the monthly paycheck information : Write a program that calculates and outputs the monthly paycheckinformation for an employee, including all the amounts deductedfrom an employee's gross pay, and the net pay that is due to theemployee. The user of your program will know the employe..
Construct a bivariate control chart : For the above retrospective data, construct a bivariate control chart. You need to show all steps in computing the points plotted and control limits. Interpret the chart and compare it with the corresponding univariate charts
Understanding of benefits and risks of electronic commerce : This Discussion will assess your understanding of the benefits and risks of electronic commerce over the Internet. Using the library and the Internet, locate and briefly summarize a cybercrime case. Discuss the internal controls you would recommend t..
Construct a flood frequency curve for myola : Construct a flood frequency curve for Myola and generate a table and sort the individual flood flows into order of decreasing magnitude.
E-commerce have implications for financial reporting : Privacy and security issues associated with e-commerce have implications for financial reporting and compliance with laws and regulations. Identify a retail company and describe how the company uses electronic commerce. Further, explain why electroni..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Define deadlock

Define deadlock? Explain the necessary conditions for deadlock to occur.

  What are the goals of lawmakers in the public sector

Describe some likely instances that demonstrate when the gathering of meta-data by businesses within this example industry may not be good for the customer. Use citations to support your arguments about how some action or result related to collec..

  Create a series of keyboard and mouse events

Create a series of keyboard and mouse events for either the eight ballerinas world that will allow the user to control a ballet routine, or for the toy soldiers world that will allow the user to control a marching drill routine while the world is ..

  Next-lowest marginal tax-rate

What is the marginal tax rate for a corporation with $70,000 taxable income and an average tax rate of 15% if the next-lowest marginal tax rate of 10% covers taxable incomes up to $50,000?

  Draw the relation from the following problem

Draw the relation from the following Problem as an arrow diagram : Let A = {0, 1, 2, 3, 4, 5, 6, 7, 8} and B = {1, 2, 3, 4, 5, 6, 7, 8}. Now let R be a binary relation R from A to B such that for all (x, y) ? A x B, (x, y) ? R if and only if y =..

  Determine which instruction should be executed

Write a better handler that uses the EPC register to determine which instruction should be executed after the exception.

  Programming assignment-the pathfinder

The following grid of ones and zeroes is a double scripted array representation of a terrain of size 12 x 12.

  How does policy impact the discussion to disclose a breach

What does the current law say about companies having to release information / statements on a security breach?

  Network consultation for designit

Network Consultation for DesignIT

  How to implement standard approach to systems development

"Implementing the standard approach to systems development helps experienced staff and new hires to be more productive, as they spend less time wondering how to do something and more time doing it?"

  Poisson or the exponential distributions

Say that a restaurant is trying to figure out the efficiency of its servers and discovers the number of parties served by one server in an hour period follows a Poisson distribution with a mean of 12. Include cdf notation when appropriate. You may..

  With replacement order matters

Given an alphabet of size N=9. Write a c++ program that compares the number of possible sequences of the length L that can be generated inder the following assumptions: With replacement order matters, without replacement order matters, and without..

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