Skip to content

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.

Notifications You must be signed in to change notification settings

ivanakerkez/java-oop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

java-oop

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.

homework-01

Task 1 (Worker):

  • 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.

Task 2 (Movie):

  • Create a class Movie with attributes title, director, and release year.
  • Create two different movies and determine which movie is more recent.

homework-02

Task 1 (Currency Converter):

  • 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.

Task 2 (Java Math):

  • 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).

homework-03

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages