Using C++
Instructions
Redo Programming Exercise 18 of Chapter 2 (LOOK BELOW FOR EXERCISE 18), taking into account that your parents buy additional savings bonds for you as follows:
a. If you do not spend any money to buy savings bonds, then because you had a summer job, your parents buy savings bonds for you in an amount equal to 1% of the money you save after paying taxes and buying clothes, other accessories, and school supplies.
b. If you spend up to 25% of your net income to buy savings bonds, your parents spend $0.25 for each dollar you spend to buy savings bonds, plus money equal to 1% of the money you save after paying taxes and buying clothes, other accessories, and school supplies.
c. If you spend more than 25% of your net income to buy savings bonds, your parents spend $0.40 for each dollar you spend to buy savings bonds, plus money equal to 2% of the money you save after paying taxes and buying clothes, other accessories, and school supplies.
The program should prompt the user to enter:
The program then outputs the following:
Your income before and after taxes from your summer job.
The money you spend on clothes and other accessories.
The money you spend on school supplies.
The money you spend to buy savings bonds.
The money your parents spend to buy additional savings bonds for you.
********* TO BE USED AS REFERENCE **************
EXERCISE 2-18
You found an exciting summer job for five weeks. It pays, say, $15.50 per hour. Suppose that the total tax you pay on your summer job income is 14%.
After paying the taxes, you spend 10% of your net income to buy new clothes and other accessories for the next school year and 1% to buy school supplies.
After buying clothes and school supplies, you use 25% of the remaining money to buy savings bonds. For each dollar you spend to buy savings bonds, your parents spend $0.50 to buy additional savings bonds for you.
Expected output:
//do comment if any problem arises
//Code
#include <iostream>
using namespace std;
int main()
{
//read payrate
cout << "Enter the pay rate for an hour: ";
float payrate;
cin >> payrate;
int Hours_Week[5], total_hours = 0;
//read hours worked for 5 weeks
for (int i = 0; i < 5; i++)
{
cout << "Enter the hours you worked week " << i + 1 << ": ";
cin >> Hours_Week[i];
total_hours += Hours_Week[i];
}
//read percent saving
cout << "Enter the percent of net income spent to buy saving bonds: ";
int percent_saving;
cin >> percent_saving;
//print income before taxes
cout << "\n\nIncome before taxex was " << float(total_hours) * payrate << endl;
//calculate income after taxes
float final_income = float(total_hours) * payrate * (1 - .14);
//print income after taxes
cout << "Income after taxes was " << final_income << endl;
//calculate money for new clothes
float new_clothes = final_income * .1;
cout << "Amount spent on new clothes was " << float(int(100 * new_clothes)) / 100 << endl;
//calculate money for school supplies
float school_supplies = final_income * .01;
//calculate money for saving bonds
cout << "Amount spent on school supplies was " << float(int(100 * school_supplies)) / 100 << endl;
float saving_bonds = final_income * (float(percent_saving) / 100);
cout << "Amount spent on saving bonds was " << saving_bonds << endl;
float parents_saving;
float net_saving = final_income - new_clothes - school_supplies;
//calculate money for parents saving
if (percent_saving == 0)
{
parents_saving = .01 * net_saving;
}
else if (percent_saving <= 25)
{
parents_saving = .25 * (saving_bonds) + .01 * (net_saving);
}
else
{
parents_saving = .40 * (saving_bonds) + .02 * (net_saving);
}
cout << "Amount parents spent on saving bonds was " << float(int(parents_saving * 100)) / 100;
}
Output:
Using C++ Instructions Redo Programming Exercise 18 of Chapter 2 (LOOK BELOW FOR EXERCISE 18), taking...
Please answer for each part step by step on codeblocks. ********************************************************************************************************************************************* found an exciting summer job for five weeks. It pays, say, $15.50 per hour. Suppose that the total tax you pay on your summer job income is 14%. After paying the taxes, you spend 10% of your net income to buy new clothes and other accessories for the next school year and 1% to buy school supplies. After buying clothes and school supplies, you use 25% of the remaining...
It is May 28 and you have just gotten a summer job that will pay you (net of taxes) $800 per month. You start June 1 and will work until school starts - halfway through August. Your scholarship pays for tuition, room and board. But you must buy books, pay for transportation to and from school, and pay for clothing, any extra meals, entertainment, and so on. You have gathered the following data: One round trip airline ticket is $260,...
Problem 9-21 (Algorithmic) (LO. 2, 3) Taylor, age 16, is a dependent of her parents. For 2018, she has the following income: $5,000 of wages from a summer job, $1,820 of interest from a money market account, and $1,875 of interest from City of Boston bonds. If required, round your answers to the nearest dollar. If an amount is zero, enter "0". a. Taylor's standard deduction for 2018 is $. Taylor's taxable income for 2018 is $. Feedback To reduce...
Chapter 2 Financial Planning Exercise 4 Preparing personal Income and expense statement Use Worksheet 2.2 Robyn and Matthew Scott are about to construct their income and expense statement for the year ending December 31, 2020. Robyn works full time while Matthew is finishing up graduate school. They have put together the following income and expense Information for 2020: $42,000 2,250 Robyn's salary Reimbursement for travel expenses Interest on: Savings account Certificates of deposit Groceries 110 70 4,150 9,500 Rent Utilities...
Below are the instructions, I have attatched the screenshots of what needs to be filled out Step 1 You work for Thunderduck Custom Tables Inc. This is the first month of operations. The company designs and manufactures specialty tables. Each table is specially customized for the customer. This month, you have been asked to develop and manufacture two new tables for customers. You will design and build the tables. This is a no nail, no screw, and no glue manufacturing...
Derek and Meagan Jacoby recently graduated from State University and Derek accepted a job in business consulting while Meagan accepted a job in computer programming. Meagan inherited $48,000 from her grandfather who recently passed away. The couple is debating whether they should buy or rent a home. They located a rental home that meets their needs. The monthly rent is $2,750. They also found a three-bedroom home that would cost $208,000 to purchase. The Jacobys could use Meagan’s inheritance for...
c. d. Required information The following information applies to the questions displayed below.) Derek and Meagan Jacoby recently graduated from State University and Derek accepted a job in business consulting while Meagan accepted a job in computer programming. Meagan inherited $36,000 from her grandfather who recently passed away. The couple is debating whether they should buy or rent a home. They located a rental home that meets their needs. The monthly rent is $2,450. They also found a three-bedroom home...
Using Microsoft Excel, demonstrate your understanding of the Time Value of Money concepts discussed in the text by answering the following questions. Upload your answer to canvas. 1. You graduate from school and get a job with an annual salary of $50,000. a. (1 point) Your boss calls you into the office and says she is happy with your performance and is going to give you a $1,000 raise. What percentage raise is this for you? b. (1 points) If...
PUERTO RICAN CASE STUDY #2 Carmen Medina, aged 39, lives with her husband, Raúl, aged 43, who works as a mechanic in a small auto shop. Mr. Medina has worked in the same place since he and his wife came to the United States from Puerto Rico 15 years ago. The Medinas have a 4- year-old son, José; a 16-year-old daughter, Rosa; and an 18-year-old son, Miguel. The Medinas both attended vocational school after completing high school. Mrs. Medina is...
7. Preparing a cash budget Brock and Sam started to create a budget (based on last year’s income and expense statement) but got stuck. They know that you have learned how to create budgets and are asking for your help. They would like you to input the correct values for the first three months of next year. Income and Expense Statement Name(s): Brock and Sam Wilson For the year ending: As of December 31 Dollars Income Wages and salaries Name:...