F.Y.B.Sc. Lab course assignments Semester – I and II

Java Assignments
North Maharashtra University, Jalgaon
F. Y. B. Sc. (Computer Science) (w.e.f. June -2009)
Syllabus for UG-CS 103: Lab course
Semester –I
1. Program using various arithmetic operator
2. Program using control statement(if, if-else, if-else nesting ,switch)
3. Program using various loops(for, while ,do-while, nesting)(eg prime ,factorial, fibbonacci )
4. Program using 1-D arrays(eg:-sorting ,searching)
5. Program using 2-D array(eg:-matrix operation)
6. Program using function(call by value, call by reference, recursive)
7. Program using user define string function(at least two practical)
Semester –II
8. Program using pointers(arrays, functions, structures)
9. Program using structures(at least two practical)
10. Program using graphics function(at least two practical)
11. Simple program using file(to be cover all functions)
12. Program using files with structures
13. Program using command line argument

We will Provide all above lab course Assignment As Soon As Possible.

1. Program using various arithmetic operator

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
 int ch;
 float a,b,res;
 clrscr();
 printf("Enter two numbers:");
 scanf("%f%f",&a,&b);
 printf("\nMenu\n1.Addition\n2.Subtraction\n3.Multiplication\n4.Division");
 printf("\nEnter your choice:");
 scanf("%d",&ch);

  switch(ch)
 {
  case 1: res=a+b;
   break;
  case 2: res=a-b;
   break;
  case 3: res=a*b;
   break;
  case 4: res=a/b;
   break;
  default: printf("Wrong choice!!\nPress any key...");
    getch();
    exit(0);
 }

  printf("\nResult=%f",res);
 getch();
}
Out Put as like:







Shell Programming

#Shell script to a number below 50 and display its square

 clear