When choosing a beverage, I sometimes like caffeinated drinks and sometimes non-caffeinated drinks. If I want caffeine and it’s before noon, I’ll have coffee, but if it’s in the afternoon (anytime before 6pm) I’ll have a coke. After 6pm I’ll have green tea. On the other hand, if I don’t want caffeine, in the morning I like herbal tea, and in the afternoon I’ll have water, and in the evening, I’ll have herbal tea.
Develop a program BeverageRec.java
that has the user enter two values: the time of day (an int, where 1800 = 6pm) and a String (either “caffeinated” or “non-caffeinated”). The program should then print a String that indicates what beverage I should drink: “coffee”, “coke”, “green tea”, “herbal tea”, or “water”.