Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

for C++ and visual studio shoukd use arrays and for loops. can only use #include #include #include #include if you woukdnt mind using lots of

for C++ and visual studio
shoukd use arrays and for loops.
can only use
#include
#include
#include
#include
if you woukdnt mind using lots of comments to help me inderstand what or why your doing something, that would be greatly appreciated
#define _CRT_SECURE_NO_WARNINGS image text in transcribed
image text in transcribed
just ignore the "format for lab 1 and lab 2" it simply meams main must go first and the functions go after words.
yes its i. C laungauge. i apologize i was under the impression C++ and c were the same.
s
Use i, j, and k (in that order) for loop counters. Your program must use for loops where specified or it will receive a grade of 0. 1. Write seven separate functions to: a explain the purpose of this program to the user. b. get the user's name. c. ask the user to enter 10 integers. Acceptable values are from -1000 to +1000, inclusive. Store these values as the first 10 elements of a one dimensional array of size 12. Use a for loop. d. find the smallest value in the array and place it in the next available location in the array. Use a for loop. e. find the largest value in the array and place it in the last available location in the array. Use a for loop. f. calculate the average value of the array and return it to the calling, function. Use a for loop. a. clear the screen before displaying the results using system("cls") which also requires #include , then display the user's name, and use a for loop to display all of the input numbers, the smallest, largest and average values. The average value should be displayed with one decimal place. The display should also include appropriate descriptions and formatting. Each of the functions will be called from main. The program must have a complete title block, following the format required for lab 1. Each function must have a complete function description, following the format required for lab 2. 5. Each function must be compact enough to fit on one screen

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

More Books

Students also viewed these Databases questions