-->

Facebook

Jasper Roberts - Blog

Monday, September 29, 2014

welcome to mech - b class in c for all

welcome to mech - b class in c for all website for pdf and .docx download

Write a C Program to check entered year is a leap year or not.

DOWNLOADDOWNLOAD

#include<stdio.h>
#include<conio.h>

void main()
{
  int year;

  printf("Enter a year:");
  scanf("%d", &year);

  if(year%4 == 0)
      printf("\n This is a leap year.", year);
 
  else if (year%400 == 0)
      printf("\n This is a leap year.", year);

  else if(year%100 == 0)
      printf("\n This is not a leap year.", year);
 
  else
      printf("\n This is not a leap year.", year); 

  getch();
}

OUTPUT:
 Enter a year: 12
This is a leap year.

Saturday, September 27, 2014

Difference between high level language and low level language


DOWNLOAD DOWNLOAD



High-level Language
Low-level languages
Understanding
Human can easily understand high level languages.
Difficult to understand for human.
Execution
Execution is slow compared to low level languages.
Execution is very fast compared to low level languages.
Structural
High level languages are well structured programming.
Low level languages do not provide structured programming.
Modification
It is very easy to modify.
It is very difficult to modify.
Complexity
It is simple.
It is very complex.
Facility at hardware level
Do not provide much facility at hardware level.
Provides facility to write programs at hardware level.
Knowledge of hardware
Knowledge of hardware is not required to write programs.
Deep knowledge of hardware is required to write programs.
Applications
High level languages are normally used to write application programs.
Low level languages are normally used to write hardware programs.
Examples
Ada , Modula-2 , Pascal, COBOL, FORTRAN, BASIC
Assembler

Thursday, September 25, 2014


DOWNLOAD DOWNLOAD