Skip to content

Commit e423ac7

Browse files
authored
Update README.md
1 parent 45b65de commit e423ac7

File tree

1 file changed

+62
-93
lines changed

1 file changed

+62
-93
lines changed

README.md

Lines changed: 62 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,85 @@
1-
# Java Calculator
2-
This is a Calculator(written in Java) which is use to perform Mathematical Operations on numbers of your choice like:
3-
<br>
4-
Addition,Substraction,Multiplication,Division,Modulus,Square,Cube,Average,Percentage.
1+
## 🧮 Java Calculator
52

6-
# Features:
7-
The Calculator have features are as follows:
8-
<br>
9-
1)Addition
10-
<br>
11-
2)Substraction
12-
<br>
13-
3)Multiplication
14-
<br>
15-
4)Division
16-
<br>
17-
5)Modulus
18-
<br>
19-
6)Square
20-
<br>
21-
7)Cube
22-
<br>
23-
8)Average
24-
<br>
25-
9)Percentage
26-
<br>
3+
Welcome to **Java Calculator**, a simple yet powerful **console-based calculator** built using **pure Java**.
4+
It supports multiple arithmetic operations and is designed for beginners learning Java fundamentals.
275

28-
# Usage
29-
Compile and run it
30-
<br>
31-
<!-- Colorful terminal-style code block with Copy button -->
32-
<!-- Stylish colorful code block with Copy button -->
33-
<div style="
34-
position: relative;
35-
background-color: #0d1117;
36-
border-radius: 10px;
37-
padding: 1rem 1.2rem;
38-
font-family: 'Courier New', monospace;
39-
color: #e6edf3;
40-
box-shadow: 0 4px 10px rgba(0,0,0,0.4);
41-
display: inline-block;
42-
min-width: 20px;
43-
overflow-x: auto;
44-
">
45-
<button
46-
onclick="navigator.clipboard.writeText('javac Calculator.java')"
47-
style="
48-
position: absolute;
49-
top: 1px;
50-
right: 4px;
51-
background: #21262d;
52-
color: #c9d1d9;
53-
border: 1px solid #30363d;
54-
border-radius: 6px;
55-
padding: 4px 8px;
56-
font-size: 12px;
57-
cursor: pointer;
58-
transition: all 0.2s ease;
59-
"
60-
onmouseover="this.style.background='#30363d'"
61-
onmouseout="this.style.background='#21262d'"
62-
</button>
6+
---
637

64-
<pre style="margin: 0; font-size: 16px;">
65-
<code>
66-
<span style="color:#00e676;">javac</span> <span style="color:#f8f8f2;">Calculator</span><span style="color:#f78c6c;">.java</span>
67-
</code>
68-
</pre>
69-
</div>
8+
## ✨ Features
709

10+
✅ Addition
11+
✅ Subtraction
12+
✅ Multiplication
13+
✅ Division
14+
✅ Modulus (Remainder)
15+
✅ Square
16+
✅ Cube
17+
✅ Average
18+
✅ Percentage
7119

72-
<br>
73-
Follow the menu options in the calculator.
20+
---
7421

75-
# Example:
76-
Choose a Mathematical operation:
77-
<br>
78-
1)Addition
79-
<br>
80-
2)Substraction
81-
<br>
82-
3)Multiplication
83-
<br>
84-
4)Division
85-
<br>
86-
5)Modulus
22+
## ⚙️ Getting Started
23+
24+
### 🧰 Prerequisites
25+
Make sure you have the following installed:
26+
- **Java JDK 8 or above**
27+
- A code editor or IDE like VS Code, IntelliJ IDEA, or Eclipse
28+
29+
---
30+
31+
## 🌱 Why This Project?
32+
💡 “Small steps lead to big learning.”
8733
<br>
88-
6)Square
34+
This was my first GitHub Java project, created to practice:
8935
<br>
90-
7)Cube
36+
Java basics (variables, loops, conditionals)
9137
<br>
92-
8)Average
38+
Input/output handling
9339
<br>
94-
9)Percentage
40+
Arithmetic operations
9541
<br>
96-
1) Addition (Type any integer value from 1-9).
42+
Console interaction
43+
44+
---
45+
46+
## 🚧 Future Enhancements
9747
<br>
98-
Enter integer one:
48+
✨ Support for floating-point numbers
9949
<br>
100-
12
50+
✨ Add error handling (like division by zero)
10151
<br>
102-
Enter integer two:
52+
✨ Create a Graphical User Interface (GUI) version
10353
<br>
104-
13
54+
✨ Add scientific operations (roots, powers, logs)
10555
<br>
106-
The Addition between 12 and 13 is: 25
107-
108-
109-
56+
✨ Include unit tests for validation
11057

58+
---
11159

60+
## 🤝 Contributing
11261

62+
Contributions, issues, and feature requests are welcome!
63+
Feel free to:
64+
<br>
65+
⭐ Star this repo
66+
<br>
67+
🍴 Fork it
68+
<br>
69+
💬 Open an issue
11370

71+
---
11472

73+
### 1️⃣ Clone the Repository
74+
<br>
75+
git clone https://github.com/Parth2753/Java-Calculator.git
11576

77+
---
11678

79+
## 💬 Coder
80+
👤 Parth Rohilla
81+
<br>
82+
“Code. Compile. Create. Repeat.”
83+
<br>
84+
📦 GitHub Profile-https://github.com/Parth2753
85+
🔧 Submit a pull request

0 commit comments

Comments
 (0)