Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello! C Language Imagine you are the IT manager for Site 3 that had annual IT expenses of $42,500. Your site was above the target

Hello!

C Language

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:

C Language

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

Students also viewed these Databases questions

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago