Reference no: EM132360736
Question : Cost Analysis Program
You have been hired as a new computer programmer for Mountain Steelworks, Inc. As a part of your initial programming task, the owner has asked you to design a simple computer program that allows them to store various monthly expenses associated with the business and have the ability to analyze these expenses as needed.
Your task is to design a program that asks the user to enter a series of 10 monthly expenses that are associated with the following expense items: office rent, electric, vehicles, cable TV, telephone, internet, payroll, marketing, production, and shipping. The program should store these expenses in a list. For completion of the programming challenging your program MUST also have the following:
Display the company name, address, and phone number. (any address and phone number)
After the expenses for each expense it is gathered, a table must be printed showing each expense name and expense amount.
At least two functions must be created; one to calculate the total expenses and one to calculate the average expense amount. The functions must receive the list as an argument and return either total or average to the appropriate function call in the main function.
The program must display the lowest expense in the list
The program must display the highest expense in the list
The total of the expense in the list must also be displayed
The average of the expenses in the list must also be displayed.
All currency output must be formatted with the dollar sign and two decimals.