Question: C++ 1. Lab Description For this lab, you will create a basic array of numbers, fill in the elements of that array by prompting the

C++ 1. Lab Description For this lab, you will create a basicarray of numbers, fill in the elements of that array by promptingthe user for input from keyboard, then display the elements of thearray back to the user, and also Display the array elements inC++

1. Lab Description For this lab, you will create a basic array of numbers, fill in the elements of that array by prompting the user for input from keyboard, then display the elements of the array back to the user, and also Display the array elements in backwards order . . Calculate the sum of all the array elements Count how many array elements are negative Find the largest array element. Similar as what you've done in previous labs, create a C++ source code called Labl0.cpp, Use the same setup for setting up your class and main method as you did in previous labs and assignments. Be sure to name yor le Lab10.cpp (again, no empty spaces and special characters are allowed, follow the naming conventions) For documentation purpose, at th e beginning of each programming lab/assignment, you must have a comment block with the following information inside: // FILENAME: Lab10.cpp // AUTHOR: your name // ASU ID: your 10 digits ASU ID /1 SPECIFICATION: short description of the program Include any necessary libraries you might use #include using namespace std; int main () For this section of the lab, you will need to declare five (5) local variables: one integer for the size of the array, three doubles for 1) the current array element, 2) sum of array elements and 3) largest of the array element, and one integer for counting the number of array elements which are negative

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