Monday, 23 January 2017

11C-UT-3 Blue Print-2017

I- Two Dimensional Array  - 10 marks
  * Manipulation Array elements with application problems

II. User defined function.-15
     * 4 styles of functions
     * call by value and reference
     * function writing for the description
     * Output finding
      * concept
III structure-15
      * Programme writing
       * output finding
       *  concepts      

 

Wednesday, 4 January 2017

11C-prg-17 Write a algorith and program whether a given character is an alphabet, digit or any other character.

Write a algorith and program whether a given character is an alphabet, digit or any other
character.

Algorithm:

Input:
1. ch  //character

Output:
1. al/dig/spec

Method:
1. start
2. Read ch
3. Print ch
4. //logic

  if(isalpha(ch))
   Print " The character is an alphabet "
  else
  if(isdigit(ch))
   print " The character is an digit"
  else
   Print " It is a special character"
5.Stop
 

Wednesday, 7 December 2016

11C Prog16. Write a algorithm and C++ program to calculate commission for the salesman. The commission is calculated according to the following rates:

16.   Write a algorithm and C++ program to calculate commission for the salesman.
The commission is calculated according to the following rates:
SALESMAN COMMISSION RATE COMMISSION
30001 onwards 15%
22001-30000 10%
12001-22000 7%
5001-12000 3%
0-5000 0 %
The program accepts the sales made by the salesman and display the
calculated commission.

Algorithm

Input
1. sm //sales amount
output
1. com  //commission
Method:
1.start
2.Read sm
3.Print sm
4. //logic for commission calculation

  if(sm > 30000)
    cm=(15*sm)/100;
  else
  if ( (sm >= 22001) && (sm <=30000) )
    cm=(10*sm)/100;
  else
  if ( (sm >= 12001) && (sm <=22000) )
    cm=(7*sm)/100;
  else
  if ( (sm >= 5001) && (sm <=12000) )
    cm=(3*sm)/100;
  else
    cm=0;
 
 5. Print cm
 6. stop

Monday, 7 November 2016

11C-Prog-15. Write a Algorithm and Program to calculate factorial of an integer.

15.   Write a Algorithm and Program to calculate factorial of an integer.

Algorithm:
Input
1) n
Output:
1)fact

Method
1.Start
2.Read n
3.print n
4. //logic

  fact=1;
 for(i=1;i<=n;i++)
 begin
   fact=fact*i;
 end;
5.print "factorial=",fact;
6.stop

12-D-Prog-17.Write a Program to implement Insertion Sort using a 1-D array.

17.Write a Program to implement Insertion Sort using a 1-D array.

 #include<iostream.h>
 void InsSort(int[ ], int);

int main()
 {
   int AR[50],item, n, index;
   cout<<"How many elements do u want to create array with?(max..50)..";
   cin>>n;
   cout<<"\n Enter Array elements ..\n";
   for(int i=0;i<n;i++)
    cin>>a[i];
 
   InsSort(AR, n);
   cout<<"\n \n The sorted array is as shown below \n";
   for(i=0;i<n;i++)
    cout<<AR[i]<<" ";
   cout<<endl;
   return 0;
 }

 void InsSort(int AR[ ], int size)
 {
   int t,j;
   AR[0]=INT_MIN;
   for(int i=1;i<=size;i++)
   {
     t=AR[i];
     j=i-1;
    while(t<AR[j])
    {
      AR[j+1]=t;
      j--;
     }
    AR[j+1]=t;
    cout<<"Array after pass-"<<i<<"-is";
      for(int k =1;k<=size;k++)
       cout<<AR[k]<<" ";
      cout<<endl;
   }
 }
       
 
   

12-D-16.Write a Program to implement Bubble sort using a 1-D array.

16.Write a Program to implement Bubble sort using a 1-D array.

 #include<iostream.h>
 void Bubblesort(int[ ], int);

int main()
 {
   int AR[50],item, n, index;
   cout<<"How many elements do u want to create array with?(max..50)..";
   cin>>n;
   cout<<"\n Enter Array elements ..\n";
   for(int i=0;i<n;i++)
    cin>>a[i];
 
   Bubllesort(AR, n);
   cout<<"\n \n The sorted array is as shown below \n";
   for(i=0;i<n;i++)
    cout<<AR[i]<<" ";
   cout<<endl;

 }
 void Bubblesort(int AR[], int size)
 {
   int t,ct=0;
   for(int i=0; i<size; i++)
   {
     for(int j=0; j<(size-1); j++)
     {
       if(AR[j]>AR[j+1])
        {
          t=AR[j];
          AR[j]=AR[j+1];
          AR[j+1]=t;
         }
      }
      cout<<"Array after iteration-"<<++ct<<"-is:";
      for(int k=0;k<size;k++)
       cout<<AR[k]<<" ";
      cout<<endl;
    }
 }

Sunday, 6 November 2016

11-C-H.Y CS Blue print 70 marks Year:2016

H.Y CS Blue print 70 marks Year:2016

1.   Computer Fundamental-      5 marks
2.   Programming methodology-  5 marks
3.   Getting started with C++ - 10 marks
4.   Data Handling  - 10 marks
5.   Operator & Expression –  7 marks
6.   Flow of control - 15 marks
7.   One Dimensional  Array – 10 marks
8.   Inbuilt Function -  8 marks

Practical Examination:
 
Thursday-17-11-2016: Batch-02 Practical Exam-30
Tuesday-15-11-2016: Batch-03
Saturday-19-11-2016: Batch-01


1 to 15 programs in a record:

*  2 Programs (Algorithm and Program) - 20 marks
*  Record – 5 marks
 * Viva - 5 marks