Skip to content
AgileLogics
Beginner 5 min read

Beginner Projects

Prerequisites: Level 1 — Beginner

Build these with nothing but what Level 1 covered — a class with a main method, Scanner for input, and the standard library.

1. Command-Line Calculator

Read two numbers and an operator (+ - * /) from the user with Scanner, then print the result. Handle division by zero with a friendly message instead of letting the program crash.

2. Number Guessing Game

Generate a random number with new Random().nextInt(100) + 1, then loop, reading guesses and printing "Too high" / "Too low" until the player guesses correctly. Count and print the number of attempts at the end.

3. Temperature Converter

Prompt for a temperature and a unit (C or F), convert it to the other unit, and print the result formatted to one decimal place with String.format.

4. Console To-Do List

Use an ArrayList<String> to hold tasks. Loop, presenting a menu (add / list / remove / quit) built with a switch expression, until the user chooses to quit.

5. Simple Quiz App

Store 5 questions and their correct answers in parallel arrays (or a Map<String, String>). Ask each question, compare the answer with .equalsIgnoreCase(), and print a final score out of 5.