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