← all categories
Java Basics
-
Declare a student record 1.2
🌶️
A student is taking 6 courses, has a GPA of 3.5, is currently enrolled, and is named Mari…
-
Print two lines with one statement 1.3
🌶️
Write code in the box that prints these two lines, using a single System.out.println stat…
-
Seconds to minutes and seconds 1.3
🌶️🌶️
The variable totalSeconds holds a length of time in seconds. The three locked lines at th…
-
Split a two-digit number 1.3
🌶️
The variable number holds a two-digit whole number. The two locked lines at the bottom pr…
-
Swap two values 1.4
🌶️🌶️
The program below gives first and second their starting values, and its last two lines (l…
-
Update an account balance 1.4
🌶️
The variable balance holds the amount in an account, deposit is a deposit being made, and…
-
Round to the nearest whole number 1.5
🌶️🌶️
The variable temperature holds a positive temperature with a decimal part, like 71.6. The…
-
printAverage 1.5
🌶️
The method below is supposed to calculate the average number of points scored per game an…
-
Average of four test scores 1.5
🌶️🌶️
test1, test2, test3 and test4 are four whole-number test scores. The locked line at the b…