You are on page 1of 3

UNIQUE COMPUTERS

LAB ASSIGNMENT “C” LANGUAGE


INSTRUCTIONS

1.make a separeate folder in c:\tc with named shelab.


2.save every file named with its question no. : eg>ques1.cpp or ques1.c.
3.make duplicate copy in floppy disk and keep it always with you.
4.after successfully compilation and editing make hard copy (in 2 copy)
5.submit one copy to your class teacher.
Ques1 .write a programme to calculate hypotaneous of right triangle.
Ques2.write a programme to calculate simple interest ?.
Ques3.write a programme to calculate compound interest ?.
Ques4.write a programme to convert entered centigrade temprature to fehrenhite temprature?.
Ques5.write a programme to make salary bill whether computer will ask you to enter employee name,employee code,basic salary
and calculate the following as follows.
DA =43 % OF BASIC (DEARNESS ALLOWANCE)
SA =10% OF BASIC
SPP =5% OF BASIC
HRA =12% OF BASIC
OA =15% OF BASIC
GPF =35% OF BASIC
ITAX =10% OF BASIC
PTAX =100/-
OD =2% OF BASIC
GROSS =BASIC+DA+SA+SPP+HRA+OA
DED =GPF+ADV+ITAX+PTAX+OD
NET =GROSS-DED
Ques6.write a programme to check eligibility for voting in election ?.
Ques7.write a programme to check eligibility for marriege ?.
Ques8.write a programme to check entere year is leap year or not ?.
Ques9.write a programme to check entered number is evently divisible by 6 and 7 or not ?.
Ques10.write a programme to make electricity bill whether computer will ask you to enter customer name,service
number,previous meter reading ,current meter reading then decide the category and rate then calculate the payable electricity as
follows
0 to 500 2 Rs. Per Unit
500 to 1000 5 Rs. Per Unit
1000 to above 10 Rs. Per Unit
Qes11.write a programme to calculate income tax whether computer will ask you to enter name,pan number,annual income then
calculate the payable income tax as follows.
0 to 60000 no tax
60000 to 120000 10%
120000 to 200000 20%
200000 to 300000 30%
300000 to above 40%
Ques12.make a mark sheet programme and calculate result ,division,distinction and percentage?.
Ques13.write a programme to display all the numbers through 1 to 100 ?.
Ques14.write a programme whether computer will ask you to enter lower limit and upper limit then display all the numbers
between these limits and calculate sum and average of the numbers ?.
Ques15.write a programme to display all the even and odd numbers through 1 to 50 in tabular formate like

2 1
4 3
6 5
Ques16.write a programme to calculate factorial of any entered number ?.
Ques17.write a programme to display square and cube of numbers through 1 to 10 as follows
1 1 1
2 4 8
3 9 27 etc.
Ques18write a programme to display multiplication table of any entered numbers ?.
Ques19.write a programme to display any entered number in mirror image ?.
Ques20.write a programme to display all the ASCII codes and their equivalent values in tabular form ?.
Ques21.write a programme to check any entered number is prime number or not ?.
Ques22.write a programme to display all prime numbers through 1 to 100 ?.
Ques23.make all the above programmes through 13 to 22 with for loop ?.
Ques24. make the programmes to display the following structure ?.
(a) *
* *
* * *
* * * *
* * * * *

(b)
*
* *
* * *
* * * *
* * * * *
(c)
*
* *
* * * * *
* * * * * * *
* * * * * * * *
(d)
*
* * *
* * * * *
* * * * * * *
* * * * * * * * *
(e)
*
* * *
* * * * *
* * * * * * *
* * * * * * * * *
* * * * * * *
* * * * *
* * *
*
(f)
* * * * * * *
* * * * *
* * *
*
(g)
* * * * * * * * *
* * * * * *
* *

(h)
A
B C D
E F G H I
J K L M N O P
Q R S T U V W X Y

Ques25.make a prgramme to display digital clock ?.


Ques26.modify teh above programme and set it for user initialisation to hour,minut and second ques27.make a programme to
display the multiplication table of numbers through 1 to15 ?.
Ques28.display the nubers 1, 2 3 with its all possible combination(don’t repeat the same) ?.
Ques29.make a programme whether computer will ask you to enter two numbers and prompt you to select your choice as follows
1 FOR ADDITION
2 FOR SUBTRACTION
3 FOR MULTIPLICATION
4 FOR DIVISION
(hint :- use switch case).
Ques30.write a programme using array whether computer will prompt you to enter to numbers and display the sum and average of
these numbers ?.
Ques31.write a programme to sort five entered number using array ?.
Ques32.find out the largest,lowest,above average,below average,average and sum of the number from above programme ?.
Ques33.make 3 by 3 matrix(hint :- two dimension array) ?.
Ques34.calculate row and column wise sum of above matrix ?.
Ques35.make two 3 by 3 matrix and calculate addition of matrix ?.
Ques36.make two 3 by 3 matrix and calculate multiplication of matrix ?.
Ques37.calculate the determinant of que 33 matrix ?.
Ques38.write a programme to simmplify the following problem ?.
If 10 men can do a piece of work in 20 days then how many number of men need to complete the same piece of work in 2 days ?.
Ques39.if a pipe is able to fill any tank in 5 hours of regular water supply but if there is a lickage then it needs 3 more hours.then
how many time lickage will take to empty to tank ?.
Ques40.Generalise the above question 38 for variable number of men ?.
Ques41.make analog clock(hint :- use graphic programme )?.
Ques42.write a programme whether computer will prompt you to enter a string and calculate the total no.of characters in the
string ?.
Ques43.write a programme whether computer will ask you to enter name,date of birth and current date then calculate the current
age in correct ,year month ,and date wise >
Ques44 modify the above programme and find out the day of week for birth date ?.
Ques45.write a programme whether computer will ask you to enter any month then display the calendar of that month ?.
Ques46.write a programme whether computer will ask you to enter year and then display calendar of thea year from january to
december page wise ?
Ques47.write a programme to find out the largest date from three dates ?.
Ques48.write a programme to store information about three employees such as name of employee –char,age-int,salary float ?.
Ques49.modify the above programme for variable number of employees ?.
Ques50.write a programme to display the system date ?.
Ques51.write a programme to solve any type of quaderatic equation and display the roots of quaderatic equation ?.
Ques52.make a programme to calculate area and circumference of circle ?.
Ques53.make a programme to check any triangle is right triangle to not ?.
Ques54.if suhashini is looking the top of a building from 100 mtrs away by 600 of tangent angle then what is the height of the
building ?.
Ques55.generalise the above programme for variable distance and variable angle?
Ques56.make a diamond like structure ?
Ques57.make a programme to move a circle of 50 point filled with blue color to entire screen
Ques58.make a cartoon and try to dance it ?
Ques59.make a fish aquarium with 3 fishes ?
Ques60.move the fishes in aquarium ?.
Ques61.write aprogramme to calculate area of any triangle ?

You might also like