Assignment for Note Book
Assignment for Note Book
• Description: Create a class for complex numbers with methods for addition, subtraction,
multiplication, division, and finding the magnitude and argument.
• Concepts: Complex numbers, operators overloading, methods, constructors.
2. Matrix Operations
3. Polynomial Class
• Description: Design a class to represent polynomials and implement methods for addition,
multiplication, and evaluation at a given point.
• Concepts: Polynomials, arrays, methods, loops.
5. Vector Operations
• Description: Create a class to represent 2D or 3D vectors and implement methods for dot
product, cross product (for 3D), and calculating the magnitude of the vector.
• Concepts: Vectors, operators overloading, methods, geometry.
• Description: Implement a class that can check whether a given number is prime and
generate a list of prime numbers up to a given limit.
• Concepts: Prime numbers, loops, conditionals, methods.
• Description: Create a class for rational numbers (fractions) and implement methods for
addition, subtraction, multiplication, division, and simplification.
• Concepts: Rational numbers, operators overloading, greatest common divisor (GCD),
methods.
• Description: Implement a class to calculate the greatest common divisor (GCD) and least
common multiple (LCM) of two numbers.
• Concepts: GCD, LCM, methods, recursion.
• Description: Create a class that calculates the distance between two points in a 2D or 3D
space using the distance formula.
• Concepts: Geometry, distance formula, methods.
• Description: Create a class to compute the binomial coefficient (n choose k), using both
iterative and recursive methods.
• Concepts: Binomial theorem, combinatorics, recursion.
• Description: Implement a class that computes the mean, median, and mode of a given set
of data.
• Concepts: Arrays, sorting, statistics, methods.
• Description: Design a class that calculates both simple interest and compound interest for
a given principal, rate, and time.
• Concepts: Financial mathematics, formulas, methods.
• Description: Implement a class that checks whether three given numbers form a
Pythagorean triplet (a² + b² = c²).
• Concepts: Pythagorean theorem, conditionals, methods.
• Description: Implement a class that solves a system of linear equations using the Gaussian
elimination method.
• Concepts: Linear algebra, matrices, solving systems of equations, loops.
• Description: Create a class that approximates the sine and cosine of an angle using their
Taylor series expansions.
• Concepts: Taylor series, trigonometry, loops, recursion.
• Description: Implement a class to solve a system of linear equations using Cramer's Rule.
• Concepts: Linear algebra, determinants, matrices, methods.
• Description: Implement a class that uses Euler’s method to numerically solve first-order
differential equations.
• Concepts: Numerical methods, differential equations, loops, approximation.