Question: This lab is designed to use interactive input, loop structures, and console output (including formatting) within a C-Language program. OBJECTIVE: You have just obtained an

This lab is designed to use interactive input, loop structures, and console output (including formatting) within a C-Language program. OBJECTIVE: You have just obtained an engineering position within Massasoit Electrical Engineering LLC (a prestigious electrical and scientific research firm). Your reputation for programming has spread throughout the firm and the Sales department has asked you to provide a tool (a program) that will total the monthly sales for the past year. REQUIREMENTS: You are asked to write a C-program that will: (a) accept the year that is being calculated. (b) accept 12 monthly dollar amounts individually. (c) display a neatly formatted screen with the Company name \& Year being calculated and the original monthly data and Sales total value. Use the tools learned to create the neatly format for the monitor. (d) the above tasks (a-c) must use repetition and continue until the user has entered a negative number for the year. (e) you must comment your code stating what you are trying to accomplish at each major task; ie, comments may include input user data, or loop to obtain data, or calculations, or output to monitor. Hint: after accepting data, an Output Screen can be formatted by clearing the screen ( adding code: system("cls"); ), creating a Heading of the company name, and then the Total Sales on a different line. Just make sure you have an output that is User Friendly. (You may need to include pre-processor directives of stdio.h and stdlib.h). Example of screen output: Example of CTIM375 Lab 5 Output.pdf. Remember, neatness in monitor output and code is important. And do not forget your comments in code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
