Ok, so I'm taking my CS2401 class at my university but I took a year and a half break of no java programming whatsoever... I'm VERY rusty right now /: So I basically need some help starting the code like how to import and use the inFile scanner reader and how to create the array etc.
So the instructions are:
"A local fitness company has contracted you to create a simple diet tracking software that will help clients count calories.
The client will provide data in the form of a text file. There are three numbers on each line, separated by spaces. The numbers represent the number of calories consumed for breakfast, lunch, and dinner. For part 1, assume that the file includes data for exactly one week (7 lines of text). The program should read the data from the file into three separate arrays, one each for breakfast, lunch, dinner. Then compute and print out the following in different methods each:
-a list of total number of calories consumed each day.
-the avg number of calories consumed each day
-the avg number of calories consumed in each of the three meals
-the maximum number of calories consumed in any specific day
-the max number of calories consumed in any one meal (of any type)
YOU SHOULD PRINT AN ERROR MESSAGE AND TERMINATE IF THERE ARE NOT EXACTLY THREE NUMBERS ON EACH LINE, AND EXACTLY 7 LINES OVERALL."
Your help will be very appretiated