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

>>>>>>!!!!!!Create pseudocode !!!!!!!!<<<<<< PLEASE CONVERT THIS INTO PSEUDOCODE

ID: 3688687 • Letter: #

Question

>>>>>>!!!!!!Create pseudocode !!!!!!!!<<<<<< PLEASE CONVERT THIS INTO PSEUDOCODE SO THAT I CAN BETTER UNSTERSTAND WHAT I AM DOING IN CLASS.

#include <iostream>

using namespace std;
struct student{
string Name;
int IDnum;
int tests[3];
double average;
char Grade;
};


int main() {
student s;
cout<<"Enter the name of student: ";
cin>>s.Name;
cout<<"Id number: ";
cin>>s.IDnum;
s.average=0;
for(int i=0;i<3;i++){
cout<<"test "<<i+1<<"marks";
cin>>s.tests[i];
s.average=s.average+s.tests[i];
}
s.average=s.average/3.0;
if(s.average>=91){
s.Grade='A';
}else if(s.average>=81){
s.Grade='B';
}else if(s.average>=71){
s.Grade='C';
}else if(s.average>=61){
s.Grade='D';
}else{
s.Grade='F';
}
cout<<"Name: "<<s.Name<<endl;
cout<<"Id number: "<<s.IDnum<<endl;
cout<<"Average of tests: "<<s.average<<endl;
cout<<"Grade: "<<s.Grade<<endl;
return 0;
}

Explanation / Answer

module student= struct
string Name;
int IDnum;
int tests[3];
double average;
char Grade;
end module


module main
create student variable s
print"Enter the name of student: "
input name
print "Id number: "
input IDnum;
initialize s->average to 0

for(i running from 0 to 2)
print<<"enter marks"
input test[i]
calculate s->average=s->average+s->tests[i];
increment i

calculate s->average=s->average/3.0;
if(check if s->average>=91)
initialize s->Grade='A'
end if
else if(check if s->average>=81)
initialize s->Grade='B'
end if
else if(check if s->average>=71)
initialize s->Grade='C'
end if
else if(check if s->average>=61)
initialize s->Grade='D'
end if
else
initialize s->Grade='F'
end else

print "Name: ",s->Name
print "Average of tests: ",s->average
print "Grade: "s->Grade
return 0
end main

on a whole, if you want to understand the program, basically you are defining a student of type struct which hlds all studnet variables. In the main, you prompt the user for details of 2 students ,calculate the average ,grade and display them.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote