Skip to content

pb5456556-tech/java-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“˜ README for C Adventure Game

# C Adventure Game

## 🎯 Objective
A simple **text-based adventure game** written in C.  
The goal is to practice control flow, loops, and user interaction.

---

## πŸš€ How to Compile & Run
1. Open a terminal in the project folder.
2. Compile the program:
   ```bash
   gcc adventure_game.c -o adventure_game
  1. Run it:

    ./adventure_game

πŸ•ΉοΈ Sample Gameplay

Input:

Choose a path (left/right): left

Output:

You encounter a friendly dragon. It offers you treasure!
Do you accept? (yes/no): yes
The dragon rewards you with gold. You win!

πŸ“š Concepts Practiced

  • if / else if / else
  • User input handling
  • String comparison
  • Simple branching storyline

---

# πŸ“˜ README for **Java Calculator**

```markdown
# Java Calculator

## 🎯 Objective
A simple calculator program written in **Java**.  
It supports addition, subtraction, multiplication, and division.  
The goal is to practice methods and user input handling in Java.

---

## πŸš€ How to Compile & Run
1. Open a terminal in the project folder.
2. Compile the program:
   ```bash
   javac Calculator.java
  1. Run it:

    java Calculator

πŸ–₯️ Sample Input/Output

Input:

Enter first number: 10
Enter operator (+, -, *, /): +
Enter second number: 20

Output:

Result: 30.0

πŸ“š Concepts Practiced

  • Methods (add, subtract, multiply, divide)
  • Switch statement
  • Handling division by zero
  • Basic user input with Scanner

---

πŸ‘‰ Do you want me to make **one README file for each project separately** (so you upload them in their own repos), or a **single README covering both projects together**?

About

This is Java Program.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages