CJCoding With Joseph
15per day
TitleTopicsAction
25
Set and Get BalanceCreate a class Wallet with one private double field named balance. Requirements...
easy○ Not Started
Classes
Solve
26
Triple Constructor - BookInfoCreate a class BookInfo with private fields title, author (strings), and year (i...
easy○ Not Started
Classes
Solve
27
Point3D ConstructorCreate a class Point3D with private int fields x, y, and z. Requirements: 1. Co...
easy○ Not Started
Classes
Solve
28
Course Class FormattingCreate a class Course with private fields name (string), code (string), and cred...
easy○ Not Started
Classes
Solve
29
Employee ClassCreate a class Employee with private fields name (string), role (string), and sa...
easy○ Not Started
Classes
Solve
30
Recipe ClassCreate a class Recipe with private fields name (string), servings (int), and dif...
easy○ Not Started
Classes
Solve
31
Counter IncrementCreate a class Counter with a private int count. Requirements: 1. Default const...
easy○ Not Started
Classes
Solve
32
Use this PointerYou are building a Box class. It has two private int fields: width and height. ...
easy○ Not Started
Classes
Solve
33
Const Area FunctionCreate a class Rectangle with private int length and width. Requirements: 1. Wr...
easy○ Not Started
Classes
Solve
34
Default and Parameterized ConstructorCreate a class Car with a private int speed. Requirements: 1. Default construct...
easy○ Not Started
Classes
Solve
35
Simple DestructorCreate a class Logger with a constructor that prints "Created" and a destructor ...
easy○ Not Started
Classes
Solve
36
Copy Constructor - PointCreate a class Point with private int x and y. Implement a copy constructor and ...
easy○ Not Started
Classes
Solve
37
Light MutatorsCreate a class Light with a private bool isOn. Add methods turnOn(), turnOff(), ...
easy○ Not Started
Classes
Solve
38
Static Member FunctionCreate a class MathHelper with a static function add(int a, int b) that returns ...
easy○ Not Started
Classes
Solve
39
Object on HeapCreate a class Car with a private int speed and a default constructor that sets ...
easy○ Not Started
Classes
Solve
40
Simple Array MemberCreate a class Playlist with a private array of 5 strings named songs. Requirem...
easy○ Not Started
Classes
Solve
41
Pass by Const ReferenceCreate a class Student with private fields name (string) and grade (int). Add ge...
easy○ Not Started
Classes
Solve
42
Calculator MethodsCreate a class Calculator with methods add, subtract, and multiply that each tak...
easy○ Not Started
Classes
Solve
43
Initialization ListCreate a class Person with private fields name (string) and age (int). The const...
easy○ Not Started
Classes
Solve
44
Display ProductCreate a class Product with private fields name (string) and price (double). Add...
easy○ Not Started
Classes
Solve
59
Money + Money (operator+)You are building a simple Money class for prices in a store. Create a class Mon...
easy○ Not Started
ClassesOperator Overloading
Solve
60
Temperature Equality (operator==)You are comparing temperatures for a thermostat. Create a class Temperature tha...
easy○ Not Started
ClassesOperator Overloading
Solve
61
TimeOfDay Comparison (operator<)You are sorting times in a daily schedule. Create a class TimeOfDay with two in...
easy○ Not Started
ClassesOperator Overloading
Solve
62
Vector2D Add-Assign (operator+=)You are moving a character on a 2D grid. Create a class Vector2D with two ints:...
easy○ Not Started
ClassesOperator Overloading
Solve
63
Fraction Multiply (operator*)You are working with recipe ratios. Create a class Fraction with two ints: nume...
easy○ Not Started
ClassesOperator Overloading
Solve
64
Product Compare by SKU (operator==)You are tracking products in a warehouse. Create a class Product with a private...
easy○ Not Started
ClassesOperator Overloading
Solve
65
Rectangle Combine Dimensions (operator+)You are combining two rectangular boards end-to-end. Create a class Rectangle w...
easy○ Not Started
ClassesOperator Overloading
Solve
66
Score Prefix Increment (operator++)You are tracking points in a game. Create a class Score with a private int poin...
easy○ Not Started
ClassesOperator Overloading
Solve
67
Distance Subtract (operator-)You are tracking distance along a running route. Create a class Distance that s...
easy○ Not Started
ClassesOperator Overloading
Solve
68
Complex Negation (unary operator-)You are working with 2D rotations using complex numbers. Create a class Complex...
easy○ Not Started
ClassesOperator Overloading
Solve
69
WeekSchedule Indexing (operator[])You are storing a simple weekly schedule. Create a class WeekSchedule that stor...
easy○ Not Started
ClassesOperator Overloading
Solve
70
Print a Point (operator<<)You want clean logging for coordinates. Create a class Point2D with private int...
easy○ Not Started
ClassesOperator Overloading
Solve
71
Evaluate a Line (operator())You are modeling a straight line y = mx + b. Create a class Line with private i...
easy○ Not Started
ClassesOperator Overloading
Solve
72
Scale a Duration (operator*)You are scaling workout durations. Create a class Duration that stores seconds ...
easy○ Not Started
ClassesOperator Overloading
Solve
73
Calendar Date Inequality (operator!=)You are checking if two calendar dates are different. Create a class Date with ...
easy○ Not Started
ClassesOperator Overloading
Solve
148
Safe List AccessCreate a class `SafeList` that wraps a `vector<int>` and prevents out-of-bounds ...
easy○ Not Started
ClassesExceptions
Solve
149
Throw in ConstructorCreate a class `Rectangle` with private `double width` and `double height`. Req...
easy○ Not Started
ClassesExceptions
Solve
176
Friend Function to Read a Private FieldA friend function is a non-member function that is allowed to access a class's p...
easy○ Not Started
ClassesFriend Functions
Solve
45
Deep Copy ConstructorCreate a class NumberHolder with a private int* value. Requirements: 1. Constru...
medium○ Not Started
Classes
Solve
46
Rule of ThreeImplement the Rule of Three for a class NumberHolder with int* value. Requireme...
medium○ Not Started
Classes
Solve
47
Fix Shallow CopyCreate a class BadCopy with an int* data pointer. Implement a constructor, destr...
medium○ Not Started
Classes
Solve
48
Dynamic Array MemberCreate a class ArrayHolder with private int* arr and int size. Requirements: 1....
medium○ Not Started
Classes
Solve
49
Deep Copy for Dynamic ArrayExtend ArrayHolder so the copy constructor performs a deep copy of the dynamic a...
medium○ Not Started
Classes
Solve
50
Copy Assignment OperatorImplement operator= for ArrayHolder to deep copy the array. Handle self-assignme...
medium○ Not Started
Classes
Solve
51
Disable CopyingCreate a class DatabaseConnection and explicitly delete the copy constructor and...
medium○ Not Started
Classes
Solve
52
Const ComparisonCreate a class Rectangle with private int length and width. Add isEqual(const Re...
medium○ Not Started
Classes
Solve
53
Dynamic 2D ArrayCreate a class Matrix with private int** data, int rows, and int cols. Requirem...
medium○ Not Started
Classes
Solve
54
Copy Constructor LogsCreate a class Logger with a copy constructor that prints "Copied". Add a constr...
medium○ Not Started
Classes
Solve
74
Money Comparisons (operator< and operator<=)You want to compare money amounts for sorting and "at most" checks. Create a cl...
medium○ Not Started
ClassesOperator Overloading
Solve
75
Fraction Equality by Value (operator==)You are comparing ingredient ratios, and 5/10 should equal 1/2 (both represent t...
medium○ Not Started
ClassesOperator Overloading
Solve
76
Vector2D Add and Subtract (operator+ and operator-)You are doing basic physics with displacement vectors. Create a class Vector2D ...
medium○ Not Started
ClassesOperator Overloading
Solve
77
TimeDuration I/O (operator>> and operator<<)You are parsing and printing workout durations. Create a class TimeDuration tha...
medium○ Not Started
ClassesOperator Overloading
Solve
78
Counter Prefix and Postfix ++You are tracking the number of notifications. Create a class Counter with a pri...
medium○ Not Started
ClassesOperator Overloading
Solve
79
Playlist Track Access (const and non-const operator[])You are managing a tiny playlist of 3 song titles. Create a class Playlist with...
medium○ Not Started
ClassesOperator Overloading
Solve
80
Distance Add-Assign and Add (operator+= and operator+)You are tracking total distance across multiple runs. Create a class Distance t...
medium○ Not Started
ClassesOperator Overloading
Solve
81
Complex Add and Stream Print (operator+ and operator<<)You want to add complex numbers and print them cleanly. Create a class Complex2...
medium○ Not Started
ClassesOperator Overloading
Solve
82
TextLabel Concatenation (operator+ and operator+=)You are building UI labels that have a prefix and main text. Create a class Tex...
medium○ Not Started
ClassesOperator Overloading
Solve
83
Grade Compare (operator> and operator>=)You are comparing student grades across different point totals. Create a class ...
medium○ Not Started
ClassesOperator Overloading
Solve
84
Account Balance Add (operator+ for BankAccount)You want to combine balances from two accounts into a new summary account. Crea...
medium○ Not Started
ClassesOperator Overloading
Solve
85
Temperature Range Shift (operator+ and operator<<)You are adjusting an allowed temperature range by a delta. Create a class Tempe...
medium○ Not Started
ClassesOperator Overloading
Solve
86
Book Progress (operator-= and operator>=)You are tracking reading progress using current page and total pages. Create a ...
medium○ Not Started
ClassesOperator Overloading
Solve
87
Wallet Deposit/Withdraw (operator+= and operator-=)You are implementing deposits and withdrawals for a wallet balance. Create a cl...
medium○ Not Started
ClassesOperator Overloading
Solve
88
Point2D Equality and Inequality (operator== and operator!=)You are checking if two points are the same location. Create a class Point2D wi...
medium○ Not Started
ClassesOperator Overloading
Solve
139
Derived Class With New MembersYou are given a base class Shape with a protected string color and a constructor...
medium○ Not Started
ClassesInheritance
Solve
140
Polymorphism Through Base PointerYou are given a base class Animal with a virtual function speak() that prints "....
medium○ Not Started
ClassesInheritance
Solve
141
Inheriting and Extending a ConstructorYou are given a base class Person with protected members name (string) and age (...
medium○ Not Started
ClassesInheritance
Solve
142
Override With Base Call and Extra LogicYou are given a base class Logger with a virtual function log() that prints a ti...
medium○ Not Started
ClassesInheritance
Solve
143
Multi-Level Inheritance With OverridesYou are given a base class Vehicle with a protected int speed and a virtual func...
medium○ Not Started
ClassesInheritance
Solve
144
Virtual Function With Return ValueYou are given a base class Employee with protected members name (string) and bas...
medium○ Not Started
ClassesInheritance
Solve
152
BankAccount Withdraw ExceptionCreate a class `BankAccount` with a private `double balance`. Requirements: 1. ...
medium○ Not Started
ClassesExceptions
Solve
153
Custom Exception ClassCreate a custom exception class `ValidationError` that inherits from `std::excep...
medium○ Not Started
ClassesExceptions
Solve
177
Friend Function Comparing Two ObjectsA friend function can read the private members of EVERY object passed to it. Cre...
medium○ Not Started
ClassesFriend Functions
Solve
178
Friend Function That Builds a New ObjectCreate a class Box with a private int volume set by its constructor, plus a publ...
medium○ Not Started
ClassesFriend Functions
Solve