Uploaded by Rohit Anand

Workbook (1)

advertisement
CSE 110 PROBLEM SOLVING C PROGRAMMING
STUDENT WORK BOOK
Name:
Unique ID:
Year:
Quarter:
Department:
Faculty Name: Prof. Rohini. P
Unique IDPage 1
1
Questio
n Topic
Date
Write a program to find the simple and compound interest.
Operators and Expressions
23/09/20
Program :
Output:
Explanation(if required):
Unique IDPage 2
2
Questio
n Topic
Date
Write a program to find the gross salary, where gross salary = basic salary + TA +
DA, TA = 10% of basic salary and DA = 12% of basic salary.
Operators and Expressions
23/09/2020
Program :
Output:
Explanation(if required):
Unique IDPage 3
3
Questio
n Topic
Date
Write a program to print the multiplication table of any number.
Operators and Expressions
23/09/2020
Program :
Output:
Explanation(if required):
Unique IDPage 4
4
Questio
n Topic
Date
Write a program to find if the entered year is leap year or not.
Operators and Expressions, Decision making- branching and looping
23/09/2020
Program :
Output:
Explanation(if required):
Unique IDPage 5
5
Questio
n Topic
Date
Write a program to reverse a given number.
Decision making- branching and looping
23/09/2020
Program :
Output:
Explanation(if required):
Unique IDPage 6
6
Questio
n Topic
Date
Write a program to print stars in this sequence
*
**
***
****
*****
Decision making- branching and looping
23/09/2020
Program :
Output:
Explanation(if required):
Unique IDPage 7
7
Questio
n Topic
Date
Write a program to sort a list of numbers in ascending order and find its median.
Decision making- branching and looping
23/09/2020
Program :
Output:
Explanation(if required):
Unique IDPage 8
8
Questio
n Topic
Date
Write a program to read two strings and concatenate them.
Decision making- branching and looping
23/09/2020
Program :
Output:
Explanation(if required):
Unique IDPage 9
9
Questio
n Topic
Date
Write a program to read the month from the user.
Use switch case statement to identify whether the month is having 31 days or 30
days.
Decision making- branching and looping
23/09/2020
Program :
Output:
Explanation(if required):
Unique IDPage 10
10
Questio
n Topic
Date
Write a program to check whether a character is an uppercase or lowercase alphabet
Decision making- branching and looping
23/09/2020
Program :
Output:
Explanation(if required):
Unique IDPage 11
Download