This repository serves as a collection of homework assignments from a QA (manual and automation software testing) course. The repository includes a range of exercises and examples that have been slightly modified for educational purposes. Each file contains explanations provided in the form of comments.
- Create a class Worker that has attributes name, surname, and year of employment.
- Create a method that checks if the employee has been with the company for more than 10 years.
- Create three different workers and check whether each worker has been working for more than 10 years in the company.
- Create a class Movie with attributes title, director, and release year.
- Create two different movies and determine which movie is more recent.
- Create a class Converter that has RSD and currency as attributes.
- Currency is an enum, while RSD is an integer.
- You can input values for RSD and currency through the constructor, and there are setters, but there are no getters.
- Create a method for converting currency to the one specified through the constructor or setter (this means converting RSD to that specific currency).
- Use if-else or switch for comparisons in the method.
- Create an object of type Converter and test it for all currencies - EUR, USD, AUD, CAD, RUB, and GBP.
- Create a static method in the main function that functions like SQL's min, max, sum, avg, and distinct using ArrayList.
- You don't need to create another class except for the main class.
- The methods should accept ArrayList as a parameter.
- The distinct method returns a new ArrayList, while the other methods have return types of int (for min, max, and sum) and double (for avg).