Coding Challenge 3

For this challenge, we are going to create a class called CodingChallenge3 and print how many cups of coffee consumed per year using multiplication in Java.  First, we will create an int called coffeePerDay and put how many cups of coffee you have per day.  Then, create another int called daysInYear that represents how many days there are in a year. 

Then, we will print out the result of both of the integers being multiplied.  If you get stuck, feel free to scroll down to look at the solution below.  Good luck and have fun!

The output for the code above is 730

Nice work!! See you in the next chapter!

GitHub link.

Leave a Reply

%d bloggers like this: