Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

BR 2 0 / * : : : : * / # #include std ( int&id int&numCourses ) ( ) ( ) char gradeToPoints

BR20
"/*
:
:
:
:
*/
#
#include
std
( int&id int&numCourses)
()
()
char gradeToPoints ()
()
const int MAX_COURSES =5;
const char GRADES[]={'A','B','C','D','F'};
const double POINTS[]={4.0,3.0,2.0,1.0,0.0};
int main(){
outFile.open(""GPA_Report.txt"")
//
<<""&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~& ~&~&~&~&~
""
<<""\t
""
<<""\tCIS 160 GPA
""
<<""\t 2023
""
<<""\&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~& ~&~&~&~&~
";
{
=0=0
()
outFile <<"": ""<<<<""\tID #: ""<< id << endl;
(int i =1 i <= numCourses i++){
int
()
+=
+=()*
}
=()
()
cout <<""(Y/N): ""
cin >>
}(toupper(repeat)=='Y');
outFile.close();
cout <<""GPA_Report.txt
""
0
}
( int&id int&numCourses){
cout <<"": ""
getline (cin)
bool validID =
(!validID){
cout <<""(0-9999): ""
cin >> id;
validID =(id >=0 && id <=9999)
(!validID){
cout <<"" ID "";
}
}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions