CJCoding With Joseph
15free / daySign inCreate account
TitleTopicsAction
440
Hello Or QuitShow a two-line menu, `1) Say hello` and `2) Quit`, then read the choice with th...
easy○ Not Started
Menus & Validation
Solve
441
Light Switch MenuA menu switches a light: `1) Turn on` prints `Light is on.`, `2) Turn off` print...
easy○ Not Started
Menus & Validation
Solve
442
Digits Only PleaseAsk `How many tickets? ` (with a space after the question mark) and keep asking,...
easy○ Not Started
Menus & Validation
Solve
443
Yes Or No ConfirmationAsk `Delete everything? (y/n) ` and read one line. Treat `y` or `yes` in any mix...
easy○ Not Started
Menus & Validation
Solve
444
Three Tries For The PasswordThe password is `open-sesame` and the user gets at most three attempts. Each att...
easy○ Not Started
Menus & Validation
Solve
445
Sum Until A Blank LineRead whole numbers one per line with the prompt `Number: ` and add them up until...
easy○ Not Started
Menus & Validation
Solve
446
Average Until DoneRead marks one per line with the prompt `Mark: ` until the word `done`, converti...
easy○ Not Started
Menus & Validation
Solve
447
Aligned Name And AgeRead a name with the prompt `Name: ` and an age with the prompt `Age: ` (keep th...
easy○ Not Started
Menus & Validation
Solve
448
Guess The Secret NumberThe secret number is `42`, declared at the top (no random numbers). Read guesses...
easy○ Not Started
Menus & Validation
Solve
449
Upper Or Lower MenuRead a word with the prompt `Word: `, then show a three-item menu: `1) Upper cas...
easy○ Not Started
Menus & Validation
Solve
450
Letters In Any CaseA letter menu: `A) Add one` adds one to a counter and prints `Count: <n>`, `Q) Q...
easy○ Not Started
Menus & Validation
Solve
451
Add To The CartA cart menu keeps a running total. `1) Add price` reads a price with the prompt ...
easy○ Not Started
Menus & Validation
Solve
452
Choice In RangeRead a menu choice with the prompt `Choice (1-3): ` and keep re-asking, printing...
easy○ Not Started
Menus & Validation
Solve
453
Door Open Or ClosedA door starts closed. `1) Open` prints `Door opened.` and remembers the door is ...
easy○ Not Started
Menus & Validation
Solve
454
Celsius Or FahrenheitA conversion menu: `1) Celsius to Fahrenheit` reads a temperature with the promp...
easy○ Not Started
Menus & Validation
Solve
455
Count The Menu VisitsA two-item menu: `1) Ping` prints `Pong!`, `2) Quit` prints `Pings: <n>` (how ma...
easy○ Not Started
Menus & Validation
Solve
456
Largest Until DoneRead whole numbers one per line with the prompt `Number: ` until the word `done`...
easy○ Not Started
Menus & Validation
Solve
457
Insist On A NameAsk `Name: ` and keep asking, printing `A name is required.` each time, until th...
easy○ Not Started
Menus & Validation
Solve
458
Name List MenuA list of names starts empty. `1) Show names` prints `No names yet.` when the li...
easy○ Not Started
Menus & Validation
Solve
459
Really QuitA menu: `1) Work` prints `Working...`, `2) Quit` asks `Really quit? (y/n) ` and ...
easy○ Not Started
Menus & Validation
Solve
460
Running SubtotalRead prices one per line with the prompt `Price: ` until a blank line. After eac...
easy○ Not Started
Menus & Validation
Solve
461
Counter MenuA counter starts at 0. Show a four-line menu, `1) Add 1`, `2) Subtract 1`, `3) S...
medium○ Not Started
Menus & Validation
Solve
462
Higher Or Lower With AttemptsThe secret number is `57`, declared at the top (no random numbers). Inside a `wh...
medium○ Not Started
Menus & Validation
Solve
463
Pin EntryThe PIN is `2468`. Read entries with the prompt `PIN: ` (stripped) for at most t...
medium○ Not Started
Menus & Validation
Solve
464
People TableRead people as pairs of lines, a name with the prompt `Name: ` and an age with t...
medium○ Not Started
Menus & Validation
Solve
465
Ask Until Yes Or NoAsk `Continue? (y/n) ` and keep asking, printing `Please answer y or n.` each ti...
medium○ Not Started
Menus & Validation
Solve
466
Age Between LimitsAsk `Age: ` and keep asking, printing `Age must be a whole number from 1 to 120....
medium○ Not Started
Menus & Validation
Solve
467
Lamp Brightness MenuA lamp has a `brightness` from 0 to 3, starting at 0. Show the menu `1) Brighter...
medium○ Not Started
Menus & Validation
Solve
468
Evens And Odds Until DoneRead whole numbers one per line with the prompt `Number: ` until the word `done`...
medium○ Not Started
Menus & Validation
Solve
469
Sorted Names MenuA list of names starts empty. Show the menu `1) Add name`, `2) Show sorted`, `3)...
medium○ Not Started
Menus & Validation
Solve
470
Kilometres And MilesA letter menu: `K) Kilometres to miles`, `M) Miles to kilometres`, `Q) Quit`. Re...
medium○ Not Started
Menus & Validation
Solve
471
Add Or Multiply MenuShow the menu `1) Add`, `2) Multiply`, `3) Quit` and read the choice with the pr...
medium○ Not Started
Menus & Validation
Solve
472
To-Do List ManagerWrite a to-do list kept in a list of strings that starts empty. Show the menu `1...
hard○ Not Started
Menus & Validation
Solve
473
Text CalculatorWrite a text calculator that loops until the user quits. Each pass reads an oper...
hard○ Not Started
Menus & ValidationOperators
Solve
474
Shopping CartWrite a shopping cart that keeps item names and prices in two parallel lists tha...
hard○ Not Started
Menus & Validation
Solve
475
Grade Book MenuWrite a grade book that keeps student names and whole-number marks in two parall...
hard○ Not Started
Menus & Validation
Solve