Question

Assume you are the CIO of an organization with three different IT department locations with separate...

Assume you are the CIO of an organization with three different IT department locations with separate costs. You want a program to perform simple IT expenditure calculations. Your IT expenditure target is $35,000 per site. Site expenditures: Site 1 – $35,000. Site 2 – $37,500. Site 3 – $42,500. Exercise 3 – Calculating Monthly Expenses Imagine you are the IT manager for Site 3 that had annual IT expenses of $42,500. Your site was above the target of $35,500 and you want to review your monthly expenses for each month of that year to determine in what months the over-expenditure occurred. Write a program that: Calculates what the monthly target would be for each of the 12 months (assuming that the target is the same each month). Assigns the monthly target value to a variable called monthly_target Uses a For Loop to ask for the input of monthly expenditures for 12 months (make sure your total monthly expenditures add to the $42,500 annual expense). Compares the expense to the monthly target and uses an if statement to determine if the expense is Over, Under, or Exact to the monthly target for each entry. Creates a three-column display showing the month and the expense entered for that month and a third column that says Over, Under, or Exact (Text chapter 4, Program 4-11 can be helpful in showing how to program the display). Save and run the program and take a screenshot of your code and the results of running the program and paste it into the Word document.

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

NOTE: PROGRAM IS DONE WITH C++ LANGUAGE AND IT IS TESTED AND RUNNING EXACTLY IN DEV-C++5.11 SOFTWARE

PROGRAM

#include<iostream>
using namespace std;
main()
{
   double monthly_target,trg;
   int i;
   double site3;
   double arr[12];
   site3=42500;
   /* monthly expanditure */
   monthly_target = site3/12;
   /* monthly expenses with for loop */
   for(i=1;i<=12;i++)
   {
       cout<<"Enter "<<i<<" month target : ";
       cin>>arr[i];
   }
   /* make site3 report with for loop and if statement */
   cout<<endl<<"Month\tMonthly Expenses\tExpenses Type" <<endl<<endl;
   for(i=1;i<=12;i++)
   {
       /* if expenses is over */
       if(arr[i]>monthly_target)
       {
           cout<<i<<"\t"<<arr[i]<<"\t\t\t"<<"Over" <<endl;
       }
       /* if expenses is under */
       if(arr[i]<monthly_target)
       {
           cout<<i<<"\t"<<arr[i]<<"\t\t\t"<<"Under" <<endl;
       }
       /* if expenses is exact */
       if(arr[i]==monthly_target)
       {
           cout<<i<<"\t"<<arr[i]<<"\t\t\t"<<"Exact" <<endl;
       }
   }
  
}

SCREEN SHOT

#include<iostream> using namespace std; main() { double monthly_target, trg; int i; double site3; double arr[12]; site3-42500

* if expenses is exact * | if(arr[i]==monthly_target) { cout<<i<<\t<<arr[i]<<\t\t\t<<Exact <<endl; 1 } } }

OUTPUT

L E:\expanse.exe Enter 1 month target : 3542 Enter 2 month target : 3530 Enter 3 month target : 5367 Enter 4 month target :

Add a comment
Know the answer?
Add Answer to:
Assume you are the CIO of an organization with three different IT department locations with separate...
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
  • Assume you are the CIO of an organization with three different IT department locations with separate...

    Assume you are the CIO of an organization with three different IT department locations with separate costs. You want a program to perform simple IT expenditure calculations. Your IT expenditure target is $35,000 per site. Site expenditures: Site 1 – $35,000. Site 2 – $37,500. Site 3 – $42,500. Exercise 3 – Calculating Monthly Expenses Imagine you are the IT manager for Site 3 that had annual IT expenses of $42,500. Your site was above the target of $35,500 and...

  • <!DOCTYPE html> <html> <body> <!-- replace the text below with your name!--> <!-- --> <!-- -->...

    <!DOCTYPE html> <html> <body> <!-- replace the text below with your name!--> <!-- --> <!-- --> <title> TYPE YOUR NAME HERE</title> <script> // // Write a program that asks the user to enter the amount that he or she has // budgeted for a month. Call a function that uses a loop that prompts the user // to enter each of his or her expenses for the month and keep a running total. // The loop finishes when the user...

  • Your program will ask the user to enter the amount of money they want to borrow,...

    Your program will ask the user to enter the amount of money they want to borrow, the interest rate, and the monthly payment amount. Your program will then determine how many months it will take to pay off that loan, what the final payment amount will be, and how much interest was paid over that time. If the monthly payment amount isn't high enough to pay off more than one month's interest, your program should notify the user what the...

  • Beginning three months from now, you want to be able to withdraw $1,500 each quarter from...

    Beginning three months from now, you want to be able to withdraw $1,500 each quarter from your bank account to cover college expenses over the next three years. If the account pays .37 percent interest per quarter, how much do you need to have in your bank account today to meet your expense needs over the next three years?

  • The controller of Sonoma Housewares Inc. instructs you to prepare a monthly cash budget for the next three months. You a...

    The controller of Sonoma Housewares Inc. instructs you to prepare a monthly cash budget for the next three months. You are presented with the following budget information: May June July Sales $134,000 $159,000 $216,000 Manufacturing costs 56,000 68,000 78,000 Selling and administrative expenses 39,000 43,000 48,000 Capital expenditures _ _ 52,000 The company expects to sell about 12% of its merchandise for cash. Of sales on account, 70% are expected to be collected in the month following the sale and...

  • You have just purchased a stereo system at the cost of $1,000 on the following credit...

    You have just purchased a stereo system at the cost of $1,000 on the following credit plan: no down payment, an interest rate of 18% per year (and hence 1.5% per month), and monthly payments of $50. The monthly payment of $50 is used to pay the interest, and any remainder is applied to the principal. Hence, the first month you pay 1.5% of $1,000 in interest ($15). Then, the remaining $35 is deducted from the principal, which leaves a...

  • Start Smart Preschool operates a not-for-profit moming preschool that operates eight months of the year. The pres...

    Start Smart Preschool operates a not-for-profit moming preschool that operates eight months of the year. The preschool has 180 kids enrolled in its various programs. The preschool's primary expense is payroll Teachers are paid a flat salary each of the eight months as follows: Click the icon to view salary data) Click the loon to view additional information) Requirements 1. Prepare Start Smart Preschool's monthly operating budget. Round all amounts to the nearest dollar 2. Using your answer from Requirement...

  • We want to track weather conditions during the past year's three-month summer season as has designated...

    We want to track weather conditions during the past year's three-month summer season as has designated each day as either rainy ('R'), cloudy ('C'), or sunny ('S'). Write a program that stores this information in s 3x30 array of characters, where the row indicates the month and the column indicates the day of the month. Note no data is being captured for the 31st of any month. This program will read the data in from a file called RainOrShine.txt. From...

  • C++ Programming- CIS 1111 The CPlusPlus & LandMinusMinus Company needs you to write a program which...

    C++ Programming- CIS 1111 The CPlusPlus & LandMinusMinus Company needs you to write a program which will produce a report, in both number and chart form, which will display Net Sales for their three company divisions, for any given month of the year entered by the user. The corporate tax rate for the company is 30% (define as constant); the three division names are East-Coast, Mid-West, and West-Coast. Requirements Have the user enter a month name, and then process each...

  • Beginning three months from now, you want to be able to withdraw $2,300 each quarter from...

    Beginning three months from now, you want to be able to withdraw $2,300 each quarter from your bank account to cover college expenses over the next four years. If the account pays 1.45 percent interest per quarter, how much do you need to have in your bank account today to meet your expense needs over the next four year A. 28,785.91 B. 32,633.32 C. 41,086.02 D. 19,934.56

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