Sr. No
Sr. No
Note: Each program should be properly indented. Each program should be properly documented with programmer name, date of program, and a brief detail of the program using comments wherever necessary.
S$& No
1. 2.
P$o%$a
Des-$!.t!o"
Date
Write a program to print HELLO KV SARNI on screen Write a program to display the following o tp t sing a single co t statement! S "#ect $athematics (omp ter (hemistry $ar%s &' )) *&
Write a program which accept two n m"ers and print their s m Write a program which accept temperat re in +arenheit and print it in centigrade Write a program which accept principle, rate and time from ser and print the simple interest Write a program which accepts a character and display its AS(II -al e Write a program to swap the -al es of two -aria"les Write a program to calc late area of circle Write a program to chec% whether the gi-en n m"er is positi-e or negati-e . sing / 0 ternary operator 1 Write a program to chec% whether the gi-en n m"er is e-en or odd . sing / 0 ternary operator 1 Write a program to swap -al e of two -aria"les witho t sing third -aria"le Write a program which inp t three n m"ers and display the largest n m"er sing ternary operator
13.
Write a program which accepts amo nt as integer and display total n m"er of Notes of Rs! 2'', 3'', 2', 4', 3', 2 and 3! +or e5ample, when ser enter a n m"er, 2)2, the res lts wo ld "e li%e this!!! 2''0 3 3''0 ' 2'0 3 4'0 3 3'0 ' 20 3 30 ' Write a program which accepts a character and display its ne5t character Write a program which accepts days as integer and display total n m"er of years, months and days in it! for e5ample 0 If ser inp t as 62* days the o tp t sho ld "e 4 years 7 months * days Any integer is inp t "y the ser! Write a program to find o t whether it is an odd n m"er or e-en n m"er +ind the a"sol te -al e of a n m"er entered "y the ser If the ages of Ram, S la"h and A#ay are inp t "y the ser, write a program to determine the yo ngest of the three Write a program to chec% whether a triangle is -alid or not, when the three angles of the triangle are entered "y the ser! A triangle is -alid if the s m of all the three angles is e8 al to 36' degrees Any year is inp t "y the ser! Write a program to determine whether the year is a leap year or not In a company an employee is paid as nder0 If his "asic salary is less than Rs! 32'', then HRA 9 3': of "asic salary and ;A 9 &': of "asic salary! If his salary is either e8 al to or a"o-e Rs! 32'', then HRA 9 Rs! 2'' and ;A 9 &6: of "asic salary! If the employee<s salary is inp t "y the ser write a program to find his gross salary Write a program to find the roots of and 8 adratic e8 ation of type a54="5=c where a is not e8 al to >ero ?he mar%s o"tained "y a st dent in 2 different s "#ects are inp t "y the ser! ?he st dent gets a di-ision as per the following r les0 @ercentage a"o-e or e8 al to *' A +irst di-ision @ercentage "etween 2' and 2& A Second di-ision @ercentage "etween 7' and 7& A ?hird di-ision @ercentage less than 7' A +ail Write a program to calc late the di-ision o"tained "y the st dent
14. 15.
19.
20. 21.
22. 23.
24.
ii )
iii)
iV
vi)
25.
Write a program which inp t principal, rate and time from ser and calc late compo nd interest! Co can se li"rary f nction! (I 9 @.3=RD3''1? A @ Write Write Write Write Write a a a a a program program program program program in in in in in (== (== (== (== (== to to to to to calc late factorial of gi-en any n m"er n display fi""onaccies series find o t s m of digit find o t re-erse of digit chec% gi-en n m"er is Armstrong or not