CJCoding With Joseph
15free / daySign inCreate account
TitleOpen
4
Greeter ClassCreate a class Greeter with a method Greet(string name) that RETURNS the string "Hello, {name}!" (do not print inside the method).
easyNot startedSolve
204
Counter ClassCreate a class Counter with a private int field (starting at 0), an Increment() method that adds 1, and a GetCount() method that returns the current value.
easyNot startedSolve
205
Person ClassCreate a class Person with a constructor that takes a name and an age, and a Describe() method that returns "name is age".
easyNot startedSolve
206
Bank Account DepositCreate a class BankAccount with a constructor that sets the starting balance, a Deposit(amount) method that adds to the balance, and a GetBalance() method.
easyNot startedSolve
207
Dog ClassCreate a class Dog with a constructor that takes a name (stored in a public Name field) and a Speak() method that returns "Woof".
easyNot startedSolve
208
Point ClassCreate a class Point with a constructor taking x and y, and a ToText() method that returns "(x, y)".
easyNot startedSolve
209
Light SwitchCreate a class LightSwitch with a private bool (starting false), a TurnOn() method that sets it true, and an IsOn() method that returns it.
easyNot startedSolve
210
Rectangle Perimeter ClassCreate a class Rectangle with a constructor taking width and height and a Perimeter() method returning 2 (width + height).
easyNot startedSolve
211
Box Volume ClassCreate a class Box with a constructor taking length, width, and height, and a Volume() method returning their product.
easyNot startedSolve
212
Temperature ClassCreate a class Temperature with a constructor taking a Celsius value and a ToFahrenheit() method returning C 9 / 5 + 32.
easyNot startedSolve
213
Student ClassCreate a class Student with a constructor taking a name and a score, plus GetName() and GetScore() methods.
easyNot startedSolve
214
Accumulator ClassCreate a class Accumulator with a running total (starting 0), an Add(int n) method, and a Total() method.
easyNot startedSolve
215
Greeter With NameCreate a class NamedGreeter whose constructor stores a name, and a Greet() method returning "Hello, name!".
easyNot startedSolve
216
Square ClassCreate a class Square with a constructor taking the side length and an Area() method returning side side.
easyNot startedSolve
217
Toggle ClassCreate a class Toggle with a private bool (starting false) and a Flip() method that switches it between true and false, plus a Get() method.
easyNot startedSolve
218
Multiplier ClassCreate a class Multiplier whose constructor stores a factor, and an Apply(int n) method that returns n times the factor.
easyNot startedSolve
307
Rectangle Area ClassCreate a class named Rectangle that stores a width and a height in two integer fields.
easyNot startedSolve
308
Barking Dog ClassCreate a class named Dog that stores the dog's name in a string field.
easyNot startedSolve
309
Person Introduction ClassCreate a class named Person that stores a name (string) and an age (int) in two fields.
easyNot startedSolve
310
Square Perimeter ClassCreate a class named Square that stores the length of one side in an integer field.
easyNot startedSolve
311
Employee Pay ClassCreate a class named Employee that stores an hourly wage and the number of hours worked in two integer fields.
easyNot startedSolve
312
Book Describe ClassCreate a class named Book that stores a title and an author, both as string fields.
easyNot startedSolve
313
Freezing Thermometer ClassCreate a class named Thermometer that stores a temperature in Fahrenheit in an integer field.
easyNot startedSolve
517
Circle Area ClassCreate a class Circle with a constructor that stores a radius and an Area() method that returns the circle's area (pi times radius squared).
easyNot startedSolve
519
Employee Raise ClassCreate a class Employee with a public field Salary set by the constructor and a GiveRaise(double amount) method that increases Salary by amount.
easyNot startedSolve
520
Product Property ClassCreate a class Product that exposes two auto-implemented properties: a string named Name and a double named Price, both with public get and set.
easyNot startedSolve
521
Full Name PropertyCreate a class Contact whose constructor stores a first and last name in private fields.
easyNot startedSolve
522
Triangle Area ClassCreate a class Triangle whose constructor stores a base length and a height, and an Area() method that returns half of base times height.
easyNot startedSolve
523
Cylinder Volume ClassCreate a class Cylinder whose constructor stores a radius and a height, and a Volume() method that returns pi times radius squared times height.
easyNot startedSolve
524
High Score TrackerCreate a class ScoreBoard with a public int field HighScore (starts at 0) and a Submit(int score) method that updates HighScore only when the new score is greater than the current one.
easyNot startedSolve
525
Name Formatter ClassCreate a class NameCard whose constructor stores a first and last name, and a Formatted() method that returns the name as "<last>, <first>".
easyNot startedSolve
526
Password Length CheckerCreate a class PasswordChecker with an IsValid(string password) method that returns true when the password is at least 8 characters long and false otherwise.
easyNot startedSolve
527
Odometer ClassCreate a class Odometer with a public double field Miles (starts at 0) and an AddTrip(double distance) method that adds the trip distance onto Miles.
easyNot startedSolve
528
Discount Calculator ClassCreate a class Discount with a FinalPrice(double price, double percentOff) method that returns the price after taking off the given percentage.
easyNot startedSolve
529
Speedometer ClassCreate a class Speedometer with a public int field Speed (starts at 0).
easyNot startedSolve
5
Rectangle ClassCreate a class Rectangle with a constructor that takes a width and a height (ints) and an Area() method that returns width times height.
mediumNot startedSolve
219
Override ToStringCreate a class Person with a name and age, and OVERRIDE ToString() to return "name (age)".
mediumNot startedSolve
220
Counter with ResetCreate a class Counter with Increment(), Reset() (sets the count back to 0), and GetCount().
mediumNot startedSolve
221
Independent InstancesUsing your Counter class (a private count, Increment(), GetCount()), the tester creates TWO separate counters to show each object has its own state.
mediumNot startedSolve
222
Bank Account with WithdrawCreate a class BankAccount with a starting balance, Deposit(amount), Withdraw(amount) (only subtract if the balance is enough, otherwise do nothing), and GetBalance().
mediumNot startedSolve
223
Timer ClassCreate a class Timer that starts at 0 seconds, with a Tick(int seconds) method that adds time and a Format() method that returns the elapsed time as "M:SS" (minutes and zero-padded seconds).
mediumNot startedSolve
314
Bank Account Deposit and Withdraw ClassCreate a class named BankAccount that stores a balance in an integer field.
mediumNot startedSolve
315
Student Letter Grade ClassCreate a class named Student that stores three integer test scores (math, science, and english) in three fields.
mediumNot startedSolve
316
Sum Up To N ClassCreate a class named SumCalculator that stores a single integer field N.
mediumNot startedSolve
530
Instance Counter ClassCreate a class Widget that keeps a shared count of how many instances have been created.
mediumNot startedSolve
531
Age Validator ClassCreate a class Human with a public property Age backed by a private field.
mediumNot startedSolve
532
Vector2D Add ClassCreate a class Vector2D with public int fields X and Y set by the constructor, and an Add(Vector2D other) method that returns a NEW Vector2D whose components are the sums of the two vectors.
mediumNot startedSolve
533
Constructor Overloading ClassCreate a class Note with a private string field text.
mediumNot startedSolve
534
Clock Display ClassCreate a class Clock whose constructor stores hours and minutes, and a Display() method that returns the time as H:MM where the minutes are always shown with two digits (a leading zero when needed).
mediumNot startedSolve
535
Gradebook Average ClassCreate a class Gradebook whose constructor stores an int[] of grades.
mediumNot startedSolve
536
Elevator ClassCreate a class Elevator with a public int field Floor (starts at 0).
mediumNot startedSolve
537
Inventory Item ClassCreate a class InventoryItem with a public int field Quantity set by the constructor.
mediumNot startedSolve
538
Traffic Light ClassCreate a class TrafficLight that starts on Green.
mediumNot startedSolve
224
Fraction ClassCreate a class Fraction with a numerator and denominator, a Multiply(Fraction other) method that returns a NEW Fraction (multiply numerators and denominators), and an override of ToString() returning "n/d".
hardNot startedSolve
225
Stack ClassCreate a class IntStack backed by a List<int> with Push(int n), Pop() (removes and returns the top item), and Count().
hardNot startedSolve
226
Roster ClassCreate a class Roster backed by a List<string> with an Add(string name) method and a Contains(string name) method returning true/false, plus a Size() method.
hardNot startedSolve
539
Number Queue ClassCreate a class NumberQueue that behaves first-in first-out.
hardNot startedSolve
540
Shopping Cart ClassCreate a class ShoppingCart that stores item prices in a private List<double>.
hardNot startedSolve
541
Money Normalizer ClassCreate a class Money whose constructor takes dollars and cents but normalizes them so that every 100 cents becomes 1 dollar.
hardNot startedSolve