Rubric for functionsTest

 
unknown Procedure Requirements
What code you use to solve the problem.
 
unknown Core goals
Complete all core goals for core credit. Get partial credit for completing at least half, and more partial credit for completing at least 90%.
 
unknown Define indentMessage
Use def to define indentMessage
 
unknown Call len(<any arguments>)
Within the definition of indentMessage, call len(<any arguments>) in exactly one place.
 
unknown Define printMessage
Use def to define printMessage
 
unknown Call print(<any arguments>)
Within the definition of printMessage, call print(<any arguments>) in at least once place.
 
unknown Call indentMessage(<any arguments>)
Within the definition of printMessage, call indentMessage(<any arguments>) in at least once place.
 
unknown Define ellipseArea
Use def to define ellipseArea
 
unknown Use a return statement
Within the definition of ellipseArea, use return _ in at least once place.
 
unknown Define polygon
Use def to define polygon
 
unknown Use a loop
Within the definition of polygon, use a for or while loop in at least once place.
 
unknown Call fd(<any arguments>)
Within the loop within the definition of polygon, call fd(<any arguments>) or forward(<any arguments>) in at least once place.
 
unknown Process Requirements
How your code achieves its results.
 
unknown Core goals
Complete all core goals for core credit. Get partial credit for completing at least half, and more partial credit for completing at least 90%.
 
unknown The polygon function must maintain invariants for the position and heading values
Each call to the polygon function must return the position and heading values to their initial state before it returns.
 
unknown The polygon function must maintain invariants for the position and heading values
Each call to the polygon function must return the position and heading values to their initial state before it returns.
 
unknown Extra goals
Complete all extra goals in addition to the core goals for a perfect score.
 
unknown The polygon function must maintain invariants for the position and heading values
Each call to the polygon function must return the position and heading values to their initial state before it returns.
 
unknown The polygon function must maintain invariants for the position and heading values
Each call to the polygon function must return the position and heading values to their initial state before it returns.
 
unknown Product Requirements
Your code's result values.
 
unknown Core goals
Complete all core goals for core credit. Get partial credit for completing at least half, and more partial credit for completing at least 90%.
 
unknown indentMessage returns the correct result
The result returned when your indentMessage function is run must match the solution result.
 
unknown ellipseArea returns the correct result
The result returned when your ellipseArea function is run must match the solution result.
 
unknown Extra goals
Complete all extra goals in addition to the core goals for a perfect score.
 
unknown indentMessage returns the correct result
The result returned when your indentMessage function is run must match the solution result.
 
unknown Behavior Requirements
What your code does from the user's perspective.
 
unknown Core goals
Complete all core goals for core credit. Get partial credit for completing at least half, and more partial credit for completing at least 90%.
 
unknown printMessage prints the correct output
The output printed when your printMessage function is run must match the solution output.
 
unknown printMessage uses correct indentation
We will verify that printMessage includes the correct number of spaces before the message itself.
 
unknown Extra goals
Complete all extra goals in addition to the core goals for a perfect score.
 
unknown printMessage prints the correct output
The output printed when your printMessage function is run must match the solution output.
Contexts (test results and code fragments) used for these tests & checks (click to expand):
File 'functions.py'
We will evaluate your submitted file 'functions.py'.
Code in the target file
We will parse the code in the target file and payattention to how it was written.
The values defined by the code.
We will run your code and so that we can run tests on the values it defines.
The result of indentMessage
We will run your indentMessage function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
The result of indentMessage
We will run your indentMessage function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
The result of indentMessage
We will run your indentMessage function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
The result of printMessage
We will run your printMessage function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
  • Printed output will be recorded.
The indentation of the output
We will search through the output for the indentation.
The result of printMessage
We will run your printMessage function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
  • Printed output will be recorded.
The indentation of the output
We will search through the output for the indentation.
The result of printMessage
We will run your printMessage function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
  • Printed output will be recorded.
The result of ellipseArea
We will run your ellipseArea function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
The result of ellipseArea
We will run your ellipseArea function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
The result of ellipseArea
We will run your ellipseArea function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
The result of polygon
We will run your polygon function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
  • Calls to the following functions will be monitored:
    • polygon
    • ('fd', 'forward')
The result of polygon
We will run your polygon function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
  • Calls to the following functions will be monitored:
    • polygon
    • ('fd', 'forward')
The result of polygon
We will run your polygon function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
  • Calls to the following functions will be monitored:
    • polygon
    • ('fd', 'forward')
The result of polygon
We will run your polygon function and compare the return value against the solution result.
We will test your submission.
Testing details:
  • Will be terminated if it takes longer than 5s.
  • Calls to the following functions will be monitored:
    • polygon
    • ('fd', 'forward')