Assignment
Assignment
PRACTICAL ASSIGNMENTS
ASSIGNMENT NO.1
Objectives:
1. To be familiar with syntax and structure of C- programming.
2. To learn problem solving techniques using C
Points:
Q.Describe features of c programming
Q.Describe operaters in c programming?Explain various types of operaters
Q.What is printf(), scanf(), getch()?
Program Title: Write a program to read two numbers.Display Additon, Subtraction, Multiplication
and Division.
Program Title: Write a program to read basic salary. Consider 30 days per month. Display per day
salary.
Program Title: Write a program to read price and quantity. Consider 10% discount and display bill
amount to pay.
Program Title: Write a program to display area of shaded part
A) B)
Program Title: Write a program to read 2 numbers and display quotient and remainder.
ASSIGNMENT NO.2
Objectives:
To understand the programming knowledge using Decision Statements (if, if-else, if-else-if ladder,
switch)
Points:
Q.Explain with proper syntax
1.if 2. If-else 3.nested if-else 4.if-else ladder
Q.Explain switch case with proper example
Program Title: Write a program to read a number and display whether number if positive or negative
Program Title: Write a program to read year. Display whether leap year or not.
Program Title: Write a program to read price and quantity. Calculate bill amount. If bill amount is
greater than 2000 give 20% discount. Display actual amount to pay
Program Title: Write a program to read total marks obtained. Consider to total marks out of 500.
Calculate percentage and Display class obtained depending upon following conditions
Program Title: Write a program to read price and quantity. Calculate amount Depending on
bill amount and quantity. Display actual amount to pay. Give discount as below
Bill Amount Quantity Discount
<2 8%
<10000
>=2 15%
<2 16%
>=10000
>=2 25%
Program Title: C program to print day of week name using switch case