Passed: 0 / 10
Total Score: 7.0 / 63.0
Test Counting Grouse
Status:
FailedScore:
2.17 / 10.0Observed (Your Actual Output)
Enter an observation count: 45 Enter an observation count: 60 Enter an observation count: 21 Enter an observation count: 104 Enter an observation count: Exception: invalid literal for int() with base 10: '' File "counting_grouse_disaster.py", line 33, in <module> myFunctionXd() File "counting_grouse_disaster.py", line 11, in myFunctionXd count = int(count) ^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
Expected (Correct Output)
Enter an observation count: 45 Enter an observation count: 60 Enter an observation count: 21 Enter an observation count: 104 Enter an observation count: There are 230 total grouse. The smallest count is: 21 The largest count is: 104 Enter factor: 4 The estimated grouse populations are: - 180 - 240 - 84 - 416
Test Counting Grouse
Status:
FailedScore:
0.92 / 10.0Observed (Your Actual Output)
Enter an observation count: 45 Enter an observation count: 60 Enter an observation count: 21 Enter an observation count: 104 Enter an observation count: Exception: invalid literal for int() with base 10: '' File "counting_grouse_good.py", line 70, in <module> main() File "counting_grouse_good.py", line 62, in main counts = get_counts() ^^^^^^^^^^^^ File "counting_grouse_good.py", line 7, in get_counts count = int(count) ^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
Expected (Correct Output)
Enter an observation count: 45 Enter an observation count: 60 Enter an observation count: 21 Enter an observation count: 104 Enter an observation count: There are 230 total grouse. The smallest count is: 21 The largest count is: 104 Enter factor: 4 The estimated grouse populations are: - 180 - 240 - 84 - 416
Test Counting Grouse
Status:
FailedScore:
0.91 / 10.0Observed (Your Actual Output)
Enter an observation count: 45 Enter an observation count: 60 Enter an observation count: 21 Enter an observation count: 104 Enter an observation count: Exception: invalid literal for int() with base 10: '' File "counting_grouse_quality.py", line 70, in <module> main() File "counting_grouse_quality.py", line 62, in main counts = get_counts() ^^^^^^^^^^^^ File "counting_grouse_quality.py", line 7, in get_counts count = int(count) ^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
Expected (Correct Output)
Enter an observation count: 45 Enter an observation count: 60 Enter an observation count: 21 Enter an observation count: 104 Enter an observation count: There are 230 total grouse. The smallest count is: 21 The largest count is: 104 Enter factor: 4 The estimated grouse populations are: - 180 - 240 - 84 - 416
Test Grades
Status:
FailedScore:
0.546 / 3.0Observed (Your Actual Output)
Enter scores for each student. Enter a blank student name to end. Student: Dave Score: 94 Student: Kaylee Score: 100 Student: Chris Score: 77 Student: Jake Score: 84 Student: John Score: 64 Student: Grace Score: 89 Student: Jessie Score: 92 Student: James Score: 92 Student: Bonus: .1 Cutoff: 90 Exception: too many values to unpack (expected 2) File "grades_ComplexDebug.py", line 55, in <module> main() File "grades_ComplexDebug.py", line 50, in main new_scores = adjust_scores(scores, bonus) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "grades_ComplexDebug.py", line 33, in adjust_scores for student, score in scores: ^^^^^^^^^^^^^^ ValueError: too many values to unpack (expected 2)
Expected (Correct Output)
Enter scores for each student. Enter a blank student name to end. Student: Dave Score: 94 Student: Kaylee Score: 100 Student: Chris Score: 77 Student: Jake Score: 84 Student: John Score: 64 Student: Grace Score: 89 Student: Jessie Score: 92 Student: James Score: 92 Student: Bonus: .1 Cutoff: 90 High Scores: - 103.4: Dave - 110.0: Kaylee - 92.4: Jake - 97.9: Grace - 101.2: Jessie - 101.2: James
Test Grades2
Status:
FailedScore:
0.507 / 3.0Observed (Your Actual Output)
Enter scores for each student. Enter a blank student name to end. Student: Ramsey Score: 89 Student: Paul Score: 79 Student: Jack Score: 77 Student: Jill Score: 67 Student: Victor Score: 89 Student: Bill Score: 92 Student: Richard Score: 98 Student: Bonus: .15 Cutoff: 89 Exception: too many values to unpack (expected 2) File "grades_ComplexDebug.py", line 55, in <module> main() File "grades_ComplexDebug.py", line 50, in main new_scores = adjust_scores(scores, bonus) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "grades_ComplexDebug.py", line 33, in adjust_scores for student, score in scores: ^^^^^^^^^^^^^^ ValueError: too many values to unpack (expected 2)
Expected (Correct Output)
Enter scores for each student. Enter a blank student name to end. Student: Ramsey Score: 89 Student: Paul Score: 79 Student: Jack Score: 77 Student: Jill Score: 67 Student: Victor Score: 89 Student: Bill Score: 92 Student: Richard Score: 98 Student: Bonus: .15 Cutoff: 89 High Scores: - 102.3: Ramsey - 90.8: Paul - 102.3: Victor - 105.8: Bill - 112.7: Richard
Test Simplify
Status:
FailedScore:
0.235 / 5.0Observed (Your Actual Output)
Exception: [Errno 2] No such file or directory: '/Users/gbean/teach/cs110/lectures/course-content/Unit3-Interactive-programs/lecture3g-debugging/for_class/simplify.py' FileNotFoundError: [Errno 2] No such file or directory: '/Users/gbean/teach/cs110/lectures/course-content/Unit3-Interactive-programs/lecture3g-debugging/for_class/simplify.py'
Expected (Correct Output)
Enter a word: python Enter a word: professor Enter a word: ameliorate Enter a word: math Enter a word: hi Enter a word: cheese Enter a word: Enter a length: 6 There are 4 short words: - python - math - hi - cheese
Test Simplify2
Status:
FailedScore:
0.375 / 5.0Observed (Your Actual Output)
Exception: [Errno 2] No such file or directory: '/Users/gbean/teach/cs110/lectures/course-content/Unit3-Interactive-programs/lecture3g-debugging/for_class/simplify.py' FileNotFoundError: [Errno 2] No such file or directory: '/Users/gbean/teach/cs110/lectures/course-content/Unit3-Interactive-programs/lecture3g-debugging/for_class/simplify.py'
Expected (Correct Output)
Enter a word: ruby Enter a word: teacher Enter a word: stupendous Enter a word: calculus Enter a word: bye Enter a word: chicken Enter a word: Enter a length: 6 There are 2 short words: - ruby - bye
Test Simplify Take2
Status:
FailedScore:
0.465 / 5.0Observed (Your Actual Output)
Enter a word: python Enter a word: professor Enter a word: ameliorate Enter a word: math Enter a word: hi Enter a word: cheese Enter a word: Enter a word: 6 Enter a word: Exception: input() called more times than expected File "simplify_take2.py", line 38, in <module> main() File "simplify_take2.py", line 31, in main words = get_words() ^^^^^^^^^^^ File "simplify_take2.py", line 4, in get_words word = input('Enter a word: ') ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/gbean/opt/miniconda3/envs/cs110/lib/python3.11/site-packages/byu_pytest_utils/dialog.py", line 380, in _py_input raise Exception("input() called more times than expected") Exception: input() called more times than expected
Expected (Correct Output)
Enter a word: python Enter a word: professor Enter a word: ameliorate Enter a word: math Enter a word: hi Enter a word: cheese Enter a word: Enter a length: 6 There are 4 short words: - python - math - hi - cheese
Test Simplify Take2 Test2
Status:
FailedScore:
0.235 / 5.0Observed (Your Actual Output)
Enter a word: ruby Enter a word: teacher Enter a word: stupendous Enter a word: calculus Enter a word: bye Enter a word: chicken Enter a word: Enter a word: 6 Enter a word: Exception: input() called more times than expected File "simplify_take2.py", line 38, in <module> main() File "simplify_take2.py", line 31, in main words = get_words() ^^^^^^^^^^^ File "simplify_take2.py", line 4, in get_words word = input('Enter a word: ') ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/gbean/opt/miniconda3/envs/cs110/lib/python3.11/site-packages/byu_pytest_utils/dialog.py", line 380, in _py_input raise Exception("input() called more times than expected") Exception: input() called more times than expected
Expected (Correct Output)
Enter a word: ruby Enter a word: teacher Enter a word: stupendous Enter a word: calculus Enter a word: bye Enter a word: chicken Enter a word: Enter a length: 6 There are 2 short words: - ruby - bye
Test Words
Status:
FailedScore:
0.616 / 7.0Observed (Your Actual Output)
Exception: unterminated string literal (detected at line 4) (words_SyntaxError.py, line 4) File "words_SyntaxError.py", line 4 response = input('Word: ) ^ SyntaxError: unterminated string literal (detected at line 4)
Expected (Correct Output)
Word: apple Word: banana Word: camel Word: dunk Word: loop Word: monkey Word: noodle Word: octopus Word: program Word: quiz Word: root Word: square Word: tame Word: electric Word: zoo Word: Boundary: money You have 15 words These are small: apple banana camel dunk loop electric These are big: monkey noodle octopus program quiz root square tame zoo