Question

*must be in C programming* Scenario: My friend Steve wants to buy something nice for himself....

*must be in C programming*

Scenario:

My friend Steve wants to buy something nice for himself. He doesn't know want he wants yet but he is thinking of spending $1,000 on it or more. He makes $500 a month and has a monthly living expense of $325. He also has a lot of bi-monthly subscription payments which costs him $450 every other month ($450 is the bimonthly expenses) . He wants to know when he will be able to buy want he wants and still be able to pay his bills. He can work normal hours or work overtime and earn an extra $150 a month. Other things to consider are the tax rate (which is seven percent) and the amount of money he already has.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

If you have any doubts about the program feel free to comment.

Program

#include <stdio.h>

int main(){
int reqMoney = 1000;//savings required
int income = 500;//actual monthly income
int monthlyExp = 325;//monthly expense
int biMonthly = 450;//expense after every other month
int totalMonthlyExp = monthlyExp + (biMonthly/2);//calculating total monthly expense
int overtime = 150;// overtime rate
int overIncome = overtime + income;//monthly income including overtime
double taxRate = overIncome*0.07;//tax rate


int alreadyHas;

printf("Enter the amount you have already: $");
scanf("%d", &alreadyHas);//taking user input for amount already has

int months =0;
int temp = alreadyHas;
while(temp < reqMoney){
//calculating monthly saving and adding it ti alreadyHas
temp += overIncome - (totalMonthlyExp + taxRate);
months++;//counting months
}
printf("It will take %d months to get $1000 if he overtimes\n", months);//displaying result
}

Output

Add a comment
Know the answer?
Add Answer to:
*must be in C programming* Scenario: My friend Steve wants to buy something nice for himself....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In the summer of 2017, Reigh Webster and her friend Ella Hill were relaxing in a...

    In the summer of 2017, Reigh Webster and her friend Ella Hill were relaxing in a local watering hole complaining about their boring monotonous jobs. Reigh told Ella that she has been saving her money and is looking for a lucrative opportunity to invest in and get out of the day-to-day grind at the office. Ella indicated she had been doing the same. An executive walked up to the table and indicated he had overheard Reigh and Ella’s conversation and...

  • Jack Adam’s mind wandered as he sat outside Bill Squire’s office awaiting his yearly performance review…...

    Jack Adam’s mind wandered as he sat outside Bill Squire’s office awaiting his yearly performance review… [Jack thinking.] Well, it’s 8:25. Five more minutes to go. Fifteen years with the company, and this new district manager, Squire, couldn’t even call and request this meeting personally. These annual performance appraisals are tough enough, and here I’ve got a bad sales record for the past 12 months. Surely he’ll be able to understand that the sales decreases were a result of the...

  • please answer this after reading the article What is the actual problem? What are the known...

    please answer this after reading the article What is the actual problem? What are the known facts? What decision is to be made? How the problem ought to be solved? What are the alternatives? What are your recommendations? New AI tools make BI smarter — and more useful Data science democratized: What used to take data scientists months to prepare may soon be put together in a few days by data-astute business users. By Maria Korolov, Contributing Writer, CIO |...

  • And there was a buy-sell arrangement which laid out the conditions under which either shareholder could...

    And there was a buy-sell arrangement which laid out the conditions under which either shareholder could buy out the other. Paul knew that this offer would strengthen his financial picture…but did he really want a partner?It was going to be a long night. read the case study above and answer this question what would you do if you were Paul with regards to financing, and why? ntroductloh Paul McTaggart sat at his desk. Behind him, the computer screen flickered with...

  • Please see attached Pictures. This is a homework assignment for Legal environment of Business that i...

    Please see attached Pictures. This is a homework assignment for Legal environment of Business that i need help solving. Stacy mails Jennifer an offer to sell Jennifer 43 bags of rice for $107.00. Jennifer replies to Stacy by mail, stating, " agree to pay $105.75 for 43 bags of rice. Neither Stacy nor Jennifer are merchants. What is the status of Stacy's offer. 1. a. Jennifer has accepted it b. Jenifer has rejected it and counteroffered c, Jennifer has breached...

  • Hi, Kindly assist with my project management assignment below using the attached case study Question 1 Update the project charter for the remainder of the project in response to Adams’ memo (lines 241...

    Hi, Kindly assist with my project management assignment below using the attached case study Question 1 Update the project charter for the remainder of the project in response to Adams’ memo (lines 241 through 246). Question 2 Prepare a plan for the remainder of the project in response to Adams’ memo (lines 241 through 246). Your answers to the above will be assessed in terms of the level of communication displayed, the insights and inferences drawn, and your ability to...

  • Direction: review the eassy prof it and summerize it. Add thesis with it. make changes if...

    Direction: review the eassy prof it and summerize it. Add thesis with it. make changes if posible Title The coporate puzzel When all you believe is people behind you until they turn their back on you. Times are hard when you are not to be worried about anything in life. I had a great job with a very working paid. Things were going smoothly until one day I had a call to my manager’s office saying he will like to...

  • QUESTION 1 Ebbinghaus’ forgetting curve suggested that most forgetting occurs ________. very gradually over a period...

    QUESTION 1 Ebbinghaus’ forgetting curve suggested that most forgetting occurs ________. very gradually over a period of 1 year very rapidly after 20 minutes have passed only after 24 hours have passed steadily over a period of 7 days 1 points QUESTION 2 The trichromatic theory postulates that the human eye has three types of cones that are especially sensitive to the wavelengths for _____________. blue, yellow, and red black, white, and red red, blue, and green green, blue, and...

  • While reading the story, consider the culture (or sub culture) and related communication styles the story...

    While reading the story, consider the culture (or sub culture) and related communication styles the story reveals. Consider too, possibly, the values, behavioral norms, social practices, social artifacts, etc. After reading the story through the lens of this idea, please compose a full academic length (evidence-based 7 to 11 sentence long) paragraph which addresses the following prompt: What does the story reveal about the culture it portrays and/OR the communication styles the culture shares? In other words, what does the...

  • Mini Case Building Shared Services at RR Communications4 4 Smith, H. A., and J. D. McKeen....

    Mini Case Building Shared Services at RR Communications4 4 Smith, H. A., and J. D. McKeen. “Shared Services at RR Communications.” #1-L07-1-002, Queen’s School of Business, September 2007. Reproduced by permission of Queen’s University, School of Business, Kingston, Ontario, Canada. Vince Patton had been waiting years for this day. He pulled the papers together in front of him and scanned the small conference room. “You’re fired,” he said to the four divisional CIOs sitting at the table. They looked nervously...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT