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

Assignment Operators

The document outlines an assignment on C++ operators with a deadline of April 7, 2026, requiring submission both by hand and on LMS. It includes 25 programming questions that cover various operations such as addition, subtraction, multiplication, division, and calculations involving geometric formulas. The questions also involve data types like integers, floating points, and characters, with tasks ranging from basic arithmetic to more complex calculations like area and temperature conversions.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views2 pages

Assignment Operators

The document outlines an assignment on C++ operators with a deadline of April 7, 2026, requiring submission both by hand and on LMS. It includes 25 programming questions that cover various operations such as addition, subtraction, multiplication, division, and calculations involving geometric formulas. The questions also involve data types like integers, floating points, and characters, with tasks ranging from basic arithmetic to more complex calculations like area and temperature conversions.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assignment Guideline

➢ Assignment Details: C++ Operators


➢ Deadline: The assignment is due on April 7, 2026.
➢ Submission Method: All assignments must be submitted by hand and on LMS as well.
Please ensure that you hand in your assignment to CR of your class by the deadline.

Assignment1
Question No 1: Write a program that initializes 3 integer variables and perform addition &
subtraction operations.
Question No 2: Write a program that initializes 2 integers and 1 floating point variable and perform
addition & subtraction.
Question No 3: Write a program that initializes 3 characters, 2 integers, 3 floating points variables
and perform subtraction & multiplication.
Question No 4: Write a program that initialize 3 integers, 1 floating point, 1 character variable and
perform multiplication, division & modulus operations.
Question No 5: Write a program that initializes 2 integers, 2 floating point, 2 characters and
perform all arithmetic operations.
Question No 6: Write a program that initializes 1 integer, 1 floating point, 1 character variable and
perform all arithmetic operations.
Question No 7: Write a program that initializes 2 integers and add, subtract, multiply, divide,
modulus these integers by 2 and 3 respectively using arithmetic assignment operators.
Question No 8: Write a program that initializes 4 integers and calculates the average.
Question No 9: Write a program that initializes the marks of 5 subjects and calculates its percentage
and average.
Question No 10: Write a program that calculates the area of a triangle using the formula Area= ½
*base*height.

Question No 11: Write a program that calculates the area of a square using the formula Area=4R2.
Question No 12: Waite a program that calculates the circumference of a square using the formula
Circumference=4/3R2.
Question No 13: Write a program that calculates the area of a triangle using the formula area = (√
s (s-a) (s-b) (s-c)) where s = (a+b+c)/2.
Question No 14: Write a program that initializes the age and convert it into months and days.
Question No 15: Write a program that initializes a number and calculates its square and cube.
Question No 16: Write a program that initializes the total number of pages of a book, number of
pages the person reads in one day and number of days the person has read the book. Find the
number of pages read and remaining number of pages.
Question No 17: Write a program that initializes the number of students in a class and fee per
student and calculates the total fees.
Question No 18: Write a program that initializes the temperature in Fahrenheit and converts it into
Celsius using the formula C = 5/9 (F-32).
Question No 19: Write a program that initializes the temperature in Celsius and converts it into
Fahrenheit using the formula F = 9/5 (C+32).
Question No 20: Write a program that calculates the volume of a cube using the formula V = length
* width * Height.
Question No 21: Write a program that initializes a five digit no and converts its reverse.
Question No 22: Write a program that initializes a five digit no and calculates the sum of its digits.
Question No 23: Write a program that initializes basic salary and calculates 35% dearness
allowance, 25% house rent, 10% tax and calculate gross salary.
Question No 24: Write a program that initializes two numbers and swap their values.
Question No 25: Write a program that initializes two numbers and swap their values without using
the third variable.

You might also like