Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) Write a program for your Computer Science Laboratory (H113) to keep log (reco

ID: 3543795 • Letter: 1

Question

1) Write a program for your Computer Science Laboratory (H113) to keep log (record) of students who entered in laboratory and to calculate the average number of hours each student spends in Lab. Program should ask students to enter Name and number of hours he/ she spent inside laboratory. After 7 entries (one week) program should give us average number of hours a student spent in Lab. The output should be saved in a file named Weeklylogin.txt.

To calculate the average, your program should use another class AverageCalculator to find the average number of hours each student spends in week in Lab. Your AverageCaluclator class should find average number of hours spent in Library, by taking input from Weeklylogin.txt and should save output text file named averageStudenthours.txt. Both files should be created in your C:Assignment02.

Hint: You may use single dimensional array to read number of hours of each student (even before saving to input file). You may pass this array to one of method of AverageCaluclator class.

Those of you who don't know how to take input into array, consider this piece of code:

In Next step you have to pass this array (containing weekly hours of user into method of class AverageCalculator.

Your AverageCalculator can access the array as parameter

Explanation / Answer

.Please rate my answer ...