BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan Right Header

HOME BZU Mail Box Online Games Radio and TV Cricket All Albums
Go Back   BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan > Institute of Computing > Bachelor of Science in Information Technology > BsIT 2nd Semester > BSIT07-11 2nd > Computer programming for IT

Computer programming for IT Sir Aziz Akhtar


Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1  
Old 04-04-2008, 01:48 AM
.BZU.'s Avatar


 
Join Date: Sep 2007
Location: near Govt College of Science Multan Pakistan
Posts: 9,693
Contact Number: Removed
Program / Discipline: BSIT
Class Roll Number: 07-15
.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute.BZU. has a reputation beyond repute
Default

Source code
C++ Assignment


Code:
    #include <iostream>
  using namespace std;
  int main ()
  {
              /* I am designing this software for those students who want to calculate
              Their total marks, percentage and their Grades, with the hope that this 
              program will help the all students*/
              cout <<endl<< " * Welcome to the Grade Checker *";
              // float type identifier are defined for the cin command and calculation
                 float math,comm,web,pak,IT,sociology,total,percentage;
              /* character type identifier are defined we use them for showing the
              Grades of the students in the exams */
              char gradeA,gradeB,gradeC,gradeD;
              /* Here cout command requests the users to type their marks in
              different subjects and cin command fetch the given values and assign 
              to their corresponding identifiers*/
              cout <<endl<< "Kindly Type your Marks in Mathematics = ";
              cin  >> math;
              cout <<endl<< "Kindly Type your Marks in Communication Skillz = ";
              cin  >> comm;
              cout <<endl<< "Kindly Type your Marks in Web Development = ";
              cin  >> web;
              cout <<endl<< "Kindly Type your Marks in Pak Islamic Studies = ";
              cin  >> pak;
              cout <<endl<< "Kindly Type your Marks in Intro to IT = ";
              cin  >> IT;
              cout <<endl << "Kindly Type your Marks in Sociology = ";
              cin  >> sociology;
              // addition of all marks 
              total= math+comm+web+pak+IT+sociology;
              cout << endl <<"You have got "<< total <<"/600   Marks "<<endl;
              // Percentage Calculation
              percentage= total/600*100;
              cout << "you have got  "<< percentage << " Percant Marks "<< endl;
              // Values given to all char type identifier; equal to the grade of students
              gradeA = 'A';
              gradeB = 'B';
              gradeC = 'C';
              gradeD = 'D';
              /*  if else statements are used to check the grades of the students these 
   grades are assigned to the students on the basis of their percentage */
              if (percentage <60 )
              {
                          cout << "  And your Grade is  "<< gradeD << endl;
                          cout << "Please Improve yourself "<< endl;          
                          cout << "You may consider as a fail studnet "<< endl;
              }
              else
                          if ((percentage>=60)&&(percentage<70))
                          {          cout << "  And your Grade is  "<< gradeC << endl;
                                      cout << " Nice performance   "<< endl;
                          }
                          else
                          if ((percentage>=70)&&(percentage<85))
                          {          cout << "  And your Grade is  "<< gradeB << endl;
                                      cout << " You are the brilliant Student  "<< endl;
                          }
                          else
                                      {          cout << "  And your Grade is  "<< gradeA << endl;
                                                  cout << "  Excellent Performance And you are the most wanted "<< endl;
  

                                      }
  return 0;
  }
Screen Shot
Name:  assignment executed.JPG
Views: 416
Size:  27.6 KB

Download the attachment for yourself...
Attached Files
File Type: doc c ++ assignment.doc (43.0 KB, 259 views)
Reply With Quote
Reply

Tags
assignment, sir, submitted


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memo case: reply to SC will be submitted in time: PM usman_latif_ch Daily News And halat-e-hazra 0 11-12-2011 10:21 AM
Assignment Entrepreneurship .BZU. Entrepreneurship 0 14-10-2010 08:27 AM
Assignment # 3 thecool PHP Assignments 0 01-07-2010 11:15 AM
Report on Voice Over IP (VOIP), Submitted to Sir Taimoor Hasan .BZU. Broadband Networks 1 13-04-2010 12:32 AM
Assignment#4 Model for webdevelopment assignment .BZU. Web Development 2 18-11-2007 06:49 PM

Best view in Firefox
Almuslimeen.info | BZU Multan | Dedicated server hosting
Note: All trademarks and copyrights held by respective owners. We will take action against any copyright violation if it is proved to us.

All times are GMT +5. The time now is 03:31 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.