Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need a program in Python code to pull data from a file called HowManyHours.txt(this is the end of program and this file has been

I need a program in Python code to pull data from a file called HowManyHours.txt(this is the end of program and this file has been appended to many times before this.) The data looks like this and there are 10 sets of data hypothetically, but they should all look like this:

Full Name: Aaron Rodgers

Credits: 12

Study Hours:60

Grade: A

Full Name:Joe Mixon

Credits:3

Study Hours: 15

Grade: A

Full Name:Philip Rivers

Credits:9

Study Hours:36

Grade:B

Full Name: Tyreek Hill

Credits: 15

Study Hours: 60

Grade:B

Again, this howmanyhours.txt file will have 20 sets of data that look like the above. each class is 3 credits, and we assume the same for each class. We must multiply the study hours by 5 to get the total study hours, 5 days in a week. The program reads in data from HowManyHours.txt, displays a report header with the report creators name, employee id, and department and who they created the report for. The body of the report displays the total number of students who used the program, the average credits taken, and the average study hours. In the following format STUDY HOURS REPORT

Created for Dr. Payne, A004567893

Dept: Computer Science

Created By: Karen Smith, A00494928

Dept: Advising

Total Students: 3

Average Credits: 9.00

Average Study Hours: 20.00

PLEASE and thank you so much

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions