Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deerborg/oop-try
DummyBox is a Java project aimed at demonstrating object-oriented programming principles. It includes features such as creating profile cards, calculating age and zodiac signs, computing geometric shapes' areas, performing BMI calculations, and playing the dice game Craps. Visit the GitHub repository for more details and contributions.
https://github.com/deerborg/oop-try
Last synced: about 2 months ago
JSON representation
DummyBox is a Java project aimed at demonstrating object-oriented programming principles. It includes features such as creating profile cards, calculating age and zodiac signs, computing geometric shapes' areas, performing BMI calculations, and playing the dice game Craps. Visit the GitHub repository for more details and contributions.
- Host: GitHub
- URL: https://github.com/deerborg/oop-try
- Owner: deerborg
- Created: 2024-02-16T05:47:58.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-05-08T23:06:48.000Z (8 months ago)
- Last Synced: 2024-05-09T00:25:09.307Z (8 months ago)
- Language: Java
- Homepage:
- Size: 41 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DummyBox - uCard
This Java program includes functionalities for creating a profile card, calculating age, displaying birthdate information, determining horoscope, calculating area (for square, rectangle, and circle), calculating Body Mass Index (BMI), and an example of a dice game (Craps).
## How to Use
1. Include the `uCard` class in your project.
2. Create an object of `uCard`.
3. Create a profile card using the `create_card()` method.
4. Use other methods to perform desired operations.## Methods
- `create_card()`: Creates a profile card.
- `age(int year)`: Calculates age.
- `birthDay(int year, int month, int day)`: Displays birthdate information.
- `horoscope(int day, int month)`: Determines horoscope based on birthdate.
- `area_calculation()`: Calculates area (for square, rectangle, and circle).
- `bmi_calculation()`: Calculates Body Mass Index (BMI).
- `crapsGame()`: Provides an example of a dice game.## Examples
```java
// Creating a profile card
uCard example = new uCard();
example.create_card();// Calculating age
example.age(1990);// Displaying birthdate information
example.birthDay(1990, 5, 21);// Determining horoscope
example.horoscope(21, 5);// Calculating area
example.area_calculation();// Calculating Body Mass Index (BMI)
example.bmi_calculation();// Example of a dice game
example.crapsGame();