Question: Instructions: 1. Define a constant variable SIZE = 5 outside the main() . Declare any other necessary variables with proper datatypes and meaningful names. Use

 Instructions: 1. Define a constant variable SIZE = 5 outside the

Instructions: 1. Define a constant variable SIZE = 5 outside the main() . Declare any other necessary variables with proper datatypes and meaningful names. Use #define Syntax: #define 2. Display your info in a box of stars with printf statements as shown in the sample screen captures. 3. Declare an integer array that will store 5 whole numbers. Use the SIZE constant variable to specify the size of the array. 4. Using a loop, populate the array by prompting the user to input a number. 5. Display the contents of the array. 6. Compute and display the average with two decimal places. 7. Find the maximum value in the array and display it to the screen. 8. Decrease the value of each element in the array by 1 and store it in the array. 9. Display the updated array elements to the screen. 10. Test your program by comparing the outputs with Sample Screen Captures

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 Mathematics Questions!