Skip to content

mjc-school/stage0-module3-task5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages