Answered step by step
Verified Expert Solution
Question
1 Approved Answer
BR 2 0 / * Nem: Klas: Det: Diskripsh n: * / #inklud we yu kin yuz #inklud we yu go yuz yuz nemsp
BR
Nem:
Klas:
Det:
Diskripshn:
#inklud we yu kin yuz
#inklud we yu go yuz
yuz nemsps std;
void input string& nem, int& id int& numKs dn;
void inputKs string& ksNmba int& kredit, char& gred;
dabl klkulGPAint totlPoints int totlKrdit dn;
char gredToPointschar gred;
void autput string nem, int id int totlKrdit dabl gpa;
const int MAKSKS DN ;
const char GRADES ABCDF;
const dabl PYNT ;
int men
fstrim tFayl;
outFile.open GPARipttxt;
Print di hepsi da
outFile &~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~ ~&~&~&~&~
tKmyuniti Klej
tCIS Studnt dn GPA ript
tSpring Sepsi mepsi sta
&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~&~ ~&~&~&~&~
;
char ripit;
du
string nem;
int id numKs totlKrdit ttalPoint ;
input nem id numKs dn;
outFile Nem: nem tID #: id endl;
fint i ; i numKs; i
string ksNmba;
int kredit dn;
char gred;
inputKsksNmba kredit, gred;
totlKrdit dn kredit dn;
totalPoints gredToPointsgrd kredit dn;
dabl gpa klkyulGPA ttalPoint ttalKrdit;
autput nem id totlKrdit gpa;
cout Yu wan f pross da studntYN: ;
cin ripit;
while toupper ripitY;
tFaylaklos ;
cout Autput we dn rayt to GPARipttxt
;
ritn ;
void inputstring& nem, int& id int& numKs dn
cout ntay studnt nem: ;
getlayn cin nem;
bool validID lay lay wan;
we validID
cout ntay studnt ID : ;
cin id we dn kl;
validID id && id ;
if validID
cout ID nmba we n valid." ;
bool validNumKs dn lay;
while validNmKs dn
cout ntay nmba f di ks dn : ;
cin numKs dn;
validNumKs numKs && numKs MAXKS;
if validNumKs dn
cout Nmba we n valid f di ks dn;
cin.ignore ;
void inputKsstring& ksNmba int& kredit, char& gred
n sh wetin rng wit di kd aw f ivin fiks am bt dn tin ya na in rikwaymnt dn:
Rayt wan C program f klkul wan studnt dn GPA f di smsta Di program f aksept wan studnt in nem, di ID nmba n di nmba f di ks dn we i de tek. Fni ks dn nid di data we de d ya
di ks nmba wan string eg CIS we de na di wl
di ks de kredit wan intajgz
di las gred we dn gt f di ks a character f eg WAN
Di program f rayt to fayl di studnt in nem, ID nmba di l di kredit dn we di studnt de tek, n di studnt dn Gret Point Avrej GPA f di smsta Dn f put wnin msej insay di autput if di GPA sml pas n msej f kle if di GPA na pas dat. Di ript go print wan layn fni studnt Chek d ya aw f fn di gpa f wan studnt
Di tin dn we yu nid:
Input studnt in nem, ID nmba ks nmba nmba f di kredit f di ks n gred yuz di rayt prmpt
Yuz wan lp f ripit f bku studnt dn te dn nta Nn f ansa wan prmpt
Krio knstant dn we de sho di pynt dn fni gred.
A pont
B pont
C pynt dn
D pont
F pont dn
Kalkul yuz di knstant dn we yu dn difayn, n ni data we di yuza nta
Yuz at le slfkntinnt fnshn f du IPO, wan fnshn we sml pas stetmnt dn n kin tek am as slfkntinnt fnshn
Inklud data validshn fl di data we dn dn nta
ID Rnj:
Nmba f di ks dn:
Gret dn na: A B C D F
Yuz toupper function f limited yu karakta kmpiashn
Mek yu program gt di rayt d n klm taytul f di autput.
Output go to wan file as di spesifikeshn dn we de p
Dokumnt yu program, yuz kmnt n pasmak, fksplen
Yuz fnshn spsifikshn fksplen fnshn dn
Krayteria we dn f du:
Prpa spshal kmnt yus f vribul jenral program apinns
Program na knsistns wit programin kdin standad. Input prsestput
Dn de difayn n yuz knstant dn krkt wan, lokal we i psibul
Depsi n de yuz minimm sepsi lfkntepsi n fnshn depsi m epsi n epsi vri wan de du wan sbtask
Lp de kntinyu te dn nta Nn i f bi prmpt lp
Aprpriet pas bay valyupas bay rfrns
Taytul dn de insay n dn fit.
l di data we dn dn nta dn validet.
dn kin print wan msej
l di rikwaymnt we dn dn spsifa
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started