Professional Documents
Culture Documents
#include <iostream>
int main()
int a=0;
int b=0;
int sum=0;
cin >> a;
cin >> b;
sum=a+b;
return 0;
}
Q1, Q2, Q3
#include <iostream>
int main()
int Q1,Q2,Q3,ME,FE=0;
int AVE,FG=0;
FG=AVE * .6 + ME * .2 + FE * .2;
if(FG >= 75)
else
return 0;
}
SUPER PASSED
#include <iostream>
int main()
int Q1,Q2,Q3,ME,FE=0;
int AVE,FG=0;
FG=AVE * .6 + ME * .2 + FE * .2;
if(FG>=100)
{
else
return 0;
}
SWITCH CASE
#include <iostream>
int main ()
int Q1,Q2,Q3,AVE,ME,FE,FG=0;
AVE=(Q1+Q2+Q3)/3;
FG=AVE*.6+ME*.2+FE*.2;
int msg=0;
msg=1;
msg=2;
msg=3;
msg=4;
msg=5;
msg=6;
{
msg=7;
msg=8;
msg=9;
else
msg=10;
switch (msg)
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
case 7:
break;
case 8:
break;
case 9:
cout << FG << " 3.00 Lowest Passing Grade";
break;
case 10:
break;
return 0;
}
MONTH ONLY
#include <iostream>
int main ()
int month=0;
switch (month)
case 1:
break;
case 2:
cout << month << " There are 28 days in February ";
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
case 7:
break;
case 8:
break;
case 9:
cout << month << " There are 30 days in September.";
break;
case 10:
break;
case 11:
break;
case 12:
break;
else
return 0;