Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

LAKIREDDY BALI REDDY COLLEGE OF ENGINEERING

(AUTONOMOUS)
Accredited by NAAC & NBA (Under Tier - I), ISO 9001:2015 Certified Institution
Approved by AICTE, New Delhi. and Affiliated to JNTUK, Kakinada
L.B. REDDY NAGAR, MYLAVARAM, KRISHNA DIST., A.P.-521 230.
Phone: 08659-222933, Fax: 08659-222931

DEPARTMENT OF INFORMATION TECHNOLOGY


ASSIGNMENT QUESTIONS
Name of Course Instructor: Phaneendra Kanakamedala Reg: R20
Course Name & Code : PROGRAMMING FOR PROBLEM SOLVING USING C & 20CS01
L-T-P Structure : 3-0-0 Credits: 3
Program/Sem/Sec : B.Tech.– IT/II Sem/Sec-A A.Y.: 2022-23

Q.No Question Description Unit # CO# BL

1. Design an algorithm to find biggest and smallest number among three I CO1 L1
numbers.
2. Draw a flowchart and write a C program to calculate the simple interest. I CO1 L2

3. Write a C program to determine whether the given character is vowel I CO1 L3


or constant or digit.
4. Write a C Program to print 1 to N natural numbers. I CO1 L3

5. Compare and contrast pre-test and post-test loops with an example I CO1 L2
program.
6. Illustrate the switch statement with an example. I CO1 L3

7. Develop a C program to check whether the given integer is palindrome I CO1 L3


or not.
8. Develop a C program that displays all the numbers from 1 to 100 that I CO1 L3
are divisible by 3.
9. Develop a C program to find whether the given number is Armstrong I CO1 L3
or not.
10. Develop a C program to find whether the given number is prime or not. I CO1 L3

11. Develop a C program to print the Fibonacci sequence up to n (input n I CO1 L3


value)
12. Write a C Program to display all the numbers from 1-100 that are not I CO1 L3
divisible by 5. The program should also count and display the number
of such values.
13. Write a program to convert binary number to its equivalent decimal number. I CO1 L3

14. Read the percentage of marks. The program should output following I CO1 L2
grades based on percentage of marks obtained use “nested if ” to write
the code.
Percentage 80-100 70-79 60-69 50-59 Less than
of Marks 49
Grade Excellen Very Good Satisfactory Fail
t Good
Head of the
Title Course Instructor Course Coordinator Module Coordinator
Department
Name of the Dr S. Nagarjuna
Mr. K. Phaneendra Dr. S. Naganjaneyulu Dr. B. Srinivasa Rao
Faculty Reddy

Signature

You might also like