UNIVERSITY OF WEST ATTICA
SCHOOL OF ENGINEERING
DEPARTMENT OF COMPUTER ENGINEERING AND INFORMATICS
University of West Attica · Department of Computer Engineering and Informatics
Software Development Methodologies
Vasileios Evangelos Athanasiou
Student ID: 19390005
Supervision
Supervisor: Georgios Prezerakos, Professor
Co-supervisor: Angelos Georgoulas, Assistant Professor
Athens, March 2023
This guide explains how to set up, build, and run the project on your local machine.
Before running the project, ensure the following tools are installed:
-
Java Development Kit (JDK)
Version 8 or higher is recommended. -
Text Editor or IDE
- Text editors: Notepad++, VS Code, Sublime Text
- IDEs: IntelliJ IDEA, Eclipse, NetBeans
-
Terminal / Command Prompt Used to compile and run Java programs.
Organize the project files inside a single directory.
The project should contain at least the following Java files:
Vehicle.java
Car.java
Plane.java
Main.javaDescription
| File | Purpose |
|---|---|
Vehicle.java |
Base class containing shared vehicle attributes |
Car.java |
Derived class representing cars |
Plane.java |
Derived class representing planes |
Main.java |
Entry point of the program containing main() |
Verify that the classes follow the required specifications.
Must include the following attributes:
makemodelyearweightneedsMaintenance(default: false)tripsSinceMaintenance(default: 0)
Additional attributes:
isDrivinghorsepower
Required behavior:
drive()→ starts drivingstop()→ stops driving and incrementstripsSinceMaintenance
Additional attributes:
isFlyingwingspan
Required behavior:
fly()→ must be rejected ifneedsMaintenanceistrueland()→ stops flying and incrementstripsSinceMaintenance
Maintenance Logic
- Cars: require maintenance after 100 trips
- Planes: require maintenance after 80 trips
Open a terminal inside the project directory and run:
javac *.javaThis compiles all Java source files.
Run the program using:
java Main