Weekly Challenge #2 – OOP & Data Structures
Intermediate level contest focusing on object-oriented programming concepts and data structure operations.
Your Performance
Score
0 / 230
Problems Solved
0 / 8
Progress
Contest Rules
Problems
Create a C++ class Complex with real and imaginary parts. Implement addition of two complex numbers.
Create a base class Shape and derived classes Circle and Rectangle. Calculate area using polymorphism.
Create a Java class Student with name, roll, and marks. Add methods to display and calculate grade.
Create a base class Animal and derived classes Dog and Cat. Override makeSound() method.
Create an interface Shape with calculateArea() method. Implement it in Circle and Rectangle classes.
Create a Python class Student with name, age, and marks. Add methods to display and calculate average.
Write a Python program to create a list of squares of even numbers using list comprehension.
Write a Python program to sort a dictionary by its values in descending order.