Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Numerical Analysis

Authors: Richard L. Burden, J. Douglas Faires

9th edition

538733519, 978-1133169338, 1133169333, 978-0538733519

More Books

Students also viewed these Mathematics questions