0% found this document useful (0 votes)
54 views3 pages

Programming Assignment For PSP - 18Escs01L: Faculty of Engineering and Technology

This document provides instructions for a programming assignment for students in the Computer Science specialization at JGI Global Campus. It lists 50 programming problems for students to complete and provides details on how the assignment will be graded. Students must submit the soft copy of the assignment with output and flowcharts for at least 5 programs between problems 41-50. The assignment is worth a total of 70 marks, with 10 marks for timely submission and 10 marks for including flowcharts.

Uploaded by

UDIT PATHAK
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views3 pages

Programming Assignment For PSP - 18Escs01L: Faculty of Engineering and Technology

This document provides instructions for a programming assignment for students in the Computer Science specialization at JGI Global Campus. It lists 50 programming problems for students to complete and provides details on how the assignment will be graded. Students must submit the soft copy of the assignment with output and flowcharts for at least 5 programs between problems 41-50. The assignment is worth a total of 70 marks, with 10 marks for timely submission and 10 marks for including flowcharts.

Uploaded by

UDIT PATHAK
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Faculty of Engineering and Technology

JGI Global Campus


Jakkasandra Post, Kanakapura Taluk, Ramanagara District,
562112

PROGRAMMING ASSIGNMENT FOR PSP - 18ESCS01L


Second Semester (Computer Science Specialization)

Name of Student: ……………………………………………………………………….……. USN: ………………..…………………………

Date of Submission: ………………………………………………..

INSTRUCTIONS: Total marks: 70


1. Every question carries equal marks (1 * 50 = 50).
2. 10 marks for timely submission of assignment.
3. Submit the soft copy of the assignment with Output and flowchart for at least 5 programs ranging from 41
to 50. (10 marks for flowchart)
4. Please mention your Name and USN with Date of Submission.

List of programs

1. WAP to print your name using gets() function.


2. WAP to find the ASCII of a given character.
3. WAP to convert temperature from degree Centigrade to Fahrenheit.
4. WAP to calculate sum of 5 subjects and find percentage.
5. WAP to swap two numbers without using third variable.
6. WAP to reverse a given string.
7. WAP to find gross salary.
8. WAP to print a table of any given number.
9. WAP to find greatest among 3 given numbers.
10. WAP to show the use of conditional operator.
11. WAP to find the given year is leap year or not.
12. WAP to shift inputted data by two bits to the left.
13. WAP to use switch case to display days of week from Monday to Sunday.
14. WAP to find if input character is vowel or not.
15. WAP to display the use of arithmetic operator using switch case.
16. WAP to print the first 10 natural numbers and display their sum.
17. WAP to print star sequence1:
*
**
***
****
*****
18. WAP to print star sequence2:
*
**
***
****
*****
19. WAP to print star sequence3:
8
888
88888
20. WAP to print star sequence4:
8888
888
8
21. WAP to print Fibonacci series up to 200.
22. WAP to find factors of a given number.
23. WAP to find exponential without using pow() method.
24. WAP to find Palindrome of a given number.
25. WAP to find the given number is Armstrong or not (upto 1000).
26. WAP to find the Factorial of a given number.
27. WAP to find whether the given number is prime or not.
28. WAP to find the sum of series 1+1/2+1/3+……..+1/n.
29. WAP to display the series and sum of 1+3+5+……..+n.
30. WAP to use bitwise AND operator between the two integers.
31. WAP to display sum of 10 elements of array and show the mean and median as well.
32. WAP to find the maximum no. in an array.
33. WAP to display a matrix.
34. WAP to find the sum of two matrices.
35. WAP to find the subtraction of two matrices.
36. WAP to find the multiplication of two matrices.
37. WAP to find the transpose of a matrix.
38. WAP to show the input and output of a string.
39. For the numbers 3, 14, 12, and 37, WAP to check whether number is a multiple of 3 or a multiple
of 7. (Display 1 if condition is true else 0)
40. WAP to check whether two given integer values are in the range 20…..50 inclusive. Return true if
one or other is in the said range otherwise false. Range = (20, 84) (14, 50) (11,45) (25, 40).
41. WAP to check if two given non-negative integers have the same last digit. Numbers = (123, 456)
(12, 512) (7, 87) (12, 45).
42. WAP to get the C version you are using.
43. WAP program to calculate the distance between the two points. (x1, y1, x2, y2 are all double
values)
44. WAP to read an amount (integer value) and break the amount into smallest possible number of
bank notes. (The possible banknotes are 100, 50, 20, 10, 5, 2 and 1)
45. WAP that reads three floating values and check if it is possible to make a triangle with them. Also
calculate the perimeter of the triangle if the said values are valid.
46. WAP to read a password until it is correct. For wrong password print "Incorrect password" and
for correct password print "Correct password" and quit the program. (Use condition Password
cannot be 0 and more than 10 integers, the correct password is 1234)
47. WAP to read the coordinate(x, y) (in Cartesian system) and find the quadrant to which it belongs
(Quadrant -I, Quadrant -II, Quadrant -III, Quadrant -IV). (A Cartesian coordinate system is
a coordinate system that specifies each point uniquely in a plane by a pair of numerical
coordinates. These are often numbered from 1st to 4th and denoted by Roman numerals: I
(where the signs of the (x, y) coordinates are I(+,+), II (−,+), III (−,−), and IV (+,−))
48. WAP to print a number, it’s square and cube in a line, starting from 1 and print n lines. Accept
number of lines (n, integer) from the user.
49. WAP that accepts a distance in centimeters and prints the corresponding value in inches.
50. WAP to calculate the Body Mass index (BMI). Display the message for its fitness.

Remarks by Faculty:

You might also like