See below for hints on what to do if your APT doesn't run.
For each problem in an APT set, complete these steps by the due date
In solving APTs, your program should work for all cases, not just the test cases we provide. We may test your program on additional data.
| APT | Due Date |
|---|---|
|
APT-1
- Do All 6 problems IntroAPT - do this one first! Laundry - we will do in lecture Gravity - you will do in lab 2 |
Sept 9 |
|
APT-2
- Do All 6 problems The first four, - ReadQuizScore - RemoveMiddle - PortManteau - TotalWeight are good review for Exam 1! Solve these on paper for practice |
Sept 23 |
|
APT-3
- You must complete both Part 1 and Part 2: - Part 1: do all 3 - Part 2: do any 3 of 6 The remaining problems on Part 2 may be completed for credit to make up missed points on other APT Part 2s. NOTE: We will look at two of them in lectures: Bagels and Pancakes |
Oct 7 |
|
APT-4
- You must complete both Part 1 and Part 2: - Part 1: do all 3 - Part 2: do any 3 of 6 The remaining problems on Part 2 may be completed for credit to make up missed points on other APT Part 2s. NOTE: We look at two of them in lectures: TxtMsg and EatingGood We look at MorseLikeCode in lab |
Oct 23 |
|
APT-5
- You must complete both Part 1 and Part 2: - Part 1: do all 4 - Part 2: do any 4 of 9 The remaining problems on Part 2 may be completed for credit to make up missed points on other APT Part 2s. NOTE: We look at some of them in lecture or lab: BordaCount, SandwichBar, VenmoTracker, and Family |
Nov 6 |
|
APT-6
- You must complete both Part 1 and Part 2: - Part 1: do all 4 - Part 2: do any 3 of 10 The remaining problems on Part 2 may be completed for credit to make up missed points on other APT Part 2s. NOTE: We look at MedalTable in lecture : |
Nov 20 |
We may do some APTs partially in class or lab, but you still have to do them and submit them. There will usually be extra apts listed. You can do more than required to challenge yourself. We do notice if you do more APTs than those required. If you do extra APTs, they still have to be turned in on the due date.
If you have concerns about an item that was graded (lab, apt or assignment), you have one week after the grade is posted to fill out the regrade form here.
Here are some suggestions if your APT does not run. THESE ARE COMMON ERRORS CompSci 101 STUDENTS MAKE.
logged entry score = wrongclassThen you may have forgotten to select the button beside the name of the APT. The tester needs to know which APT you are trying to test.
if __name__ == '__main__':
compute("this is a test") # Call your function here with an example
But be careful if you just put this:
if __name__ == '__main__':
with no statement in the body of main, that can hang the APT tester and not
show you any output. In fact you should not have any function definitions
with 0 lines of code in the body.
You can always use the pass command which does nothing but is a placeholder statement until you are ready to add a call to your function, like this:
if __name__ == '__main__':
pass
print "starting function"When you run it, does that show up? Note it may show up for each sample input it runs on. If it does show up, try adding in other print statements to see if they show up.
x = stuff.lower().find('x')
Break them into more lines and add more variables so you can see the
intermediate results. Such as:
temp = stuff.lower()
x = temp.find('x')