SlideShare ist ein Scribd-Unternehmen logo
1 von 5
1. WAP to print any message on the screen.
2. WAP to input 2 no’s from the user & do
      their addition, subtraction, multiplication & division.
3. WAP to input principal, rate, time & find the simple interest.
4. WAP to print area of circle, rectangle & square.
5. WAP to enter marks of a student in 5 subjects & calculate the
      percentage.
6. WAP to find average of 7 numbers.
7. WAP to calculate
        i.    (a+b)2
       ii.    (a+b)3
       iii.   (a2-b2)
8. WAP to find circumference of a circle.
9. WAP to swap 2 no’s by using a third variable.
10.WAP to swap 2 no’s without using a third variable.
11.WAP to convert temperature from degree Celsius to Fahrenheit &
      vice-versa. Use the formula : F=9C/5 + 32
12.   WAP to calculate the Gross Salary of an employee.
      Assume Gross Salary=Basic Salary+DA+HRA
      DA=40% of Basic Salary
      HRA=20% of Basic Salary
13.WAP to find whether a person can vote or not.
14.WAP to find whether a no. is even or odd.
15.WAP to find whether a no is positive or negative.
16.   WAP to enter the %age of a student & print whether he is PASS or
      FAIL.
17.WAP to check whether a given year is leap or not.
18.   WAP to show the use of conditional operator (Greater among
      two numbers)
19.   WAP to check whether the given number is even or odd (By using
      conditional operator).
20.WAP to print the largest of three numbers.
21.WAP to calculate the percentage of a student in 5 subjects and
      then find his grade accordingly.
22.WAP to calculate the Gross Salary of an employee.
      Assume:
    BASIC SALARY         DA                    HRA
    <1500                90% of Basic Salary 10% of Basic Salary
    >=1500               98% of Basic Salary 500
23. WAP to display days of week i.e. Monday to Sunday using switch-

      case statement.
24.   WAP to display arithmetic operations using switch-case statement.
25.WAP to print a name a message 10 times.
26.WAP to print first 10 natural nos.
27.WAP to print first N natural numbers and their sum.
28.WAP to calculate SI for 3 sets of p, n & r.
29.WAP to print the following series:
i.   10,9,8,…..1
       ii.   2,4,6,8,…..20
      iii.   10,13.5,17,20.5
30.   WAP to factorial of a no
       i.    Using for loop
      ii.    Using while loop
31.   WAP to print sum of following series
      1+1/4+1/7+1/10+1/13+1/16+1/19+1/22+1/25
32.   WAP to print the squares of 1st 10 natural numbers and their sum.
33.   WAP to print the product and average of 1st N natural numbers.
34.WAP to print even nos. out of first 100 numbers.
35.WAP to Print the Fibonacci series up to n numbers.
36.Write a program to print table of a number.
37.WAP to accept a 3 digit number from the user and print it in
      reverse.
38.WAP to check whether the entered number is Palindrome or not.
39.   WAP to check whether the entered no. is Armstrong no. or not.
40.WAP to print prime nos. out of first 100 numbers.
41.WAP to print the following:


       i.


             1
             1    2
1   2   3

       1   2   3   4

       1   2   3   4    5



 ii.


       1
       2   2
       3   3   3
       4   4   4   4
       5   5   5   5    5




iii.


       1
       2   3
       4   5   6
       7   8   9   10
iv.


                        1

                   1    2   1
1   2   3   2   1

    1   2   3   4   3   2   1

1   2   3   4   5   4   3   2   1

Weitere ähnliche Inhalte

Ähnlich wie List of programs for practical file

Ähnlich wie List of programs for practical file (20)

PSP LAB MANUAL.pdf
PSP LAB MANUAL.pdfPSP LAB MANUAL.pdf
PSP LAB MANUAL.pdf
 
Java Practice Set
Java Practice SetJava Practice Set
Java Practice Set
 
Programming in C Lab
Programming in C LabProgramming in C Lab
Programming in C Lab
 
c language programing
c language programingc language programing
c language programing
 
c programing
c programingc programing
c programing
 
c language programing
c language programing c language programing
c language programing
 
Week 1
Week 1Week 1
Week 1
 
List of programs to practice for ICSE
List of programs to practice for ICSEList of programs to practice for ICSE
List of programs to practice for ICSE
 
C programming assignment presentation file
C programming assignment presentation fileC programming assignment presentation file
C programming assignment presentation file
 
_MODULE1_FINALPAPER.docx
_MODULE1_FINALPAPER.docx_MODULE1_FINALPAPER.docx
_MODULE1_FINALPAPER.docx
 
Best c programs
Best c programsBest c programs
Best c programs
 
Simple c-programs
Simple c-programsSimple c-programs
Simple c-programs
 
best notes in c language
best notes in c languagebest notes in c language
best notes in c language
 
P79 mba202
P79 mba202P79 mba202
P79 mba202
 
You gotta see this! QR codes & augmented reality
You gotta see this! QR codes & augmented realityYou gotta see this! QR codes & augmented reality
You gotta see this! QR codes & augmented reality
 
Sample Program file class 11.pdf
Sample Program file class 11.pdfSample Program file class 11.pdf
Sample Program file class 11.pdf
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdf
 
Programming qns
Programming qnsProgramming qns
Programming qns
 
C-LOOP-Session-2.pptx
C-LOOP-Session-2.pptxC-LOOP-Session-2.pptx
C-LOOP-Session-2.pptx
 
COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEW
 

Mehr von swatisinghal

Introduction,Software Process Models, Project Management
Introduction,Software Process Models, Project ManagementIntroduction,Software Process Models, Project Management
Introduction,Software Process Models, Project Managementswatisinghal
 
Data Scanning Devices
Data Scanning DevicesData Scanning Devices
Data Scanning Devicesswatisinghal
 
Point & Draw devices
Point & Draw devicesPoint & Draw devices
Point & Draw devicesswatisinghal
 
Point & Draw devices
Point & Draw devicesPoint & Draw devices
Point & Draw devicesswatisinghal
 
Syllabus & Course Module for IT
Syllabus & Course Module for ITSyllabus & Course Module for IT
Syllabus & Course Module for ITswatisinghal
 
Course Breakup Plan- C
Course Breakup Plan- CCourse Breakup Plan- C
Course Breakup Plan- Cswatisinghal
 
Syllabus Software Engineering
Syllabus Software EngineeringSyllabus Software Engineering
Syllabus Software Engineeringswatisinghal
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software Engineeringswatisinghal
 
Introduction to software engineering
Introduction to software engineeringIntroduction to software engineering
Introduction to software engineeringswatisinghal
 
Course Break Up Plan
Course Break Up PlanCourse Break Up Plan
Course Break Up Planswatisinghal
 
Software engineering syllabus
Software engineering syllabusSoftware engineering syllabus
Software engineering syllabusswatisinghal
 

Mehr von swatisinghal (13)

I Hourly Test IT
I Hourly Test ITI Hourly Test IT
I Hourly Test IT
 
Software Metrics
Software MetricsSoftware Metrics
Software Metrics
 
Introduction,Software Process Models, Project Management
Introduction,Software Process Models, Project ManagementIntroduction,Software Process Models, Project Management
Introduction,Software Process Models, Project Management
 
Data Scanning Devices
Data Scanning DevicesData Scanning Devices
Data Scanning Devices
 
Point & Draw devices
Point & Draw devicesPoint & Draw devices
Point & Draw devices
 
Point & Draw devices
Point & Draw devicesPoint & Draw devices
Point & Draw devices
 
Syllabus & Course Module for IT
Syllabus & Course Module for ITSyllabus & Course Module for IT
Syllabus & Course Module for IT
 
Course Breakup Plan- C
Course Breakup Plan- CCourse Breakup Plan- C
Course Breakup Plan- C
 
Syllabus Software Engineering
Syllabus Software EngineeringSyllabus Software Engineering
Syllabus Software Engineering
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software Engineering
 
Introduction to software engineering
Introduction to software engineeringIntroduction to software engineering
Introduction to software engineering
 
Course Break Up Plan
Course Break Up PlanCourse Break Up Plan
Course Break Up Plan
 
Software engineering syllabus
Software engineering syllabusSoftware engineering syllabus
Software engineering syllabus
 

List of programs for practical file

  • 1. 1. WAP to print any message on the screen. 2. WAP to input 2 no’s from the user & do their addition, subtraction, multiplication & division. 3. WAP to input principal, rate, time & find the simple interest. 4. WAP to print area of circle, rectangle & square. 5. WAP to enter marks of a student in 5 subjects & calculate the percentage. 6. WAP to find average of 7 numbers. 7. WAP to calculate i. (a+b)2 ii. (a+b)3 iii. (a2-b2) 8. WAP to find circumference of a circle. 9. WAP to swap 2 no’s by using a third variable. 10.WAP to swap 2 no’s without using a third variable. 11.WAP to convert temperature from degree Celsius to Fahrenheit & vice-versa. Use the formula : F=9C/5 + 32 12. WAP to calculate the Gross Salary of an employee. Assume Gross Salary=Basic Salary+DA+HRA DA=40% of Basic Salary HRA=20% of Basic Salary 13.WAP to find whether a person can vote or not. 14.WAP to find whether a no. is even or odd.
  • 2. 15.WAP to find whether a no is positive or negative. 16. WAP to enter the %age of a student & print whether he is PASS or FAIL. 17.WAP to check whether a given year is leap or not. 18. WAP to show the use of conditional operator (Greater among two numbers) 19. WAP to check whether the given number is even or odd (By using conditional operator). 20.WAP to print the largest of three numbers. 21.WAP to calculate the percentage of a student in 5 subjects and then find his grade accordingly. 22.WAP to calculate the Gross Salary of an employee. Assume: BASIC SALARY DA HRA <1500 90% of Basic Salary 10% of Basic Salary >=1500 98% of Basic Salary 500 23. WAP to display days of week i.e. Monday to Sunday using switch- case statement. 24. WAP to display arithmetic operations using switch-case statement. 25.WAP to print a name a message 10 times. 26.WAP to print first 10 natural nos. 27.WAP to print first N natural numbers and their sum. 28.WAP to calculate SI for 3 sets of p, n & r. 29.WAP to print the following series:
  • 3. i. 10,9,8,…..1 ii. 2,4,6,8,…..20 iii. 10,13.5,17,20.5 30. WAP to factorial of a no i. Using for loop ii. Using while loop 31. WAP to print sum of following series 1+1/4+1/7+1/10+1/13+1/16+1/19+1/22+1/25 32. WAP to print the squares of 1st 10 natural numbers and their sum. 33. WAP to print the product and average of 1st N natural numbers. 34.WAP to print even nos. out of first 100 numbers. 35.WAP to Print the Fibonacci series up to n numbers. 36.Write a program to print table of a number. 37.WAP to accept a 3 digit number from the user and print it in reverse. 38.WAP to check whether the entered number is Palindrome or not. 39. WAP to check whether the entered no. is Armstrong no. or not. 40.WAP to print prime nos. out of first 100 numbers. 41.WAP to print the following: i. 1 1 2
  • 4. 1 2 3 1 2 3 4 1 2 3 4 5 ii. 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 iii. 1 2 3 4 5 6 7 8 9 10 iv. 1 1 2 1
  • 5. 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1