Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.02 KB

readme.md

File metadata and controls

40 lines (26 loc) · 1.02 KB

Tasks:

1) Converter.

Implement a program that will convert minutes to seconds and print it in console. Implement program in the code snippet below:

public class TimeConvertor {
    public void convert(float minutes) {
    }
}

where minutes - variable to be converted.


2) Three stuck vars .

Create 3 int variables with names: first, second, third. Initialize them with values = 1, 10, 100. Print all of them to console within one System.out.println statement (with no spaces between). Implement program in scope of the following code snippet:

    public class ThreeStuckVars {
       public static void main(String[] args) {
       }
    }

3) Broken calculator.

Create a program that will perform simple division of numbers, you will be given a number and your task will be to create a program that divides a number by 5 and print correct result:

public class NumberDivider {
    void divide(int toBeDivided) {
    }
}

where toBeDivided - variable to be divided.