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

  Give an example of an original engineering design problem

Give an example of an original engineering design problem and clearly outline the objectives, the constraints, and the design variables.

  Business and management scenario assignment

Business and Management Scenario assignment Write a 3- to 4-page paper addressing the following: Create the following components:

  Strategic management become so important to today

Can you please provide a response to both questions separately with reference please. Why has strategic management become so important to today's corporations?

  Explain in detail what the switches know

Do switches know the entire data link path between the sending and receiving host, explain in detail what the switches know?

  The method will return this count back to a variable in main

The method will return this count back to a variable in main

  Develop a first-cut sequence diagram

Develop a first-cut sequence diagram, which only includes the actor and problem domain classes. Add the view layer classes and the data access classes to your diagram from part a. Develop a design class diagram based on the domain class diagram and..

  Perform the normalization process to convert

Perform the normalization process to convert

  Dividing the amount of data transmitted in one rtt interval

Give a timeline sketch showing that the amount of data per RTT above can be less than Congestion Window.

  What is the smallest negative number

given a tiny computer that has a word size of 6 bits, what is the smallest negative number that this computer can represent if it uses two's complement form

  Choose one area of rapid technological change in it

4. Choose one area of rapid technological change in IT or Computer Science, research and report on recent developments and the outlook for the future in the area that you have chosen. You will need to provide both in text citations and bibliography e..

  Impact of tourism development in the precinct

This assignment requires students to evaluate a precinct's ability to meet visitor needs. Key considerations include assessing whether visitor needs are met, identifying challenges and opportunities, and subsequently recommending strategies for en..

  Transformation of technological advancements of societies

Does or has religion played a critical role in the transformation of technological advancements of societies? What evidence can you provide?

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