C++ Programming Blog

 
 
 

Image

 #include<iostream.h>
 #include<conio.h>

 main( )
    {
       clrscr( );

       int marks;
       char grade;

       cout<<\"\\n Enter your Marks = \";
       cin>>marks;

       if(marks>=80 && marks<=100)
      grade=\'A\';

       else if(marks>=70 && marks<80)
      grade=\'B\';

       else if(marks>=60 && marks<70)
      grade=\'C\';

       else if(marks>=50 && marks<60)
      grade=\'D\';

       else
      grade=\'F\';

       cout<<\"\\n Your Grade is = \"<<grade<<endl;

       getch( );
       return 0;
    }

    Related Post:
  1. Program to construct Lagrangess Interpolation Formula from the given distinct data points.

  2. Program to computes the n_th term of the fibonacci series using Toplogical Odering and Dynamic Programming Technique

  3. Program to show the projection of 3D objects using Orthographics Parallel Projection w.r.t. xy-plane and along vector v

  4. Program to solve the mystery of Towers of Hanoi using recursion

  5. Identifer recognisition Integer Unsigned real number with optional integer part

  6. Program to illustrate the implementation of arrays as a Linear Queue

  7. Program to draw a 3D Piece-Wise Bezier Curve of nth degree with Zeroth Order Continuity

  8. Program to implement Add and Subtract function on Big Number Class

  9. Program to translate integer numbers given in words into numeric representation

  10. Program for using enum

  11. Program to illustrate the implementation of Rotation Transformation along a Pivot Point

  12. Program that reads a number ,coumputes and displays its factorial ( using for loop )

  13. Program to draw a line using Bresenhams Line Algorithm (BLA) for lines with slopes negative and greater than 1

  14. To parse a string using First and Follow algorithm and LL-1 parser

  15. Program to show the implementation of Cohen-Sutherland MidPoint Subdivision Line Clipping Algorithm

  16. Program of Liang Barsky Algorithm for Line Clipping

  17. Program to draw a spiral rotating clockwise at the center of the screen

  18. Program that take font and background color and text input from a user and display it in right aligned

  19. FUNCTION WITH ALIAS NAME OR REFERENCE VARIABLE IN C++

  20. Program to perform linear sort