Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

BR 2 0 . / * - * / std ; ( ) ; ( ) ; ( int totalPoints, int totalCredits ) ;

BR20
"./*
-
*/
std ;
();
();
(int totalPoints, int totalCredits);
();
( gpa);
const int MAX_COURSES =5;
const GRADES[]={'A''B''C''D''F'};
const double POINTS[]={403201g000};
int (){
;
(""GPA_Report "");
//
outFile <<""&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~ ~&~&~&~&~
""
<<""\t
"
<<""\tCIS 160 GPA
"
<<""\t2023
""
<<""\&~&~&~&~&~&~&~&~&~&~&~ ~&~&~&~&~
"";
;
{
;
int =0=0;
( num);
outFile <<"":""<<<<""\tID #: ""<< id << endl;
(int i =1; i <= numCourses; i++){
;
int ;
;
();
+=;
totalPoints += gradeToPoints()*;
}
gpa =();
( gpa);
cout <<""?(Y/N): "";
cin >>;
}(toupper ()=='Y');
outFileDon't Solveclose();
cout <<"" GPA_Report
";
0;
}
(){
cout <<"": "";
(,);
bool validID =;
(!validID){
cout <<""(0-9999): "";
>>;
validID =(>=0 && id <=9999);
(!validID){
cout <<""";
}
}
bool validNumCourses =;
(!validNumCourses){
cout <<""(1-5): "";
cin >> numCourses;
validNumCourses =(numCourses >=1 && num<= MAX_COURSES);
(!validNumCourses){
cout <<""";
}
}
cinI ();
}
()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions