Question
AskForNumbers Declare an integer array locally with the size of 200. Create a program that asks the user how many numbers the have. Use your
AskForNumbers
Declare an integer array locally with the size of 200. Create a program that asks the user how many numbers the have. Use your getChoice() function from before. Make sure it does not exceed 200 as the locally declared array has the size of 200. Use a for loop and ask the user to enter each value that must be stored in the array. Use a second loop to display each number, and also determine the average of all values in the array. After the for loop, display the average of all numbers.
--------------------------------------
RandomNumbers
Declare an integer array locally with the size of 200. Create a program that asks the user how many numbers the have. Use your getChoice() function from before. Make sure it does not exceed 200 as the locally declared array has the size of 200. Use a loop to assign random numbers from 1 to 10000 to the array elements. (Remember to use srand() to seed the random number generator). Use a second loop to display each number, and also determine the average of all values in the array. You must also find the largest and the smallest numbers. After the for loop, display the average of all numbers.
----------------------------------------
MyName
Declare a char arrays named name, upperName, lowerName, initialCappedName, . Ask the user to type in their first name. It will go into the name array. The upperName array should contain the name in all upper case letters. The lowerName array should contain the name in all lower case letters. The initialCappedName array should contain the name with the first character being upper case and all others being lower case. Display all four versions of the name.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started