Java 40-Day Impact Program Report (Days 1–5)
Overview
This report summarizes the learning and practice activities from the first five days of a 40-
day Java programming program. Each day includes topics covered, coding exercises, and
observations.
Day 1: Introduction to Java
Topics Covered
- Introduction to Java
- Basic Java Syntax
Practice Questions
1. Program to add two numbers (simple and using Scanner)
2. Program to calculate the sum of the first and last digit of a 4-digit number
3. Program to compute the sum of all 3-digit numbers
Day 2: Conditional & Control Statements
Topics Covered
- Conditional Statements (if, else, etc.)
- Control Statements (loops, etc.)
Practice Questions – Conditional Statements
1. Reverse a 3-digit number
2. Determine if a number is odd, even, or invalid (for single digits)
3. Determine if a number is “weird” or “not weird”
4. Identify “meatball sandwich” or “trendy number”
5. Hotel tariff calculator
Practice Questions – Control Statements
1. Check for special numbers
2. Generate Fibonacci series (Amoeba style)
3. Generate Collatz sequence
4. Treasure Box Game
Day 3: [Absent]
No activity due to heavy rainfall.
Day 4: Number Theory and Nested Loops
Topics Covered
- Number properties
- Nested loops
Practice Questions
1. Adam Number check
2. Kaprekar Number check
3. Leetcode Problem 70 (Climbing Stairs)
Day 5: Patterns and Arrays
Topics Covered
- Various pattern printing techniques
- Introduction to Arrays
Practice Questions
1. Print even numbers from an array
2. Check if two arrays are the same