Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
KaiquanMah
/
TurkuBasicOOPinJava
like
0
Running
App
Files
Files
Community
78bbc3c
TurkuBasicOOPinJava
/
Week 1: Types, condition clauses and loops
31.2 kB
Ctrl+K
Ctrl+K
1 contributor
History:
25 commits
KaiquanMah
Create 19. Smaller powers of two
1eb8a79
verified
10 months ago
10a. Logical operators
Safe
567 Bytes
Create 10a. Logical operators
about 1 year ago
10b. Print ticket price
Safe
1.7 kB
int age = Integer.valueOf(reader.nextLine());
about 1 year ago
11. Leap year?
Safe
1.85 kB
boolean div4 = ((yr%4)==0);
about 1 year ago
12a . Counter
Safe
1.18 kB
Create 12a . Counter
10 months ago
12b. Sum, max of numbers
Safe
1.57 kB
Create 12b. Sum, max of numbers
10 months ago
13a. Variable visibility
Safe
1.02 kB
Create 13a. Variable visibility
10 months ago
13b. Print the numbers 1...16 every third number
Safe
260 Bytes
Create 13b. Print the numbers 1...16 every third number
10 months ago
14a. for loops
Safe
1.74 kB
Create 14a. for loops
10 months ago
14b. How many loops
Safe
223 Bytes
Create 14b. How many loops
10 months ago
15. From one to maximum and back
Safe
869 Bytes
Create 15. From one to maximum and back
10 months ago
16B. The squares of the numbers
Safe
569 Bytes
Create 16B. The squares of the numbers
10 months ago
16a. continue clause
Safe
1.05 kB
Create 16a. continue clause
10 months ago
17. Number triangle
Safe
1.14 kB
Create 17. Number triangle
10 months ago
18. Positives and negatives
Safe
1.71 kB
Create 18. Positives and negatives
10 months ago
19. Smaller powers of two
Safe
1.02 kB
Create 19. Smaller powers of two
10 months ago
2. Nordic countries in alphabetical order
Safe
1.41 kB
System.out.println(<some string>);
about 1 year ago
3. Print the whole sentence
Safe
529 Bytes
System.out.print("<some str no newline>");
about 1 year ago
4. Match expressions and results
Safe
2.8 kB
Create 4. Match expressions and results
about 1 year ago
5. Calculate sum, multiplication and division
Safe
1.41 kB
first*1.0 / second
about 1 year ago
6. Print a greeting message
Safe
2.83 kB
Scanner reader = new Scanner(System.in);
about 1 year ago
7. Minutes in a day
Safe
1.11 kB
int days = Integer.valueOf(reader.nextLine())
about 1 year ago
8a. Condition clauses
Safe
1.64 kB
if, else if, else
about 1 year ago
8b. Even or odd?
Safe
1.56 kB
int remainder = num % 2;
about 1 year ago
9. Calculate the total salary
Safe
1.48 kB
Create 9. Calculate the total salary
about 1 year ago