{"id":23574,"date":"2022-01-08T07:07:40","date_gmt":"2022-01-08T07:07:40","guid":{"rendered":"https:\/\/assignmenttutors.net\/blog\/write-a-program-that-calculates-and-prints-the-monthly-paycheck-for\/"},"modified":"2022-01-08T07:07:40","modified_gmt":"2022-01-08T07:07:40","slug":"write-a-program-that-calculates-and-prints-the-monthly-paycheck-for","status":"publish","type":"post","link":"https:\/\/assignmenttutors.net\/blog\/write-a-program-that-calculates-and-prints-the-monthly-paycheck-for\/","title":{"rendered":"Write a program that calculates and prints the monthly paycheck for"},"content":{"rendered":"<div>\n<p>Complete the below two problems. Each problem is a separate program (project).<\/p>\n<p>Question 1<br \/>Write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions:<br \/>Federal Income Tax: 15%<br \/>State Tax: 3.5%<br \/>Social Security Tax: 5.75%<br \/>Medicare\/Medicaid Tax: 2.75%<br \/>Pension Plan: 5%<br \/>Health Insurance: $75.00<br \/>Your program should prompt the user to input the gross amount and the employee name. The output will be stored in a file. Format your output to have two decimal places. A sample output follows:<br \/>Bill Robinson<br \/>Gross Amount: &#8230;&#8230;&#8230;&#8230; $3575.00<br \/>Federal Tax: &#8230;&#8230;&#8230;&#8230;. $ 536.25<br \/>State Tax: &#8230;&#8230;&#8230;&#8230;&#8230; $ 125.13<br \/>Programming Exercises | 173<br \/>Social Security Tax: &#8230;.. $ 205.56<br \/>Medicare\/Medicaid Tax: &#8230; $ 98.31<br \/>Pension Plan: &#8230;&#8230;&#8230;&#8230; $ 178.75<br \/>Health Insurance: &#8230;&#8230;.. $ 75.00<br \/>Net Pay: &#8230;&#8230;&#8230;&#8230;&#8230;.. $2356.00<br \/>Note that the first column is left-justified, and the right column is right justified.<br \/>7. Redo Programming Exercise 21, in Chapter 2, so that each string can store\u00a0a line of text.<\/p>\n<p>Question 2<br \/>A bank in your town updates its customers\u2019 accounts at the end of each month.<br \/>The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance. If a customer\u2019s balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts and $25.00 for checking accounts. If the balance at the end of the month is at least the minimum balance, the account receives interest as follows:<br \/>a. Savings accounts receive 4% interest.<br \/>b. Checking accounts with balances of up to $5,000 more than the minimum balance receive 3% interest; otherwise, the interest is 5%.<br \/>Write a program that reads a customer\u2019s account number (int type), account type (char; s for savings, c for checking), minimum balance that the account should maintain, and current balance. The program should then output the account number, account type, current balance, and an appropriate message. Test your program by running it five times, using the following data:<br \/>46728 S 1000 2700<br \/>87324 C 1500 7689<br \/>79873 S 1000 800<br \/>89832 C 2000 3000<br \/>98322 C 1000 750<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Complete the below two problems. Each problem is a separate program (project). Question 1Write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions:Federal Income Tax: 15%State Tax: 3.5%Social Security Tax: 5.75%Medicare\/Medicaid Tax: 2.75%Pension Plan: 5%Health Insurance: $75.00Your program should prompt the user [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-23574","post","type-post","status-publish","format-standard","hentry","category-education"],"_links":{"self":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/23574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/comments?post=23574"}],"version-history":[{"count":0,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/23574\/revisions"}],"wp:attachment":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/media?parent=23574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/categories?post=23574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/tags?post=23574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}