INDORE INSTITUTE of SCIENCE & TECH
TOPIC:: Data Types & Operator
WORK SHEET -I
10
11
INDORE INSTITUTE of SCIENCE & TECHNILOG
TOPIC:: Data Types & Operators
WORK SHEET -I
Scenario-Based Version
📊 A shopkeeper compares today’s and yesterday’s sales. Write a program to calculate
their sum, difference, product, division result, and remainder.
📏 An architect receives land measurements in meters but needs to submit them in
centimeters. Write a program to convert meters to centimeters.
🚗 A taxi company wants to track distance traveled in centimeters for precision. Write a
program to convert kilometers into centimeters.
📐 A carpenter measures wood pieces in inches but the blueprint requires feet. Write a
program to convert inches into feet.
⚙️A mechanical engineer is designing a circular gear. Write a program to calculate its
perimeter and area using radius.
🏠 A civil engineer needs to tile a square floor. Write a program to calculate its
perimeter and area using the side length.
📦 A packaging company designs rectangular boxes. Write a program to calculate
perimeter and area using length and breadth.
🎯 A math teacher wants to demonstrate the sum of first n odd numbers. Write a
program to calculate it.
🔢 A game assigns odd-numbered IDs to players. Write a program to find the nth odd
number.
📚 A school distributes even-numbered roll numbers into one section. Write a program
to find the sum of first n even numbers.
💰 A bank calculates loan repayment using Principal, Rate, and Time. Write a program
to calculate Simple Interest.
& TECHNILOGY
perators
Sample Input Sample Output
72 9, 5, 14, 3, 1
2 200
2 200000
60 5
4 12.5664, 50.2654
6 24, 36
47 22, 28
4 16
4 7
4 20
(e.g. 1000 5 2) 100
INDORE INSTITUTE of SCIENCE & T
TOPIC: Data Types & Opera
PRACTICE SHEET -I
2
3
4
5
10
11
12
INDORE INSTITUTE of SCIENCE & TECHN
TOPIC: Data Types & Operators
PRACTICE SHEET -I
🏆 A competition labels participants with even-numbered IDs. Write a program to find the nth even
number.
🧮 A mathematician studies number patterns. Write a program to calculate the sum of first n terms of
the series 5, 7, 9, 11...
🔎 A puzzle challenge gives a series 5, 7, 9… Write a program to find the nth term.
📊 A researcher analyzes sequences. Write a program to calculate sum of first n terms of the series 3,
11, 15…
🎲 A quiz presents the series 3, 7, 11, 15… Write a program to determine the nth term.
🔄 A cashier mistakenly exchanges two account balances. Write a program to swap the values of two
numbers.
💵 A bank teller wants to give the minimum number of notes for a withdrawal amount. Write a program
to calculate it using notes (2000, 500, 100, 50, 20, 10, 5, 1).
📅 An HR system calculates employee service from number of days worked. Write a program to conver
days into years, months, and weeks.
📐 A construction engineer knows two angles of a triangular frame. Write a program to calculate the
third angle.
A builder is designing a triangular plot. Write a program to calculate its area given base and height.
⚡ A solar panel has an equilateral triangular shape. Write a program to calculate its area given its side
🏫 A university result system stores marks of 5 subjects (max 75 each). Write a program to calculate
total, average, and percentage.
CHNILOGY
ors
4 8
4 32
4 11
4 36
4 15
48 219 219 48
4553 7
400 1 Year, 1 Month, 5 Days
60 90 30
(e.g. 10 5) 25
(e.g. 6) 15.588
(e.g. 65 70 55
325, 65, 86.6%
60 75)