Activity : Assignment Set #4

The following assignments are written in a very different format from the previous four weeks of python assignments. In each of these assignments you are to write a single function which MUST follow the naming and parameter requirements of the problem exactly. Your file should contain ONLY that function. It should not include any additional code.

When testing your code you should use the shell prompt examples provided. Your code must behave exactly the same way or it will not pass the Autolab tests.

THIS MEANS:


To complete this activity, you will need to create the following programs:


FUNC_05

In a file called uber.py create a function called calculateFare()

 

 

FUNC_06

In a file called retire.py create a function called canRetire()


FUNC_07

In a file called bmi.py create a function called getCategory()

 


FUNC_08

In a file called paycheck.py create a function called calculatePay()

 

 


Testing Your Code

 

  1. Go to the AutoLab Homepage for the course
    1. https://hypnos.cs.uni.edu/courses/CSED1320-F21/assessments
    2. Log in if necessary
  2. For each of the assignments listed above, find their submission link under the "Practice" heading
  3. Upload the corresponding python file for that assignment.
  4. When the "handin history" page comes up you will need to refresh the page until a score of either 0 or 1 is shown with your assignment.
  5. Click on the 0/1 score to get feedback.
  6. Read the information carefully if you received a score of 0 and figure out what you need to do to fix the problem.
    • Ask for help from me or other students if you don't understand an error message.
  7. Resubmit until the program earns a 1.