Skip to main content

Recent Posts

Web Technology

C Programming


C Programming Language is High level and general purpose  programming language that was originally  developed by Dennis M. Ritchie at Bell Labs in 1972.




Features Of C
-> It is robust language which is rich set of billion of functions and operators that can be 
      used to work any complex program.
-> C compiler combines the capabilities of an assembly language with features of high
      level language.
-> Program written in C are efficient , reliable and fast.
-> C is highly portable because program once written can be run on another machine 
     with little or no modification.
-> It allows to create user define functions and add each to C library .


Application Of C

-> To design system software like OS , network devices and compiler.
-> To develop application software like database , spreadsheet etc.
\-> Use to develop graphical related application like computer and mobile games.


 C Programs Collection:-

   simple c program#
   >   C program to print Hello World

   >  C program to find area and perimeter of rectangle

    >  C program to find area and circumference of circle

   >    The distance between two cities (in km) is input through the keyboard.Write C program
       to convert the distance in meters , feet and centimeter and display it.

  >    If the marks obtained by a student in five different subjects are input through the
       keyboard. Write a program to find the total marks obtained and percentage of that 
       student and display it.

   >    C program to swap the value of two variable using third variable.

   >    C program to swap the value of two number without using third variable.

   >    C program to calculate sum of digits of 3-digits integer and display it.

 >      C program to input a 3-digit integer number from user then reverse it.

   >    C program to asks three coefficient of a quadratic equation and calculate the root.

    >   C program to check whether the given 3-digit integer no. is palindrome or not.

    >   C program to check whether the given 3-digit number is armstrong or not.

    >   C program to check whether the user is eligible to give vote or not.

     >  C program to find the greatest among two number using  conditional operator.

     >  C program to print && .

    >   C program to print  %.

    >   C program to print blank line.

     >  C program to print & .

     >   C program to print \
       

 Control structure 
    >  C program to check whether a person is married or not.

    >   C program to find maximum among three number using 
         a) nested if else
         b)else if ladder

     >  C program to find maximum among 4 number using else if ladder.

     >  C program to input the marks of a student in 5 subjects and decide the grade as given
         Percentage                                                     Grade
         80 to 100                                                      Distinction
         60 to 79                                                          First division
          50 to 59                                                        second division
           40 to 49                                                        Third division
          0 to  39                                                             Fail
   

      > An electric power distribution company charges its domestic connsumers as follows:-
       Consumption Unit                                             Rate of Charge
          0 - 200                                                               Rs 0.50 per unit
           201 - 400                                                          Rs 100 plus Rs 0.65 excess
                                                                                                of 200
          401 - 600                                                          Rs 230 plus Rs 0.80 per unit excess
                                                                                           of 400
          601 and above                                                 Rs 390 plus Rs. 100 per unit excess
                                                                                             of 600
        write c program to calculate total charges.



  >   C program to input a character and determine whether it is uppercase, lowercase or 
       special spacial symbols.
   

 >   Company insures drivers in following cases 
  - if driver is married
  - if driver is unmarried male and above 30 yrs of age.
  - if driver is unmarried female and above 25 years of age
   




Comments

Popular posts from this blog

Pokhara University BE-IT & Computer Engineering Notes

Features:- Based on Pokhara University Syllabus  Simple and easy to understand  Exam oriented  Short and effective  Handwritten Notes plus computerized  Extra study materials  You can read online  You can download freely   In pdf format SEMESTER WISE NOTES  First Semester Second Semester Third Semester Fourth Semester Fifth Semester Sixth Semester Seventh Semester Eighth Semester

Web Technology

  Download Web technology Tutorial Solution  Q.5)  Write necessary code for creating following form. Do proper validation also. Q.6)  Write HTML code to generate following list. Q.12) How can you change the color and font of document in JavaScript? Q.13) Write a JavaScript program to display a prompt for input number, and check whether that number is prime number or not and show the result in alert box. Q.20) Create and test an HTML document that describes a table with the following contents: The columns of the table must have the headings “Pine,” “Maple,” “Oak,” and “Fir.” The rows must have the labels “Average Height,” “Average Width,” “Typical Life Span,” and “Leaf Type.” You can make up the data cell values. Q.23) Create and test an HTML document that describes nested ordered lists of cars. The outer list must have three entries: compact, midsize, and sports. Inside each of these three lists there must be two sublists of body styles. The compact- and midsize-car sublists are two d

Pokhara University Syllabus

Pokhara University Bachelor of Engineering in Information Technology(BE-IT) syllabus Preview and Download Pokhara University Computer Engineering  Syllabus Preview and Download Pokhara University Civil Engineering Syllabus Preview and Download