Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cs201 Introduction to programing first assignment fall, 2010 idea solution
#11
Jameel this is Irfan Doing MCS from Lahore
Reply
#12
Dear members, my friend pass away and i was there yesterday. i will make this solution today. INSHALLAH it will uploaded as soon as possible.
Reply
#13
mc100403316 Wrote:dear expert plzz tel me one more thing that did u have completed ur MCS from VU ?
Yes i have completed my mcs.
Reply
#14
Sorry for late solution please compile it.
Code:
#include <iostream.h> main() { //declaration of variables and intialization char grade; int counter = 1; //loop counter int counterA = 0; // counter for number of grade A do { //prompt user to enter grade cout<< "Please Enter Grade of student " << counter<< endl; cin>> grade; if (grade == 'A' || grade == 'a') //check whether A was entered counterA = counterA + 1; //increment A counter by 1 counter = counter + 1; //increment loop counter by 1 else if (grade == 'B' || grade == 'b') //check whether B was entered counter = counter + 1; // increment loop counter by 1 else cout << "Please Enter 'A' or 'B' grade only" << endl; //handle invalid grades } while (counter <= 10);//taking ten grades from user cout << "Total No. of A Grades = " << counterA << endl; // display results if (counterA <= 2) //check no of A for declaraing result cout << "Your class is Poor!" << endl; else if (counterA > 2 && counterA <= 7)//check no of A for declaraing result cout << "Your class is Good!" << endl; else cout << "Your class is Brilliant!" << endl; }
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,319 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,904 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,925 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,161 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,237 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 1,962 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,660 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,793 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,695 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,794 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)