Java Bootcamp – Workbooks and Challenges
)}

Workbook 3.1

From the Java-Bootcamp-Resources, launch the Workbook 3.1 folder.

Screen Shot 2022-10-16 at 3.42.57 PM.png

Ask Java!

The application will ask questions, and each reply must compare to true or false.

Screen Shot 2022-10-16 at 3.44.57 PM.png

Question 1

Hi Java, do I have enough change to buy chips?

Replace the placeholder by comparing the provided variables.

double change = 3.50; double price = 2.50; System.out.println("Java: " + (placeholder) + "\n");

Questions 2 to 5

Repeat this process for the remaining questions.

Run your code.


Visualizing the Runtime

After you solve this workbook, I recommend watching the video solution on Udemy.

Screen Shot 2022-10-16 at 4.05.09 PM.png

It will show you how to visualize the runtime using Visual Studio Code.

Solution Code

The solution code is inside the same folder as the starter project.

Screen Shot 2022-10-16 at 4.03.59 PM.png


Associated Course: The Complete Java Development Bootcamp
Related Course: The Complete Spring Boot Development Bootcamp – Become a Java Web Developer

Feedback Summary
4.7
43 students
5

91%
4

2%
3

0%
2

0%
1

7%
Written Reviews
There are no written reviews yet.