0% found this document useful (0 votes)
8 views2 pages

Assignment C CBCA104 2024 PART I

The document outlines practical assignments for a 'C' Programming Lab, divided into two parts. Part A includes algorithms and flowcharts for various mathematical calculations and logic problems, while Part B consists of programming tasks such as calculating salaries, grades, and generating series. The assignments cover a wide range of topics, including control structures, functions, and basic data handling in C programming.

Uploaded by

riyasharma37536
Copyright
© © All Rights Reserved
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)
8 views2 pages

Assignment C CBCA104 2024 PART I

The document outlines practical assignments for a 'C' Programming Lab, divided into two parts. Part A includes algorithms and flowcharts for various mathematical calculations and logic problems, while Part B consists of programming tasks such as calculating salaries, grades, and generating series. The assignments cover a wide range of topics, including control structures, functions, and basic data handling in C programming.

Uploaded by

riyasharma37536
Copyright
© © All Rights Reserved
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/ 2

BCA PART I

Practical Assignments
‘C’ Programming Lab.
PART A
1. Write an algorithm to calculate simple interest, mentioning input of P,R,T from
the user.
2. Design an algorithm and flowchart to display area and circumference of circle.
3. Write an algorithm to find the roots of a Quadratic equation.
4. Write an algorithm to convert the temperature from Fahrenheit to Celsius
( C= F-32 / 1.8 )
5. Write an algorithm to determine a student’s final grade and indicate whether it is
passing or failing. The final grade is calculated as the average of four marks.

6. Design a flowchart to find the greatest of three numbers .


7. Draw a flow chart to count and print a series from 1 to 10.

PART B

1. WAP to calculate total salary of an employee as per the given specification


DA=40%,TA=15%,HRA=10%,PF=9%
Total Salary=Basic +DA+TA+HRA-PF
2. WAP to calculate simple interest ,input P,R,T from the user.
3. WAP to convert the temperature from Fahrenheit to Celsius ( C= F-32 / 1.8 )
4. WAP to calculate the percentage of a student .for this input four subjects marks .
Assume highest mark is 100 for each subject.

5. WAP to calculate grade of a student as per the following specifications using multiple
if statement , else if ladder statement and switch case statement.
Per Grade
>80 A+
70 –79 A
60 – 69 B
50 – 59 C
<50 Fail

6. WAP to calculate total salary of an employee as per the given specification


If Basic >5000 then DA=40%,TA=15%,HRA=10%,PF=9%
If Basic >=5000 then DA=30%,TA=10%,HRA=8%,PF=9%

Total Salary=Basic +DA+TA+HRA-PF

7. An Electricity board charges the following rates for the use of electricity: for the
first 200 units 80 paise per unit: for the next 100 units 90 paise per unit: beyond
300 units Rs 1 per unit. All users are changed a minimum of Rs. 100 as meter
charge. If the total amount is more than Rs 400, then an additional surcharge of
15% of total amount is charged. Write a program to read the name of the user,
number of units consumed and print out the charges.
8. WAP to print highest number among three numbers.

9. WAP to check the year is leap year or not .


10. WAP to print the a name of the month according to the month number i.e. 4 = April
using switch-case.
11. WAP to find the highest number among 10 numbers without using array.
12. WAP to print the table of 5 up to 10 terms.
13. WAP to calculate the factorial of a given number.
14. WAP to print the fibonacci series up to 10 terms.
15. WAP to print the following series
(a) 9, 99, 999, 9999……n
(b) 1,12,123,1234,……..n
(c) 1-2+3-4+5-6+……n ( also calculate the sum of this series)

16. WAP to reverse a number. i.e : 1245  5421


17. WAP to check a number that it is palindrome or not.
18. WAP to check the number that, it is a prime numbers or not.
19. WAP to print the buzz numbers(Divisible by 7) in range of 100-200 .also calculate
sum of those numbers and count them.
20. WAP to check the number is an Armstrong number or not.

21. Print the following figures using nested loops.


(a) (b) (c)
1
1 $ 22
12 $$ 333
123 $$$ 4444
1234 $$$$ 55555
12345 $$$$$

(d) (e) (f)


*
12345 *
**
1234 **
***
123 ***
****
12 ****
*****
1 *****

(g) (h) (i)


* AAAAA 1
*** AAAA 01
***** AAA 101
******* AA 0101
********* A 10101

You might also like