This lab is designed to use interactive input, loop structures, functions, and console output (including formatting) within a C-Language program.
OBJECTIVE:
Write a program to:
1) Produce a well-formatted screen heading of your choice using a function.
Hint: You can clear the screen with system("cls").
2) Using a 2nd function:
a) Accept four positive numbers from the program user (it is possible for the user to enter numbers that contain decimal points, and a negative number will terminate the program).
b) Calculate the sum of all numbers.
c) Provide the resultant answer to the user with 3 decimal places.
d) Stay within this 2nd function until the user enters a sentinel. (Calling a function from a function is allowed).
3) With a 3rd function, provide a message that the program is terminating.
4) Test your program and submit all your code - label each part.
REQUIREMENTS:
You are asked to write a C program that will use the main() module to direct activities to various functions.