Question: C++ Help program something like this? Write a program that helps the user -- prospectively a manager at the company -- determine the budget for

C++ Help program something like this?

Write a program that helps the user -- prospectively a manager at the company -- determine the budget for the next year. You should gather from them both the budgetted amount for last year and the amount spent for last year. For each, the user mayenter the currency units either in front orin back of the value. If they enter neither, you are to assume that currency is measured in dollars ($). If they enter something in both places, you'll have to ask them -- or perhaps be terribly clever -- to decide which thing is the currency unit.

Then calculate for them the percent of their budget that was used -- this may be over 100%. This percent should be roundedto the nearestwhole percent. Finally, force their spending upto the nearest$100and tell them that this figure will be their budget for the next year.

Make sure you print their results in a nice way. Use the currency unit they entered at the beginning (or $). Be sure to place this marker either in front or in back of the new budget just like they entered it. (If they didn't enter the units, place the $in the front by default.) And always print two decimal places (even though we shouldn't have any change to report). Also print the percent of their budget that was used with a percent sign (%) after it.

Also use functions for:

printing the opening message

printing the closing message

printing a monetary amount with proper formatting

printing all of the results

rounding a value to the nearest desired 'place'

rounding a value to the next highest desired 'place'

calculating what decimal percent one value is of another

calculating the projected budget (uses 'next highest' function)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!