Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

TEP 1: Type (do not copy and paste) Program 1 into a program and compile. Run th

ID: 3711234 • Letter: T

Question

TEP 1: Type (do not copy and paste) Program 1 into a program and compile. Run the Question 1 Descrbe the results of above program run in step 17 Program 1 Binc lude ciostrean Question 2 What happens if you type 7 for the first prompt and then 4 for the second prompt? using nanespace std: int main(void) int salsi10): size.t count; aizs.t which Question 3 What happens if you type 7 for the first prompt and then 8 for the second prompt? sout > count; Question 4 What happens if you type 20 for the first prompt and then 50000 for the second prompt? for (size.ti-e;&

Explanation / Answer

If you post more than 1 question, as per chegg guidelines I have to solve only first question.

Ques 1. In this program, we enter the size if array and then the elements of array and at last we ask th eindex of the element we want o to print and then print that element.

Ques 2. First prompt is for the number of time the loop will run and scan the number and add it to. So, the loop runs 7 time and then the first element of array is set to 4.

Ques 3. First prompt is for the number of time the loop will run and scan the number and add it to array. So, the loop runs 7 time is created and then the first element of array is set to 8.

Ques 4.  First prompt is for the number of time the loop will run and scan the number and add it to array. So, the loop runs 20 time is created and then the first element of array is set to 50000.

Ques 5. First prompt is for the number of time the loop will run and scan the number and add it to array. So, the loop runs 20 time is created and then the first element of array is set to -1.

Ques 6. First prompt is for the number of time the loop will run and scan the number and add it to array. So, the loop runs 10 time is created and then the first element of array is set to the ascii balue of 'b' which is 98.So, the first element of array is set to 98.