This repo contains some of my OOP assignments and projects. More exercises for practice will be added in the future . . .
NOTE: I'm not sure whether my program is working properly, perhaps there are a few logical bugs, please feel free to contact me or open issues to fix these bugs. Thank you so much!
PLEASE GIVE MY CREDIT OR MENTION ME @teddythinh WHEN USING. THANKS !
Contributions are encouraged. Simply contact me via email or any of the social media platforms listed in my profile. Thanks!
| Number | Context | Description |
|---|---|---|
| 1 | Properties, Constructors, Behaviours | Create Getters, Setters, Constructors, Methods. (Beginner should know this) |
| 2 | Dynamic Array | Use class to create a dynamic array. |
| 3 | Dice | Create a dice to roll from 1 to 6 points, calculate the total points. |
| 4 | Phone Number Generator | Generate some phone numbers with mobile network operators. |
| 5 | Vietnamese Fullname Generator | Generate male and female Vietnamese fullname using some popular available first, middle, last name in Vietnam. |
| 6 | Email Generator Using Vietnamese Fullname Generator | Generate email with the first character of Vietnamese names and some domain names. |
| 7 | Ho Chi Minh Address Generator | Generate Ho Chi Minh city's addresses with available street names, wards, districts. |
| 8 | Birthday Generator | Generate some birthdays with "The 12 Months of the Year" rules. |
| 9 | Citizen ID Generator | Generate some Citizen IDs with the given format. |
| 10 | Point 3D | Create a 3D Point inherited from 2D Point, request user to input the valid point and save to the file. |
| 11 | Fractions to lowest term | Read file, calculate and change the fractions to the lowest term, to decimal and to percentage. |
| 12 | Fractions Display | Generate random fractions, calculate and change the fractions to the lowest term, to decimal and to percentage. |
| 13 | Fractions Keyboard Input | Input the fractions, calculate and change the fractions to the lowest term, to decimal and to percentage. |
| 14 | Calculate Perimeter And Area Of 3 Shapes | Create 3 shapes: rectangle, circle and triangle using inheritance, read the attributes of 3 shapes and calculate perimeter and area of each shapes. |
| 15 | Factory, Singleton, Prototype, Pool design patterns | The concept is the same as exercise 14 but using Factory, Singleton, Prototype, Pool design patterns. |
| 16 | Soldier game hiting each other | Make a game with 3 champions, create 2 teams, decide which team plays first. |
| 17 | Check Prime number and Perfect number | Check if number is prime or number is perfect or not and use regex to check if user input right number or not. (I commented what is a perfect number in the code) |
| Number | Context | Description |
|---|---|---|
| 1 | Project Student generator | My first project is about read file, generate student with names, gpa, addresses, birthdays, phone numbers, emails. (Applying Three-tier Architecture or Three Layered Architecture) |
| 2 | Project Employees Salary | My second project is about read file, using inheritance to manage employees, and calculate their salary. (Applying Factory, Singleton, Prototype, Pool design patterns) |