Java Programming Tutorial for Beginners - Lesson #4 - Modulo, Constants, and Conversions

Опубликовано: 18 Июнь 2026
на канале: AP CS Exam Prep
136
3

In this Java beginner video we discuss modulus, constants, and conversions. We look at informational slides as well as practice problems to help master those skills.

HW for lesson 4

(Cost of driving) Write a program that prompts the user to enter the distance to drive, the fuel efficiency of the car in miles per gallon, and the price per gallon, and displays the cost of the trip. Here is a sample run:

Feel free to leave a comment with any questions below!