You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
# Java Programming Exercises
2
2
3
-
This repository contains Java programming exercises divided into two levels: Level 1 and Level 2. The exercises cover various fundamental programming concepts.
3
+
This repository contains a collection of Java programming exercises, structured into different difficulty levels along with a set of Mini Projects. These exercises cover essential programming concepts, providing a hands-on approach for mastering Java.
4
4
5
5
## Table of Contents
6
6
-[Level 1 Tasks](#level-1-tasks)
7
7
-[Level 2 Tasks](#level-2-tasks)
8
-
8
+
-[Mini Projects](#mini-projects)
9
+
9
10
## Level 1 Tasks
10
11
11
12
### Exercise 1: Setting Up Your First Java Program
@@ -241,7 +242,6 @@ This repository contains Java programming exercises divided into two levels: Lev
241
242
```
242
243
Employee Name: [name], Age: [calculated age]
243
244
```
244
-
Sure! Here are the questions for **Exercises 12 and 13** without the code:
245
245
246
246
### Exercise 12: Using Method Overloading for Input Types
247
247
@@ -257,7 +257,6 @@ Sure! Here are the questions for **Exercises 12 and 13** without the code:
257
257
### Exercise 13: Combining Method Overloading with Conditional Logic
258
258
259
259
**Task**: Create a method named `calculateResult` that is overloaded to handle both integers and doubles. Each version of the method should perform different calculations based on the input type.
260
-
261
260
#### Steps to Complete:
262
261
1. Define the overloaded `calculateResult` method:
263
262
- For the integer version, calculate and return both the sum of the integer with a predefined constant (e.g., 10) and the factorial of that integer.
@@ -266,6 +265,15 @@ Sure! Here are the questions for **Exercises 12 and 13** without the code:
266
265
3. Call the double version of `calculateResult` with a sample double (e.g., 200.0) and print the results.
267
266
4. Ensure that the output is clear and well-structured, providing context for each result.
268
267
268
+
## Mini Projects
269
+
270
+
### Mini-Project 1: ATM Simulation Program
271
+
#### Objective:
272
+
Write a Java program that simulates a basic ATM machine. The program allows users to perform the following banking operations:
273
+
- Check balance
274
+
- Deposit money
275
+
- Withdraw money
276
+
- Exit the system
269
277
270
278
## How to Run the Programs
271
279
1. Ensure you have Java Development Kit (JDK) installed on your machine.
0 commit comments