0% found this document useful (0 votes)
44 views3 pages

Sr. No

The document provides a list of 30 programming problems for students to work on in C++. It includes problems of varying complexity such as calculating simple interest, determining if a number is even or odd, calculating the factorial of a number, and more. Students are instructed to properly format and document their code with comments. The last date to submit solutions for problems 1-10, 11-20, and 21-30 are also provided.

Uploaded by

amishadalal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views3 pages

Sr. No

The document provides a list of 30 programming problems for students to work on in C++. It includes problems of varying complexity such as calculating simple interest, determining if a number is even or odd, calculating the factorial of a number, and more. Students are instructed to properly format and document their code with comments. The last date to submit solutions for problems 1-10, 11-20, and 21-30 are also provided.

Uploaded by

amishadalal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

KENDRIYA VIDYALAYA SARNI Computer Science (083) Practical ile !

or Cla"" #I LIST OF PROGAMMES IN C++ PROGRAMMING FOR PRACTICALS SESSION 2013-14


Last Date of Sub !ss!o" #P$o%$a Last Date of Sub !ss!o" #P$o%$a Last Date of Sub !ss!o" #P$o%$a No& 1 '10( No& 11-20( No& 21-30( 30)0*)2013 31)0+)2013 1,)11)2013

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

S!%" / Re a$0 of Tea-1e$

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 &' )) *&

3. 4. 5. 6. 7. 8. 9. 10. 11. 12.

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.

16. 17. 18.

19.

20. 21.

22. 23.

24.

Write a program to print following 0 solution i)

BBBBBBBBB B BBBBBBBBB B BBBBBBBBB B BBBBBBBBB B B BBB BBBBB BBBBBBB BBBBBBBBB

ii )

B BB BBB BBBB BBBBB

iii)

B BB BBB BBBB BBBBB

iV

1 222 33333 4444444 555555555

vi)

1 212 32123 4321234 543212345

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

26. 27. 28. 29. 30.

You might also like