Sunday, 4 March 2018

C program to count the number of vowels, consonants and so on

#include <stdio.h>

int main()
{
    char line[150];
    int i, vowels, consonants, digits, spaces;

    vowels =  consonants = digits = spaces = 0;

    printf("Enter a line of string: ");
    scanf("%[^\n]", line);

    for(i=0; line[i]!='\0'; ++i)
    {
        if(line[i]=='a' || line[i]=='e' || line[i]=='i' ||
           line[i]=='o' || line[i]=='u' || line[i]=='A' ||
           line[i]=='E' || line[i]=='I' || line[i]=='O' ||
           line[i]=='U')
        {
            ++vowels;
        }
        else if((line[i]>='a'&& line[i]<='z') || (line[i]>='A'&& line[i]<='Z'))
        {
            ++consonants;
        }
        else if(line[i]>='0' && line[i]<='9')
        {
            ++digits;
        }
        else if (line[i]==' ')
        {
            ++spaces;
        }
    }

    printf("Vowels: %d",vowels);
    printf("\nConsonants: %d",consonants);
    printf("\nDigits: %d",digits);
    printf("\nWhite spaces: %d", spaces);

    return 0;
}



Output:

Enter a line of string: adfslkj34 34lkj343 34lk
Vowels: 1
Consonants: 11
Digits: 9
White spaces: 2

Finding the Number of 500,100,50,20,10,5,2 and 1 Rupee Notes in a Given Amount.

# include <stdio.h> 
# include <conio.h> 
void main() 
{ 
 int rs, a, b, c, d, e, f, g, h ; 
 clrscr() ; 
 printf("Enter the amount in Rupees : ") ; 
 scanf("%d", &rs) ; 
 while(rs >= 500) 
 { 
  a = rs / 500 ; 
  rs = rs % 500;
  printf("\nThe no. of five hundreds are : %d", a) ; 
  break ; 
 } 
 while(rs >= 100) 
 { 
  b = rs / 100 ; 
  rs = rs % 100;
  printf("\n\nThe no. of hundreds are : %d", b) ; 
  break ; 
 } 
 while(rs >= 50) 
 { 
  c = rs / 50 ;
  rs = rs % 50; 
  printf("\n\nThe no. of fifties are : %d", c) ; 
  break ; 
 } 
 while(rs >= 20) 
 { 
  d = rs / 20 ; 
  rs = rs % 20;
  printf("\n\nThe no. of twenties are : %d", d) ; 
  break ; 
 } 
 while(rs >= 10) 
 { 
  e = rs / 10 ; 
  rs = rs % 10;
  printf("\n\nThe no. of tens are : %d", e) ; 
  break ; 
 } 
 while(rs >= 5) 
 { 
  f = rs / 5 ; 
  rs = rs % 5;
  printf("\n\nThe no. of fives are : %d", f) ; 
  break ; 
 } 
 while(rs >= 2) 
 { 
  g = rs / 2 ; 
  rs = rs % 2;
  printf("\n\nThe no. of Twos are : %d", g) ; 
  break ; 
 } 
 while(rs >= 1) 
 { 
  h = rs / 1 ; 
  rs = rs % 1;
  printf("\n\nThe no. of ones are : %d", h) ; 
  break ; 
 } 
 getch() ; 
}

Output of above program is

Enter the amount in Rupees : 698

The no. of five hundreds are : 1

The no. of hundreds are : 1 

The no. of fifties are : 1              
                                        
The no. of twenties are : 2 
                                        
The no. of fives are : 1 
                                        
The no. of Twos are : 1 

The no. of ones are : 1

Friday, 16 February 2018

Difference between float and double


1.Precision:

Float:
    Single precision (1 bit for sign, 8 bits for exponent, 23 bits for fraction)
Double:
     Double precision (1 bit for sign, 11 bits for exponent, 52 bits for fraction)

2.Size:

Float:
      4 Bytes (32 Bits)
Double:    
       8 Bytes (64 Bits)

3.Range:

Float:
    -3.4E+38 to +3.4E+38
Double:
      -1.7E+308 to +1.7E+308

4.Accuracy:

Float:
    6 decimal digits
Double:
   15 decimal digits  

Difference between Testing and Debugging


Testing:

1. The purpose of testing is to find bugs and errors.
2. Testing is done by tester.
3. It can be automated.
4. It can be done by outsider like client.
5. Most of the testing can be done without design knowledge.

Debugging:

1. The purpose of debugging is to correct those bugs found during testing.
2. Debugging is done by programmer or developer.
3. It can’t be automated.
4. It must be done only by insider i.e. programmer.
5. Debugging can’t be done without proper design knowledge.

Difference between Stack and Heap in Data Structure


Stack

Stack is a simple data structure used for storing data. In stack, the order in which the data arrives is important. A suitable example for stack is, a pile of plates in kitchen. When we want a plate we will take which was last placed in that pile. This is the main property of stack we say Last in first Out (LIFO) or First in Last out (FILO). So stack is a ordered list in which insertion and deletion are done at one end, called top.
Stack Operations:
Push: When an element inserted into the stack, we call it as push operation.
Top: When we want to know what is the top element of the stack we get it by top operation.
Pop: When we remove an element from the top of the stack, we call it as pop operation.
IsEmptyStack(): To check whether stack is empty or not.
IsFullStack(): To check stack is full or not.
And some other properties are,
Stack underflow: When we want to pop an element from the empty stack, that situation is called stack underflow.
Stack overflow: When we want to push an element to a full stack (i.e stack elements equal to stack size), that situation is called stack overflow.
Stack Data Structure

Heap
Heap is a tree with some special property. That special property of the heap is, the value of a node must be >= or <= to its children. And one most important property of heap is all leaves must be at level or at h-1. (where is the height of the tree). This also called heap must be a complete binary tree.
Types of Heaps:
Min Heap: The value of the node must be less than or equal to the values of its children.
Max Heap: The value of the node must be greater than or equal to the values of its children.
Finding minimum element, deleting minimum element, are easy operations in min heap.
Finding maximum element, deleting maximum element, are easy operations in max heap.
Binary Min Heap
Binary Min Heap
Binary Max HeapBinary Max Heap

Difference between Cookies and Cache?



1. Definations:

Cookies:

   Small files downloaded to your computer to track your previous  activity.

Cache:

    Files downloaded to your computer memory to store the current version of the webpage so  next time browser doesn’t need to download all the files again from the internet when we visit that webpage again.

2. Advantages:

Cookies:

    Less memory, no extra burden on server, simple to use and implement.

Cache:

    Faster access, save time, save data. 

3. Size:

Cookies:

   Can support as large as 4kb, 50 cookies per domain (per website), can support at least 3000 cookies in total.

Cache:

  Depend on the limit set by your internet browser.

4. Disadvantages:

Cookies:

   Security risk because of its clean plain text. User can disable cookies, User can delete cookies, Track browsing activities.

Cache:

   Sometimes websites loaded from cache can be different from the website on internet.

5. Expires:

Cookies:

   Expires after sometime.

Cache:

Kept in the client’s machine until they are removed manually by the user.







What is Programming Language?



A programming language is a language that is use to communicate with hardware and software. It a is a set of commands, instructions, and other syntax use to create a software program. Languages that programmers use to write code are called "high-level languages." This code can be compiled into a "low-level language," which is recognized directly by the computer hardware.High-level languages are designed to be easy to read and understand. This allows programmers to write source code in a natural fashion, using logical words and symbols.

Monday, 29 January 2018

Difference between ASP.NET and PHP??

PHP
PHP is a server-side scripting language that has its main implementation in web development. However, it can be used as a general-purpose programming language. PHP was originally created by Rasmus Lerdorf in 1995 and it is currently managed by The PHP Group. PHP originally stood for Personal Home Page, however it was later renamed. It now stands for PHP: Hypertext Preprocessor, a recursive acronym. PHP is free software released under the PHP License, as is incompatible with the GNU General Public License (GPL) due to restrictions on the usage of the term PHP.
PHP is an open source, server-side, HTML embedded scripting language. It can basically perform any task that other CGI programs can, but it is mainly used to create dynamic Web pages. Its main advantage is that it is compatible with many types of databases. Furthermore, PHP can talk across networks using IMAP, SNMP, NNTP, POP3, or HTTP.
PHP includes a command-line interface capability and can be used in standalone graphical applications. PHP commands can be embedded directly into an HTML source document rather than calling an external file to process data. In the HTML document, the PHP script is enclosed within special PHP tags. Due to these tags, the programmer can alternate between HTML and PHP instead of having to rely on heavy amounts of code to output HTML. Also, as PHP is executed on the server, the client cannot view the PHP code.
ASP.Net
ASP stands for Active Server Pages. It is commonly known as Classic ASP or ASP Classic. It is a server-side scripting environment that is developed and released by Microsoft. It was Microsoft's first server-side script engine for dynamically generated web pages. ASP was originally released as part of the Windows NT 4.0 Option Pack. It was meant to be an add-on to Internet Information Services (IIS). Since, then ASP has been superseded by ASP.NET, another product by Microsoft.
ASP is mainly used to create and run dynamic, interactive Web server applications. It also allows one to combine HTML pages, script commands, and COM components to create interactive Web pages and powerful Web-based applications. It also makes it easier to develop and modify the said Web applications.
After its original release, there have been two version releases. The ASP 2.0 introduced six built-in objects to the original, which were Application, ASP Error, Request, Response, Server, and Session. ASP 3.0 introduced some additional enhancements such as Server.Transfer method, Server.Execute method, and an enhanced ASP Error object. Additionally, ASP 3.0 also enabled buffering by default and optimized the engine for better performance. However, as of May 2013 there are no planned upgrades to ASP.
Few More Differences:
Ø  PHP is a free open source platform while .NET is a paid Microsoft platform. PHP is a mix between a programming language and a web framework whereas .NET is a straight application framework.
Ø  Operating system strength of PHP is more than ASP. PHP can be easily use on Linux, Unix and Windows operating system while ASP is mostly used on Windows operating system as it is developed by Microsoft.
Ø  Many auxiliary and assembling features like ftp, email sharing and encryption system is already included in PHP, which are totally neglected in ASP.
Ø  Both ASP and PHP are the technologies of ’90s. PHP regularly released its latest version within short intervals of time and remain up to date with latest development requirements. While ASP had been dysfunctional since 2000.
Ø  PHP performance and code speed is faster and easier than ASP.
Ø  Microsoft Visual Studio 2010 is used as a platform for ASP developers while Eclipse Helios 2010 is used as a platform for PHP developers.
Ø  Sql server 2008 is used as a database server for ASP and MySQL database server is used for PHP.
Ø  Although PHP is simple easier than ASP but functions and controls of ASP are more efficient and reliable than PHP.


Difference between Server-Side and Client-Side Routing

Routing

Routing is the mechanism by which requests are connected to some code. It is essentially the way you navigate through a website or web-application. By clicking on a link, the URL changes which provides the user with some new data or a new webpage.




Server-side

When browsing, the adjustment of a URL can make a lot of things happen. This will happen regularly by clicking on a link, which in turn will request a new page from the server. This is what we call a server-side route. A whole new document is served to the user.
A server-side request causes the whole page to refresh. This is because a new GET request is sent to the server which responds with a new document, completely discarding the old page altogether.

Pros

  • A server-side route will only request the data that’s needed. No more, no less.
  • Because server-side routing has been the standard for a long time, search engines are optimised for webpages that come from the server.

Cons

  • Every request results in a full-page refresh. That means that unnecessary data is being requested. A header and a footer of a webpage often stays the same. This isn’t something you would want to request from the server again.
  • It can take a while for the page to be rendered. However, this is only the case when the document to be rendered is very large or when you have slow internet speed.

Client-side

A client-side route happens when the route is handled internally by the JavaScript that is loaded on the page. When a user clicks on a link, the URL changes but the request to the server is prevented. The adjustment to the URL will result in a changed state of the application. The changed state will ultimately result in a different view of the webpage. This could be the rendering of a new component, or even a request to a server for some data that the application will turn into some HTML elements.
It is important to note that the whole page won’t refresh when using client-side routing. There are just some elements inside the application that will change.

Pros

  • Because less data is processed, routing between views is generally faster.
  • Smooth transitions and animations between views are easier to implement.

Cons

  • The whole website or web-application needs to be loaded on the first request. That’s why the initial loading time usually takes longer.
  • Because the whole website or web-application is loaded initially, there is a possibility that there is data downloaded for views you won’t even come across.
  • It requires more setup work or even a library. Because server-side is the standard, extra code must be written to make client-side routing possible.
  • Search engine crawling is less optimised. Google is making good progress on crawling single-paged-apps, but it isn’t nearly as efficient as server-side routed websites.

UOG CGPA Calculator


Designed for UOG Rawalpindi campus.

Current CGPA:
Total credit hours :

No.   Grade Point * Credit Hours = Grade Points
1    * =
2    * =
3    * =
4    * =
5    * =
6    * =
7    * =
8    * =
9    * =
10   * =
Sum
GPA
CGPA

Friday, 22 December 2017

C++ Program For Setting Time schedule of teachers


#include<iostream>

using namespace std;



//void AnikaKanwal();

int main()

{

     //char AnikaKanwal=0;

    //char SanaFaisal=0;

    //char AsmaNaveed=0;

    //char RababShafiq=0;

    //char AtifJahangir=0;

    //char AmnaAslam=0;

    //char SaraZafar=0;

    //char NabeelaJabeen=0;

    //char FarzanaKhan=0;

     char name;

    

    

    

    

     cout<<"\n\n                           Assalam o Alaikum "<<endl;

     cout<<"                                Welcome to PGCW "<<endl;

     cout<<"                         Time Table for teachers of PGCW "<<endl;

    

    



     cout<<"\n\n Enter name of teacher "<<endl;

     cin>>name;

     //if(name == AnikaKanwal)

     //{

           //void AnikaKanwal();

     //}

     //else

     //{

           //if(name == SanaFaisal)

           //{

              //void SanaFaisal();

           //}

         //else

     //{

               //if(name == AsmaNaveed)

               //{

                  //void AsmaNaveed();

               //}

            //else

               //{

                   //if(name == RubabShafiq)

                   //{

                      //void RubabShafiq();

                   //}

                   //else

                   //{

                      //if(name == AtifJahangir)

                      //{

                          //void AtifJahngir();

                      //}

                      //else

                      //{

                         //if(name == AmnaAslam)

                         //{

                              //void AmnaAslam();

                         //}

                         //else

                         //{

                           //if(name == SaraZafar)

                           //{

                               //void SaraZafar();

                           //}

                           //else

                           //{

                               //if(name == NabeeaJabeen)

                               //{

                                   //void NabeelaJabeen();

                               //}

                               //else

                               //{

                                   //if(name == FarzanaKhan)

                                   //{

                                       //void FarzanaKhan();

                                   //}

                               //}

                                //}

                           //}

                     //}

               //}

           //}

     //} 

//}



//void AnikaKanwal()

     //{

      cout<<"\n \n              Anika Kanwal teaches English              "<<endl;

      cout<<"                  Her timetable is as folows               "<<endl;

      

      cout<<"\n                           Sunday                        "<<endl;

      cout<<"                  No class for today. Enjoy!!!             "<<endl;



      cout<<"\n                           Monday                        "<<endl;

      cout<<"            First class with pre-engineering group         "<<endl;

      cout<<"                           Room No. 1                      "<<endl;

      

      cout<<"                   Second class with ICS Group             "<<endl;

      cout<<"                           Room No.19                      "<<endl;

    





      cout<<" \n                          Tuesday                       "<<endl;

      cout<<"                First class with pre-medical Group         "<<endl;

      cout<<"                             Room No. 1                    "<<endl;

    

      cout<<"                 Second class with I.COM Group             "<<endl;

      cout<<"                           Room No.23                      "<<endl;

      

      



      cout<<"\n                           Wednesday                     "<<endl;

      cout<<"                    Third class with ICS group             "<<endl;

      cout<<"                           Room No. 19                     "<<endl;

      

      

      cout<<"\n                           Thursday                      "<<endl;

      cout<<"                    First class in I.COM Group             "<<endl;

      

      

      cout<<"\n                           Friday                        "<<endl;

      cout<<"                No class for today. Rest at home!!!!       "<<endl;

      

      cout<<"\n                           Saturday                      "<<endl;

      cout<<"             No class for today .Relax at home!!!!      "<<endl;

      

      //}

      //void SanaFaisal()

      //{

         cout<<" \n\n                   Sana Faisal teaches urdu             "<<endl;

         cout<<"                   Her timetable is as follows           "<<endl;

        

         cout<<"\n                           Sunday                      "<<endl;

         cout<<"                    No class for today.Enjoy!!           "<<endl;

        

         cout<<"\n                           Monday                      "<<endl;

         cout<<"            Second class with pre-engineering Group      "<<endl;

         cout<<"                           Room No. 1                    "<<endl;

      

         cout<<"            Fourth class with pre-medical Group          "<<endl;

         cout<<"                           Roon No.12                    "<<endl;

       

        

         cout<<"\n                           Tuesday                     "<<endl;

         cout<<"                First class with pre-medical Group       "<<endl;

         cout<<"                          Room No. 12                    "<<endl;

        

         cout<<"                Third class with I.COM Group             "<<endl;

         cout<<"                          Room No. 23                    "<<endl;

       

        

         cout<<"                             Wednesday                   "<<endl;

         cout<<"                   Fourth class with ICS Group           "<<endl;

         cout<<"                            Room No.19                   "<<endl;

        

        

         cout<<"\n                           Thursday                    "<<endl;

         cout<<"                    Second class with ICS Group          "<<endl;

         cout<<"                           Room No. 19                   "<<endl;

        

        

         cout<<"\n                           Friday                      "<<endl;

         cout<<"                 No class for for today. Enjoy!!         "<<endl;

        

         cout<<"\n                           Saturday                    "<<endl;

         cout<<"                No class for today.Relax at home!!       "<<endl;

        

     //} 

     //void AsmaNaveed()

     //{

        cout<<"\n\n                       Asma Naveed teaches Islamiat      "<<endl;

        cout<<"                       Her timetable is as follows       "<<endl;

       

        cout<<"\n                                Sunday                 "<<endl;

        cout<<"                         No class for today.Enjoy!!!     "<<endl;

       

        cout<<"\n                                Monday                 "<<endl;

        cout<<"                        First class with I.COM Group     "<<endl;

        cout<<"                               Room No. 23               "<<endl;

       

       

        cout<<"\n                                Tuesday                 "<<endl;

        cout<<"                            No class for today            "<<endl;

       

        cout<<"\n                                Wednesday               "<<endl;

        cout<<"                         Second class with ICS Group      "<<endl;

        cout<<"                                 Room No.19               "<<endl;

      

       

        cout<<"\n                                Thursday                "<<endl;

        cout<<"                             No class for today           "<<endl;

       

        cout<<"\n                                Friday                         "<<endl;

        cout<<"                       Frist class with pre-engineering Group    "<<endl;

        cout<<"                                   Room No.1                     "<<endl;

      

       

        cout<<"\n                                Saturday                       "<<endl;

        cout<<"                      Third class with pre-medical Group         "<<endl;

        cout<<"                                 Room No.12                      "<<endl;

       

        //}      

        //void RababShafiq()

        //{

           cout<<"\n\n                    Rabab Shafiq teaches Pakistan Studies            "<<endl;

           cout<<"                     Her timetable of classes is as follows          "<<endl;

          

           cout<<"\n                                Sunday                             "<<endl;

           cout<<"                     No class for today . Relax at home!!!!!         "<<endl;

          

           cout<<"\n                                 Monday                            "<<endl;

           cout<<"                     Third class with pre-medical Group              "<<endl;

           cout<<"                                  Room No. 12                        "<<endl;

         

          

           cout<<"\n                                 Tuesday                           "<<endl;

           cout<<"                      No class for today.Relax at home !!!!          "<<endl;

          

           cout<<"\n                                 Wednesday                         "<<endl;

           cout<<"                        Fourth class with I.COM Group                "<<endl;

           cout<<"                                  Room NO. 23                        "<<endl;

         

          

           cout<<"\n                                 Thursday                 "<<endl;

           cout<<"                            No class for today.Enjoy!!!!!   "<<endl;

                      

           cout<<"\n                                  Friday                  "<<endl;

           cout<<"                           Third class with ICS Group       "<<endl;

           cout<<"                                   Room No. 19              "<<endl;

          

          

           cout<<" \n                                   Saturday                "<<endl;

           cout<<"                     Second class with pre-engineering Group"<<endl;

           cout<<"                                    Room No.1               "<<endl;

          

           //}

          //void AtifJahangir()

            //{

               cout<<"  \n\n                Atif Jahangir teaches Mathematics        "<<endl;

               cout<<"                  His timetable of classes is as follows  "<<endl;

              

               cout<<"\n                              Sunday                     "<<endl;

               cout<<"                     No class for today. Enjoy!!!!!        "<<endl;

              

               cout<<"\n                             Monday                     "<<endl;

                cout<<"                 Third class with pre-engineering Group   "<<endl;

                cout<<"                             Room No. 1                   "<<endl;

          

               

                cout<<"\n                              Tuesday                   "<<endl;

                cout<<"                 Second class in pre-engineering group    "<<endl;

                cout<<"                              Room No. 1                  "<<endl;

          

                cout<<"                     Third class with ICS Group           "<<endl;            

                cout<<"                              Room No.19                  "<<endl;

            

              

               cout<<"\n                              Wednesday                 "<<endl;

               cout<<"                    Fifth class with pre-engineering Group"<<endl;

               cout<<"                                Room No. 1                "<<endl;

            

              

               cout<<"\n                               Thursday                 "<<endl;

               cout<<"                    Fourth class with pre-engineering group"<<endl;

               cout<<"                                Room No.1                  "<<endl;

             

               cout<<"                     Third class with I.COM Group          "<<endl;

               cout<<"                                 Room No. 23               "<<endl;

              

              

               cout<<"\n                                Friday                   "<<endl;

               cout<<"                      First class with pre-engineering Group"<<endl;

               cout<<"                                Room No. 1                  "<<endl;

             

              

               cout<<"                                  Saturday                  "<<endl;

               cout<<"                    First class with pre-engineering Group  "<<endl;

               cout<<"                                Room No. 1                  "<<endl;

             

             //}

           //void AmnaAslam()

           //{

              cout<<"\n\n                            Amna Aslam teaches Biology        "<<endl;

              cout<<"                       Her timetable of casses is as follows  "<<endl;

             

              cout<<"                                 Sunday                       "<<endl;

              cout<<"                       No class for today. Rest at home!!!!   "<<endl;

             

              cout<<"\n                               Monday                    "<<endl;

              cout<<"                 Third class with pre-medical Group        "<<endl;

                cout<<"                             Room No. 1                   "<<endl;

               

               

                cout<<"\n                              Tuesday                   "<<endl;

                cout<<"                 Second class in pre-medical group        "<<endl;

                cout<<"                              Room No. 1                  "<<endl;

               

                        

               cout<<"\n                              Wednesday                 "<<endl;

               cout<<"                    Fifth class with pre-medical Group    "<<endl;

               cout<<"                                Room No. 1                "<<endl;

              

              

               cout<<"\n                               Thursday                 "<<endl;

               cout<<"                    Fourth class with pre-medical group    "<<endl;

               cout<<"                                Room No.1                  "<<endl;

             

                  

               cout<<"\n                                Friday                    "<<endl;

               cout<<"                      First class with pre-medical Group    "<<endl;

               cout<<"                                Room No. 1                  "<<endl;

            

              

               cout<<"\n                              Saturday                    "<<endl;

               cout<<"                    First class with pre-medical Group      "<<endl;

               cout<<"                                Room No. 1                  "<<endl;

             

             //}

             //void SaraZafar()

             //{

                cout<<" \n\n                     Sara Zafar teaches Accounting        "<<endl;

                cout<<"                       Her timetable of class is as follows"<<endl;

               

                cout<<"\n                             Sunday                       "<<endl;

                cout<<"                         No class for today                 "<<endl;

                 

                 cout<<"\n                             Monday                       "<<endl;

                 cout<<"                 Frist class with I.COM Group                 "<<endl;

                 cout<<"                            Room No. 23                     "<<endl;

               

                 cout<<"\n                              Tuesday                     "<<endl;

                 cout<<"                 Second class with I.COM Group              "<<endl;

                 cout<<"                           Room No.23                       "<<endl;

                 

                 

                 

                 cout<<"\n                                Wednesday                 "<<endl;

                 cout<<"                    Fourth class with I.COM Group           "<<endl;

                 cout<<"                              Room No. 23                   "<<endl;

                 

                 

                 cout<<"\n                                Thursday                  "<<endl;

                 cout<<"                            Third class with I.COM Group    "<<endl;

                 cout<<"                                    Room No.23              "<<endl;

                 

                 

                 cout<<"\n                                 Friday                   "<<endl;

                 cout<<"                        First class with I.COM Group        "<<endl;

                 cout<<"                                 Room No. 23                "<<endl;

                 

                 

                 cout<<"\n                                 Saturday                 "<<endl;

                 cout<<"                        First class with I.COM Group        "<<endl;

                 cout<<"                                 Room No. 23                "<<endl;

               

                 //}

                 // void NabeelaJabeen()

                 //{

                     cout<<" \n\n                          Nabila teaches Physics           "<<endl;

                      cout<<"                         Her timetable is as follow         "<<endl;

                      

                     cout<<"\n                                Sunday                   "<<endl;

                 cout<<"                             No class for today            "<<endl;



                cout<<"\n                                Monday                   "<<endl;

                  cout<<"                      First class with pre-engineering     "<<endl;

                 cout<<"                                Room No 3                  "<<endl;

                 cout<<"                         Timing 08:00 to 09:00             "<<endl;

                 cout<<"                     Second class with pre-medical Class   "<<endl;

                cout<<"                                Room no 4                  "<<endl;

                 

                 cout<<"                          Fourth class with ICS            "<<endl;

                 cout<<"                                Room No 3                  "<<endl;

                



    

                cout<<"\n                                 Tuesday                "<<endl;

                  cout<<"                       First class with pre-engineering   "<<endl;

                cout<<"                                 Room No.2                "<<endl;

                

                  cout<<"                           Second class with ICS          "<<endl;

                  cout<<"                                 Room No.3                "<<endl;

                 

                  cout<<"                     Third class with pre-medical Class   "<<endl;

                  cout<<"                                 Room no. 5               "<<endl;

                 



               cout<<"\n                                 Wednesday               "<<endl;

                cout<<"                             First class with ICS          "<<endl;

                cout<<"                                  Room No. 1               "<<endl;

               

                cout<<"                    Second class with pre-engineering Class"<<endl;

                 cout<<"                                  Room no. 6               "<<endl;

               

                cout<<"                        Fourth class with Pre -medical     "<<endl;

                 cout<<"                                  Room No. 3               "<<endl;

                    



                 cout<<"\n                                 Thursday                "<<endl;

                cout<<"                         First class with pre-medical      "<<endl;

                cout<<"                                  Room No. 9               "<<endl;

           

                cout<<"                          Second class with ICS Class      "<<endl;

                cout<<"                                  Room no. 2               "<<endl;

            

                cout<<"                       Third class with pre-engineering    "<<endl;

                cout<<"                                  Room No. 3               "<<endl;

            



               cout<<"\n                                 Friday                  "<<endl;

                cout<<"                        Seconds class with pre-medical     "<<endl;

                 cout<<"                                  Room No. 1               "<<endl;

                

                 cout<<"                      Third class with pre-medical Class   "<<endl;

                cout<<"                                  Room no. 6               "<<endl;

             

                cout<<"                       Fourth class with Pre-engineering   "<<endl;

               cout<<"                                  Room No. 3               "<<endl;

           

               

                cout<<"\n                                 Saturday                "<<endl;

                cout<<"                     No calss for today.Rest at home!!!!!  "<<endl;

                //}

                //void farzanaKhan()

                //{

                    cout<<"  \n\n                   Farzana Khan teaches Chemistry      "<<endl;

                    cout<<"                  Her timetable of classes is as follows "<<endl;

               

                    cout<<"                               Sunday                    "<<endl;

                     cout<<"                           No class for today            "<<endl;



                     cout<<"                               Monday                    "<<endl;

                     cout<<"                     First class with pre-medical        "<<endl;

                     cout<<"                             Room No. 3                  "<<endl;

                 

                     cout<<"                Second class with pre-engineering Class  "<<endl;

                     cout<<"                             Room no. 4                  "<<endl;

                

    

                     cout<<"                               Tuesday                   "<<endl;

                     cout<<"                    First class with pre-medical         "<<endl;

                     cout<<"                             Room No. 2                  "<<endl;

                

                     cout<<"               Third class with pre-engineering Class    "<<endl;

                     cout<<"                             Room no. 5                  "<<endl;

                    

    



                     cout<<"                                Wednesday                "<<endl;

                     cout<<"                     Second class with pre-medical       "<<endl;

                     cout<<"                               Room No. 1                "<<endl;

                    

                     cout<<"                Fourth class with pre-engineering Class  "<<endl;

                     cout<<"                               Room no. 6                "<<endl;

                    

    



                     cout<<"                                Thursday                 "<<endl;

                     cout<<"                    First class with pre-engeering       "<<endl;

                     cout<<"                               Room No. 9                "<<endl;

                    

                     cout<<"                  Third class with pre-medical Class     "<<endl;

                     cout<<"                               Room no. 2                "<<endl;

                    

    

                     cout<<"                                Friday                   "<<endl;

                     cout<<"                  Seconds class with pre-engeenring      "<<endl;

                     cout<<"                             Room No. 1                  "<<endl;

                

                     cout<<"                 Fourth class with pre-medical Class     "<<endl;

                     cout<<"                             Room no. 6                  "<<endl;

                    

                    

                     cout<<"                                 Saturday                "<<endl;

                     cout<<"                   Second class with pre-engineering     "<<endl;

                     cout<<"                              Roon No.1                  "<<endl;

                 

                     //}

               //}

            //}     

       //}         

//}

system("pause");

return 0;


}

Tech UOG