🔒 Closed Coding grades using if else statement

Status
Not open for further replies.
Mga paps ask lng pano pag sunod sunorin yung pag code ng enter your grade GPE tapos Description? Na code ko naman siya pag nag enter ako ng ENTER YOUR GRADE tapos input ako ng grade then lalabas yung GPE then input ulit ako tapos lalabas yung DESCRIPTION kaso dun na nag kakamali dahil ang lumalabas yung ung cout ko na invlaid grade imbis na excellent very good or good etc? May pic ako inupload pa help po thanks. Yung second to the last pic is yung icocode then Yung last photo is yun dapat ang output ng entire coding. Bali dapat pag enter mo ng grade lalabas yung GPE then mag eenter ka ng GPE tapos doon na lalabas ang excellent very good good fair..... Bali parang tatlo.
 

Attachments

  • Screenshot_20190801_205334.webp
    Screenshot_20190801_205334.webp
    125 KB · Views: 81
  • Screenshot_20190801_205338.webp
    Screenshot_20190801_205338.webp
    150.8 KB · Views: 75
  • Screenshot_20190801_205342.webp
    Screenshot_20190801_205342.webp
    140.4 KB · Views: 63
  • Screenshot_20190731_221005.webp
    Screenshot_20190731_221005.webp
    24.1 KB · Views: 59
  • IMG_20190801_205405.webp
    IMG_20190801_205405.webp
    52.7 KB · Views: 51
uyy classmate , huli kita ! sumbong kita sa prof natin ahaha :ROFLMAO:
 
bakit po yung CHAR yung kinocompare mo sa INT?
saka di mo na kailangang tumanggap ulit ng value para sa grade, na ooverwrite niya yung previous
 
unang mali -- di ka magiinput ng gpe...
pangalawang mali -- di ka rin magiinput ng description...

ang iinput lang dyan is yung grade... yung 'equivalence' column na nasa table...
 
unang mali -- di ka magiinput ng gpe...
pangalawang mali -- di ka rin magiinput ng description...

ang iinput lang dyan is yung grade... yung 'equivalence' column na nasa table...
Paano makaka gawa ng ouput na pag type mo ng grade lalabas ang gpe at description? Kasi ang alam ko lng is one at a time ung ko alam pag dalawa ang ilalabas na output?
 
^ like this...
Code:
if(grade < 75)
{
cout << "GPE: " << "5.00" << \n << "Description: " << "Failure";
}

dalawa iaoutput nyan... GPE and description...
kelangan mo muna maginput ng grade... kaya may cin>> keyword...
 
iniscreenshot ko to at snend ko sa email ng professor natin CJ :ROFLMAO:
 
Status
Not open for further replies.

About this Thread

  • 14
    Replies
  • 771
    Views
  • 7
    Participants
Last reply from:
Carly_Rose

Trending Topics

Online now

Members online
332
Guests online
577
Total visitors
909

Forum statistics

Threads
2,274,597
Posts
28,957,097
Members
1,234,335
Latest member
Unplugged18
Back
Top