From 50865c29f5f14981c50127e153596b560cda04df Mon Sep 17 00:00:00 2001 From: Joshua Randall <jranda10@emich.edu> Date: Sat, 13 Apr 2024 14:21:15 -0400 Subject: [PATCH] modified main.py --- main.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/main.py b/main.py index c1f2920..c024394 100644 --- a/main.py +++ b/main.py @@ -6,28 +6,31 @@ from time import sleep """ These are global variables, some can be changed. """ -# Student Global Variables, usually not to be edited +# Student Variables +global scoreDefault # Default score, this is the max score you can achieve without extra credit +scoreDefault = 100 + global score -score = 100 +score = scoreDefault # actual score, copies score default to first start off global name -name = "" +name = "" # Name of student global late -late = False +late = False # was the assignment turned in late? Default is false. -# CAN CHANGE: assign a point per value late penalty global latePenalty -latePenalty = 10 +latePenalty = scoreDefault * 0.1 # 10% of score default +# ! DO NOT MODIFY POINTS FOR RUN, points for each run are stored here global pointsForRun pointsForRun = [] -# CAN CHANGE: this is the string value for name of assignment +# Title of lab rubric global title title = "Name of Assignment" -# CAN CHANGE: Default point values for run + parts of an assignment. 0 means extra credit. +# Default points stored, 0 default for extra credit. global defaults defaults = [10,15,20,0] @@ -243,7 +246,7 @@ def main(): scoreLoop = operation() - score = 100 + score = scoreDefault name = "" pointsForRun = [] late = False -- GitLab