Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
14 views2 pages

Assignment

C assignment

Uploaded by

petermj2222
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)
14 views2 pages

Assignment

C assignment

Uploaded by

petermj2222
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/ 2

D Y Patil Agriculture & Technical University, Talsande

Program: B. Tech-I Sem: I


Course Title: Basic Programming With C Lab
Course Code: BTFY011104

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

a. If total marks obtained < 40 then fail


b. If total marks obtained >= 40 and total marks obtained<60 then pass class
c. If total marks obtained >= 60 and total marks obtained<66 then first class
d. If total marks obtained > 66 then first class with distinction.

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

You might also like