due on Monday, 10/3 before 11:59 PM
Sue Evans & James MacGlashan
Hit the space bar for the next slide
This assignment is meant to give you practice using:
This assignment requires much more user input than prior assignments.
<MAJOR-CODE> <COURSE-NUMBER>
CMSC 201
After reading all of the input from the user, you need to output the requirements the user still needs to complete for the degree for each of the parts A - C.
Part <X> Requirements
You have satisified the Part <X> Requirements
Part A Requirements: You need to take CMSC 421 You need to take CMSC 441
Part B Requirements: You need to take MATH 221
Part C Requirements: You need to take STAT 355 or STAT 451
linuxserver1.cs.umbc.edu[101] python hw3.py Your greeting goes here How many courses in the CS program have you taken? 4 Enter classes in the form <MAJOR-CODE> <COURSE-NUMBER> Class: CMSC 201 Class: MATH 151 Class: PHYS 121 Class: CMSC 202 Part A Requirements: You need to take CMSC 203 You need to take CMSC 304 You need to take CMSC 313 You need to take CMSC 331 You need to take CMSC 341 You need to take CMSC 345 You need to take CMSC 411 You need to take CMSC 421 You need to take CMSC 441 Part B Requirements: You need to take MATH 152 You need to take MATH 221 Part C Requirements: You need to take STAT 355 or STAT 451
You can earn 5 points of extra credit on this assignment by having your
program properly handle the
Part D - Science Requirements.
For Part D, a student has a choice of classes to take, thus, your program output is going to be more complex. There are two halves to Part D:
For the first half you should list all the possible remaining combinations of the six courses. So if a student has already taken BIOL 100, your program should output:
Part D Requirements: You need to take BIOL 301 OR You need to take CHEM 101 AND CHEM 102 OR You need to take PHYS 121 and PHYS 122
For the second half, if the user has not completed 12 science credits, you should print the number of science credits the user has already earned and then print out the list of classes the user can choose from, whether they have previously taken any of those courses or not.
You currently have 4 science credits. You need to have 12 total science credits taken from the following list: BIOL 100 BIOL 100L BIOL 251 BIOL 251L BIOL 252 BIOL 252L BIOL 275 BIOL 275L BIOL 301 BIOL 302 BIOL 302L BIOL 303 BIOL 303L BIOL 304 BIOL 304L BIOL 305 BIOL 305L CHEM 101 CHEM 102 CHEM 102L GES 110 GES 111 GES 120 PHYS 121 PHYS 122 PHYS 122L PHYS 340L
linuxserver1.cs.umbc.edu[101] python hw3.py Your greeting goes here How many courses in the CS program have you taken? 4 Enter classes in the form <MAJOR-CODE> <COURSE-NUMBER> Class: CMSC 201 Class: MATH 151 Class: PHYS 121 Class: CMSC 202 Part A Requirements: You need to take CMSC 203 You need to take CMSC 304 You need to take CMSC 313 You need to take CMSC 331 You need to take CMSC 341 You need to take CMSC 345 You need to take CMSC 411 You need to take CMSC 421 You need to take CMSC 441 Part B Requirements: You need to take MATH 152 You need to take MATH 221 Part C Requirements: You need to take STAT 355 or STAT 451 Part D Requirements: You need to take BIOL 100 AND BIOL 301 OR You need to take CHEM 101 AND CHEM 102 OR You need to take PHYS 122 You currently have 4 science credits. You need to have 12 total science credits taken from the following list: BIOL 100 BIOL 100L BIOL 251 BIOL 251L BIOL 252 BIOL 252L BIOL 275 BIOL 275L BIOL 301 BIOL 302 BIOL 302L BIOL 303 BIOL 303L BIOL 304 BIOL 304L BIOL 305 BIOL 305L CHEM 101 CHEM 102 CHEM 102L GES 110 GES 111 GES 120 PHYS 121 PHYS 122 PHYS 122L PHYS 340L
When you've finished your homework, use the submit command to submit the file.
submit cs201 hw3 hw3.py
Don't forget to watch for the confirmation that submit worked correctly.
Specifically, the confirmation will say:
Submitting hw3.py...OK
If not, try again.
You can check your submission by entering
submitls cs201 hw3
You should see the name of the file that you just submitted,
in this case, hw3.py.