Saturday, November 6, 2010

CS201 Solution

You are required to write a program which should take input from user in the form of characters A or B. Based upon user’s input you should calculate no. of A grades. You should use while loop or do/while loop for taking input and if / else condition for making decisions.

no error in this solution

#include
#include

using namespace std;

int main(int argc, char *argv[])
{

int a,b;
int student =1;
char grades;
cout<<"please enter Grade ('A' OR 'B' )" <
cin>>grades;

if (grades == 'A')
{
a=a+1;
student = student + 1;
}
else if (grades == 'B')
{
b=b+1;
student = student + 1;
}
else
cout<<"Please Enter 'A' or 'B' grade only!"<
if (a <= 2)
{
cout<<"Your class is Poor" << endl;
}
else if(a <= 7)
{
cout<<"Your class is Good" <

Please do make changes in these assignment otherwise every one who copy this assignment as it is will awarded zero marks 

NOTE: - These Assignments OR Quiz are just for idea, so kindly don't copy it, after viewing it make your own. Thanks We always try our best to upload 100% correct solution BUT it is requested that you kindly review it before submission, please BEST OF LUCK, Thanks to those students those send me Assignments and quizzes. If you have any Assignment and quiz kindly send at jamilbookcenter@yahoo.com

No comments:

Post a Comment