Question: CLASS 8 - ARRAY 1 - D Array ( Program ) a . Write, compile, and run a C + + program to input the
CLASS ARRAY
D Array
Program a Write, compile, and run a program to input the following values into an array named prices: and After the data has been entered, have your program display the values.
b Repeat Exercise a but after the data has been entered, have your program display it in the following form:
table
Program Write, compile, and run a C program to input eight integer numbers into an array named grade. As each number is input, add the numbers to a total. After all numbers are input, display the numbers and their average.
Program a Write, compile, and run a program to input integer numbers into an array named fmax and determine the maximum value entered. Your program should contain only one loop, and the maximum should be determined as array element values are being input. Hint: Set the maximum equal to the first array element, which should be input before the loop used to input the remaining array values.
b Repeat Exercise a keeping track of both the maximum element in the array and the index number for the maximum. After displaying the numbers, display these two messages replacing the underlines with the correct values:Program Write, compile, and run a C program that creates an array of five integer numbers and displays these numbers in reverse order.Program Define an array named peopleTypes that can store a maximum of integer values entered at the keyboard. Enter a series of sss and s in the array to represent people at a local school function; represents an infant, represents a child, represents a teenager, and represents an adult. No other integer value should be accepted as valid input, and data entry should stop when a negative value is entered. Your program should count the number of each and in the array and display a list of how many infants, children, teenagers, and adults were at the school function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
