Problem #1:     How much should I study outside of class?          Issue:   Your fellow students liked the previous version of study hour’s application and want to expand it again by adding the features listed below. Minimum Study Hours per Week per Class        Grade 15    A 12    B 9    C 6    D

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

 

Problem #1:     How much should I study outside of class?
    
    Issue:  
Your fellow students liked the previous version of study hour’s application and want to expand it again by adding the features listed below.

Minimum Study Hours per Week per Class        Grade
15    A
12    B
9    C
6    D
0    F

Project Specifications:

The program asks the user their name, employee id, and department. 
The program also asks the user who they are creating the report for, their employee id, and the department they work in.  (hint #1 & 2 are instances of a class – A class must be created and used within the program)
The menu driven program has the following options:
Determine Hours to Study
Determine Grade 
Display Averages and Totals
Quit

The user can select any menu option in any order they want. 
For example:
The user can start the program run option A, then option C, then option B, then option D. 
They restart the program, run option C, then D. 
They restart the program, run option A, then D. 
They restart the program, run option B, then D. 
They restart the program, run option A, the option B, then D. 

Menu option A -- Determine Hours to Study
The program will READ in data from a text file named StudyHours.txt. The user corrects any bad data. The program updates the information in StudyHours.txt file. For example if the file contains a letter grade of K which is not a possible letter grade. You will create and submit a text file with a minimum of 5 additional records from example below. The file is named StudyHours.txt and contains the following format: 
first line full name
second line number of credits
third line grade desired for each class

Example format StudyHours.txt file
Aaron RODgers
12
A
Tom brady
9
K
philip Rivers
apple
c
Joe Theismann
15
B

The program determines the total weekly study hours (for all classes)
All data must be displayed in proper case such as Wendy Payne, i.e. no names should be in all lower case or all upper case or a mix such as wendy or PaYNe. Use a function to convert to proper case.
The program displays the student’s name, number of credits, expected total number of weekly study hours, and desired grade
The information from 4.4 is also appended to a file named HowManyHours.txt in alphabetical order (by firstname) in the following format:  
first line full name
second line number of credits
third line study hours
fourth line grade 

Example format HowManyHours.txt file
Aaron Rodgers
12
36
A
Joe Theismann
15
45
C
Philip Rivers
3
15

Tom Brady
9
15
C

Menu option B -- Determine Grade
The program will READ in data from a text file named Grades.txt. The user corrects any bad data. The program updates the information in Grades.txt file. For example, if the file contains 55 credits which exceeds the max credits you can take during one semester. You will create and submit a text file with a minimum of 5 records in addition to the example below. The file is named Grades.txt and contains the following format: 
first line full name
second line number of credits
third line study hours

Such as
Patrick Mahomes
12
36
DesHAun waTson
9
apple
drew BrEeS
55
15
JULIO JONES
15
45

The program determines the grade, assuming it’s the same grade for each class
All data must be displayed in proper case such as Wendy Payne, i.e. no names should be in all lower case or all upper case or a mix such as wendy or PaYNe. Use module(s) to convert to proper case.
The program displays the student’s name, number of credits, total weekly study hours, and desired grade
The information from 5.4 is also appended to a file named HowManyHours.txt in alphabetical order (by firstname) in the following format:  

first line full name
second line number of credits
third line study hours
fourth line grade 

Example format HowManyHours.txt file
Aaron Rodgers
12
60
A
Joe Theismann
15
60
B
Philip Rivers
3
15
A
Tom Brady
9
36
B

Menu option C 
The program reads in data from HowManyHours.txt, displays a report header with the report creator’s 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
Menu option D
Thank the user for using the program
Terminates the program

All Project Requirements:

Use Final Project design template provided in Canvas
The Word and Python file names must start with your last name followed by first initial and then a descriptive name for the project. For example, the name for this project would be PayneWStudyHours.docx and PayneWStudyHours.py.
All variables and constants names must be descriptive
The program design is organized in a logic fashion and cannot contain repeated code (i.e., you must use functions).

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Managing System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education