Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python assignment - Please help me with the following assignment.Any help or idea about the assignment would be helpful.Thank You!! The university maintains course schedules

Python assignment- Please help me with the following assignment.Any help or idea about the assignment would be helpful.Thank You!!

The university maintains course schedules at http://appsprod.tamuc.edu/Schedule/Schedule.aspx

for different semesters (spring, fall, winter, etc ).Develop a Python program to dynamically complete certain tasks, such as list, find, sort, and save, in course listings from schedule portal. We will mainly use "request" and "BeautifulSoup" libraries (or similar,. The program will operate at different level: Semester and Department.The program will be a menu based application. Assume that the project file is myproject.py. Once run, it will show last 5 semester (fall, spring, summer only, (not winter, may mini))

> python myproject.py

Choose a semester: 1) Sprint 20212)Fall 20203)Summer II4)Summer I 5)Spring 2020

Selection: 2

Here, program will parse the data from website and show only last (most recent) 5 semesters. User will make selection, then, will show departments for the selected semester (Fall 2020). Note that selected semester is visible before a ">" sign.

Fall 2020> Select a department:

1) Undeclared

2) Accounting and Finance

3) Art

4) Ag Science & Natural Resources

...

...

30) Social Work

31) Theatre

Q)Go back

Selection: 3

Fall 2020> Art> Select an option:

1) List courses by instruction name

2) List courses by capacity

3) List courses by enrollment size

4) List courses by course prefix

5) Save courses in a csv file

6) Search course by instruction name

7) Search courses by course prefix

Q)Go back

Selection: ??

Here, program will parse the data from website and show all available department then list of tasks. Q (go back) option will take user to previous level.

Course listing output should show the following fields. For instance for course listing for "Fall 2020> Computer Science & Info Sys> List the course by prefix " should show

PrefixIDSecNameInstructorHoursSeatsEnroll.COSC130101WIntro to CompuLee, Kwang33510COSC143601EIntro to Comp Sci & ProgBrown, Thomas44036COSC143601LIntro to Comp Sci & ProgBrown, Thomas4036COSC143601WIntro to Comp Sci & ProgHu, Kaoning44543COSC143602EIntro to Comp Sci & ProgHu, Kaoning43532

as first 5 rows.

follow above headers and order (prefix (col. width 6), ID (5), Sec (5) ,Name (25), Inst (20), Hours (5), Seats (5), Enroll. (7) ) for other listing selections too. Data cell should be aligned with column header and left justified. A course name should not have a word more than 5 chars. For instance Algorithms should be abbreviated as "Algor". The length of course name will not exceed 25 chars.In option 5, the above format should be used to save a listing to a file as .csv format. User will be able to provide a filename for csv file.

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_2

Step: 3

blur-text-image_3

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

Unity From Zero To Proficiency Beginner A Step By Step Guide To Coding Your First Game

Authors: Patrick Felicia

1st Edition

1091872023, 978-1091872028

More Books

Students also viewed these Programming questions