Course Solutions Uncategorized (Solved) : Code Trying Calculate Test Score Students Using Arrays Formating Part Compiler Recognizing Q33250346 . . . .

(Solved) : Code Trying Calculate Test Score Students Using Arrays Formating Part Compiler Recognizing Q33250346 . . . .

 

In this code I am trying to calculate the test score forstudents using arrays in he formating part the compiler is notrecognizing the output though they have been declared pleasehelp

#include<iostream>

#include<iomanip>

#include<string>

using namespace std;

int main ()

{

int highest = 99;

const int size = 10;

int testscore1 [size] = {};

int testscore2 [size] = {};

int testscore3 [size] = {};

string student_name[10];

int Id;

//input student names and testscore values

for (int i=0;i<size; i++)

cout<<“please enter student_name”;

cin>> student_name[8];

cout<<“please enter Id”;

cin>>Id;

cout<< “what is the first score”;

cin>>testscore1 [0];

cout<<“what is second test score”;

cin>>testscore2 [0];

cout<<“what is the third test score”;

cin>>testscore3[0];

}

//Tcalculates the scores of each student

// calculate the average testscore

int setprecision;

i;  

cout<<setw (18)<<“student_name[0]”;

cout<<setw (4)<<“testscore1[size]”;

cout<<setw (4)<<“testscore2[0]”;

cout<<setw (4)<<“testscore3[0]”;

cout<<setw(25<<fixed<<setprecision(2)))

cout<<setw (18″———“<<) )<<setw(4)”——-“<<setw

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 1 Following Code Fragments Contains Number Security Vulnerabilities Fragment Identify Secu Q35138378 . . . .(Solved) : 1 Following Code Fragments Contains Number Security Vulnerabilities Fragment Identify Secu Q35138378 . . . .

<p>Someone please help me explain this</p><p><img alt="1) Each of the following code fragments contains a number of security vulnerabilities For each fragment, identify these secur" src="https://media.cheggcdn.com/media%2Fd11%2Fd1141c95-a9dc-4501-860b-b9b58996de4b%2FphpTEJcQg.png" style="height:1024px;width:747px;" aria-describedby="d3f"/><img alt="by concatenating