0% found this document useful (0 votes)
662 views1 page

C Programming Assignments

The document outlines 10 programming assignments in C involving basic concepts such as input/output, conditional statements, loops, arrays, and functions. The assignments include: 1) writing algorithms to check if a number is odd/even and calculate the sum of 3 numbers, 2) drawing flowcharts for finding the greater/smaller of 2 numbers and calculating the sum of the first 10 odd numbers, 3) writing notes on C variables and data types, 4) a program to calculate interest on a principal amount, and 5) programs to calculate employee salary based on salary brackets, check if a number is divisible by 100, convert a month number to its name, find prime numbers between 50-150, analyze an integer array, and compare two

Uploaded by

Pranav Makarand
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
Download as odt, pdf, or txt
0% found this document useful (0 votes)
662 views1 page

C Programming Assignments

The document outlines 10 programming assignments in C involving basic concepts such as input/output, conditional statements, loops, arrays, and functions. The assignments include: 1) writing algorithms to check if a number is odd/even and calculate the sum of 3 numbers, 2) drawing flowcharts for finding the greater/smaller of 2 numbers and calculating the sum of the first 10 odd numbers, 3) writing notes on C variables and data types, 4) a program to calculate interest on a principal amount, and 5) programs to calculate employee salary based on salary brackets, check if a number is divisible by 100, convert a month number to its name, find prime numbers between 50-150, analyze an integer array, and compare two

Uploaded by

Pranav Makarand
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1/ 1

C Programming Assignments

Note:
1. Solve all 10 programmes.
2. Each programme carries 10 marks.
Q. 1 Write algorithm for the following :
a) to check whether an entered number is odd / even.
b) to calculate sum of three numbers.
Q. 2 Draw a flowchart for the following :
a) to find greater and smaller number from given two numbers.
b) to calculate sum of first 10 odd numbers.
Q. 3 Write short notes on the following :
a) C Variables b) C data types
Q. 4 Accept principal amount, rate of interest, and duration from the user. Display
Interest Amount and Total Amount (Principal + Interest).
Q. 5 Accept the salary of an employee from the user. Calculate the gross salary on the
following basis:
Basic HRA DA
1 - 4000 10% 50%
4001 - 8000 20% 60%
8001 - 12000 25% 70%
12000 and above 30% 80%
Q.6. Accept any number from the user. Display whether the number is divisible by 100
or not.
Q. 7 Accept a month in digit from the user. Display the month in
words. If number is not between 1 and 12 display message Invalid Month. (Use switch)
Q. 8 Display all prime numbers between 50 and 150.
Q.9. Write a program to accept 10 values in an integer array. Display the number of odd,
even, and negative numbers.
Q. 10 Accept any two strings from the user. Display whether both the strings are equal or not.
(do not use standard functions.)

You might also like