| Title | Open | |||
|---|---|---|---|---|
| 4 | Greeter ClassCreate a class Greeter with a method Greet(string name) that RETURNS the string "Hello, {name}!" (do not print inside the method). | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 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". | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 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". | easy | Not started | Solve |
| 208 | Point ClassCreate a class Point with a constructor taking x and y, and a ToText() method that returns "(x, y)". | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 210 | Rectangle Perimeter ClassCreate a class Rectangle with a constructor taking width and height and a Perimeter() method returning 2 (width + height). | easy | Not started | Solve |
| 211 | Box Volume ClassCreate a class Box with a constructor taking length, width, and height, and a Volume() method returning their product. | easy | Not started | Solve |
| 212 | Temperature ClassCreate a class Temperature with a constructor taking a Celsius value and a ToFahrenheit() method returning C 9 / 5 + 32. | easy | Not started | Solve |
| 213 | Student ClassCreate a class Student with a constructor taking a name and a score, plus GetName() and GetScore() methods. | easy | Not started | Solve |
| 214 | Accumulator ClassCreate a class Accumulator with a running total (starting 0), an Add(int n) method, and a Total() method. | easy | Not started | Solve |
| 215 | Greeter With NameCreate a class NamedGreeter whose constructor stores a name, and a Greet() method returning "Hello, name!". | easy | Not started | Solve |
| 216 | Square ClassCreate a class Square with a constructor taking the side length and an Area() method returning side side. | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 218 | Multiplier ClassCreate a class Multiplier whose constructor stores a factor, and an Apply(int n) method that returns n times the factor. | easy | Not started | Solve |
| 307 | Rectangle Area ClassCreate a class named Rectangle that stores a width and a height in two integer fields. | easy | Not started | Solve |
| 308 | Barking Dog ClassCreate a class named Dog that stores the dog's name in a string field. | easy | Not started | Solve |
| 309 | Person Introduction ClassCreate a class named Person that stores a name (string) and an age (int) in two fields. | easy | Not started | Solve |
| 310 | Square Perimeter ClassCreate a class named Square that stores the length of one side in an integer field. | easy | Not started | Solve |
| 311 | Employee Pay ClassCreate a class named Employee that stores an hourly wage and the number of hours worked in two integer fields. | easy | Not started | Solve |
| 312 | Book Describe ClassCreate a class named Book that stores a title and an author, both as string fields. | easy | Not started | Solve |
| 313 | Freezing Thermometer ClassCreate a class named Thermometer that stores a temperature in Fahrenheit in an integer field. | easy | Not started | Solve |
| 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). | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 521 | Full Name PropertyCreate a class Contact whose constructor stores a first and last name in private fields. | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 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>". | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 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. | easy | Not started | Solve |
| 529 | Speedometer ClassCreate a class Speedometer with a public int field Speed (starts at 0). | easy | Not started | Solve |
| 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. | medium | Not started | Solve |
| 219 | Override ToStringCreate a class Person with a name and age, and OVERRIDE ToString() to return "name (age)". | medium | Not started | Solve |
| 220 | Counter with ResetCreate a class Counter with Increment(), Reset() (sets the count back to 0), and GetCount(). | medium | Not started | Solve |
| 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. | medium | Not started | Solve |
| 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(). | medium | Not started | Solve |
| 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). | medium | Not started | Solve |
| 314 | Bank Account Deposit and Withdraw ClassCreate a class named BankAccount that stores a balance in an integer field. | medium | Not started | Solve |
| 315 | Student Letter Grade ClassCreate a class named Student that stores three integer test scores (math, science, and english) in three fields. | medium | Not started | Solve |
| 316 | Sum Up To N ClassCreate a class named SumCalculator that stores a single integer field N. | medium | Not started | Solve |
| 530 | Instance Counter ClassCreate a class Widget that keeps a shared count of how many instances have been created. | medium | Not started | Solve |
| 531 | Age Validator ClassCreate a class Human with a public property Age backed by a private field. | medium | Not started | Solve |
| 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. | medium | Not started | Solve |
| 533 | Constructor Overloading ClassCreate a class Note with a private string field text. | medium | Not started | Solve |
| 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). | medium | Not started | Solve |
| 535 | Gradebook Average ClassCreate a class Gradebook whose constructor stores an int[] of grades. | medium | Not started | Solve |
| 536 | Elevator ClassCreate a class Elevator with a public int field Floor (starts at 0). | medium | Not started | Solve |
| 537 | Inventory Item ClassCreate a class InventoryItem with a public int field Quantity set by the constructor. | medium | Not started | Solve |
| 538 | Traffic Light ClassCreate a class TrafficLight that starts on Green. | medium | Not started | Solve |
| 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". | hard | Not started | Solve |
| 225 | Stack ClassCreate a class IntStack backed by a List<int> with Push(int n), Pop() (removes and returns the top item), and Count(). | hard | Not started | Solve |
| 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. | hard | Not started | Solve |
| 539 | Number Queue ClassCreate a class NumberQueue that behaves first-in first-out. | hard | Not started | Solve |
| 540 | Shopping Cart ClassCreate a class ShoppingCart that stores item prices in a private List<double>. | hard | Not started | Solve |
| 541 | Money Normalizer ClassCreate a class Money whose constructor takes dollars and cents but normalizes them so that every 100 cents becomes 1 dollar. | hard | Not started | Solve |