Answered step by step
Verified Expert Solution
Question
1 Approved Answer
USE PYTHON, ANSWER QUESTION WITH CODE AND SHOW OUTPUT COPY AND PASTE BELOW INTO A TEXT FILE CALLED classesInput.txt, THIS IS THE TXT FILE NEEDED
USE PYTHON, ANSWER QUESTION WITH CODE AND SHOW OUTPUT
COPY AND PASTE BELOW INTO A TEXT FILE CALLED "classesInput.txt", THIS IS THE TXT FILE NEEDED FOR ABOVE
3 CSE 030 Data Structures 4 Monday, Wednesday 4:30pm 5:45pm 85 CSE 165 Introduction to Object Oriented Programming 4 Tuesday, Thursday 9:00am 10:15am 87 BIO 101 Introduction to Biology 3 Tuesday, Thursday 11:00am 12:15pm 91
4) Write a class schedule formatting program that does the following ( 25 points): a. Parses "classesinput.txt" for the following info (on the corresponding line): Line 0: Number of courses (the following data should exist for each course) Line 1: Course department Line 2: Course number Line 3: Course name Line 4: Credits Line 5: Lecture days Line 6: Start time of the lecture Line 7: End time of the lecture Line 8: Average grade (percentage) for the course b. Outputs a file with the data formatted as follows: Days of Lectures: Stat: on average, students get in this course REPEAT for each additional class, up to c. Example: Input: 2 CSE 030 Data Structures 4 Monday, Wednesday 4:30pm 5:45pm 85 CSE 165 Introduction to Object Oriented Programming 4 Tuesday, Thursday 9:00am 10:15am 87 Output: COURSE 1: CSE030: Data Structures Number of Credits: 4 Days of Lectures: Monday, Wednesday Lecture Time: 4:30pm5:45pm Stat: on average, students get 85% in this course COURSE 2: CSE165: Introduction to Object Oriented Programming Number of Credits: 4 Days of Lectures: Tuesday, Thursday Lecture Time: 9:00am - 10:15am Stat: on average, students get 87% in this course d. Note: to get full points, you must create a Python class that holds the above data and
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started