Answer to Question #94497 in C++ for emmanuel

Question #94497
a. Use array responses for the 40 element array of student’s responses. Such as
int responses{RESPONSE_SIZE] = { 1, 2, 6, 4, 8, 5, 9, 7, 8, 10, 1, 6, 3, 8, 6, 10, 3, 8, 2, 7, 6, 5, 7, 6, 8, 6, 7, 5, 6, 6, 5, 6, 7, 5, 6, 4, 8, 6, 8, 10}
The output should be similar to the one below:
1
Expert's answer
2019-09-15T13:05:21-0400
#include <iostream>
#define RESPONSE_SIZE 40

using namespace std;

int main() {
	int responses[RESPONSE_SIZE] = { 1, 2, 6, 4, 8, 5, 9, 7, 8, 10, 1, 6, 3, 8, 6, 10, 3, 8, 2, 7, 6, 5, 7, 6, 8, 6, 7, 5, 6, 6, 5, 6, 7, 5, 6, 4, 8, 6, 8, 10 };

	for (int i = 0; i < RESPONSE_SIZE - 1; i++)
		cout << responses[i] << ", ";
	cout << responses[RESPONSE_SIZE - 1] << endl;
	system("pause");
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS