0% found this document useful (0 votes)
145 views

Index of Lab Programs (Amity University 1st Semester)

The document contains a list of 40 programming problems or exercises organized under headings like "Programs", "Open-Ended Questions", and "Structure Data Type". The programming problems include calculating sums, areas, sorting arrays, matrix operations, functions, and more. It aims to provide a set of foundational programming challenges for students to practice a variety of programming concepts and techniques.

Uploaded by

Rushan Khan
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views

Index of Lab Programs (Amity University 1st Semester)

The document contains a list of 40 programming problems or exercises organized under headings like "Programs", "Open-Ended Questions", and "Structure Data Type". The programming problems include calculating sums, areas, sorting arrays, matrix operations, functions, and more. It aims to provide a set of foundational programming challenges for students to practice a variety of programming concepts and techniques.

Uploaded by

Rushan Khan
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Department of Computer Science & Engineering

Amity School of Engineering & Technology


Amity University, Lucknow Campus

Index

S.No PROGRAMS Date Sign Remark


1. Input two numbers and print their sum.
2. Input principle ,amount rate and time
and calculate S.I.
3. Input length and breadth and calculate
area of rectangle
4. Input the side and calculate area of
square.
5. Input radius and calculate area and
circumference of circle.
6. Input base and height and calculate area
of triangle
7. Input basic salary and print gross salary.
8. Input temperature in Fahrenheit and
convert into Celsius.
9. Input two numbers and swap them.
10. Input 5 digit numbers and calculate sum
of its digits.
11. Input two numbers and print the greater
number.
12. Input a number and check if it is even or
odd.
13. Input a number and check if it is
Armstrong.
14. Display reverse of a number.
15. Input a number and check if it is
palindrome or not.
16. Generate Fibonacci series.
17. Display pattern below
*
**
***
****
18. 1
12
123
1234
19. ****
***
**
*
20. Input an alphabet and check it is vowel
or not.
21. Design a calculator.
22. Write a program Input the marks and
print the remarks.
23. Write a program enter three number and
find Largest among 3 numbers.
24. Write a program to find Average of the
elements of an array.
25. Write a program to find Largest element
of an array.
26. Write a program for Linear search.
27. Write a program input two array and
Merge.
28. Write a program Selection sort.
29. Write a program Bubble sort.
30. Write a program Insertion sort.
31. Write a program for Binary search.
32. Write a program for Sum of two
matrices.
33. Write a program for Product of two
matrices.
34. Write a program for Transpose of a
matrix.
35. Write a program for Sum of two
numbers using functions.
36. Write a program for Swap two numbers
using functions.
37. Write a program for Armstrong number
using function.
38. Write a program for Add two number
using call by reference.
39. Write a program for Swap two numbers
using call by reference.
40. Write a program for Sum of digits of a
number using function.

Open-Ended Questions

Q1 A library charges a fine for every book returned late. For first 5 days fine
is 50 paise, for 6-10 days fine is one rupees and above 10 days fine is 5
rupees. If you return the books after 30 days your membership will be
cancelled. Write a program to accept the number of days the member is
late to return the book and display the fine or appropriate message.

Q2 With the help of an example explain how an array can be passed to a


function? Is it possible to send just a single element of the array to a
function?

Q3 Define a structure data type called TStruct containing 3 members called


hour, minute and second. Develop a program that would assign values to
the individual members and display the time in the form 16:40:30

You might also like