TurboTrove is a management system for a car dealership. It allows users to add, view, and manage showrooms, employees, and cars.
- Add new showrooms, employees, and cars
- View details of existing showrooms, employees, and cars
- Exit the program at any time
- Run the
Mainclass to start the program. - The main menu will be displayed, with options to add showrooms, employees, cars, or view existing data.
- Choose an option by entering the corresponding number.
- Follow the prompts to add or view data.
- To exit the program, enter
0at any time.
uitlity: An interface that defines theget_details()andset_details()methods.Showroom: A class that implements theuitlityinterface, representing a showroom.Employees: A class that implements theuitlityinterface, representing an employee.Cars: A class that implements theuitlityinterface, representing a car.Main: The main class that contains the program's entry point and logic.
- The program uses arrays to store showrooms, employees, and cars, with a maximum capacity of 5 each.
- The
main_menu()method is used to display the main menu and handle user input. - The
set_details()method is used to set the details of a showroom, employee, or car. - The
get_details()method is used to display the details of a showroom, employee, or car. - The program uses a
Scannerobject to read user input.
The code is organized into the following files:
Main.java: The main class that contains the program's entry point and logic.Showroom.java: The class that represents a showroom.Employees.java: The class that represents an employee.Cars.java: The class that represents a car.
TurboTrove uses continuous integration and continuous deployment (CI/CD) pipelines for automated builds, code quality checks, and deployment to Azure Web App. The pipeline is managed using GitHub Actions, SonarCloud for code analysis, and Azure Web App for deployment.
-
GitHub Actions: Automates the build and deployment process. The pipeline triggers on code push and pull requests to run the following jobs:
- Build the Java project.
- Run SonarCloud code analysis.
- Deploy the application to Azure Web App.
-
SonarCloud: Ensures that the code quality remains high by running static code analysis. It generates reports on code smells, bugs, and code coverage.
-
Azure Web App: The Java application is deployed to an Azure Web App for easy accessibility and scalability.
This is a basic implementation and may not include all the features and error handling that a real-world management system would require.
This badge represents the current code quality status as analyzed by SonarCloud. Click on the badge to view detailed analysis reports and metrics.