1/24
gng save me
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
num_task = int(input("How many assignments do you have?: ")) ?Inputs
name = input("What is the assignment name?: ") ?
Inputs
priority = int(input("What is the priority? 1 = high, 2 = medium, 3 = low: ")) ?
Inputs?
Different schedules, different task counts, different priority order, different adjusted times are example of what?
The inputs being changed
print()
Outputs
print(“Adjusted Study Plan:”)
Outputs
print(taskName[i], “- High priority -”, taskTime[i], “minutes”
Outputs
assignment data
outputs depend on
total time available
outputs depend on
priorities entered
outputs depend on
What is this an example of: difference = total_task_time - availableTime
quotient = difference // num_task ?
sequencing
What is this an example of: if total_task_time > availableTime:
Selection or if statements
What is this an example of: for i in range(num_task):
Iteration or for loops
Adjusted code runs even when times are equal
> to >=
if for i in range(num_task): is removed
only 1 assingnment will process
for i in range(num_task): to quotient = difference
Tasks loose too much time
What is the error:
Syntax, :
quotient = difference * num_task
logic, runs but wrong
if total_task_time < availableTime:
reverses logic
time = int(time_input.split()[0]), hello is inputed
runtime
difference // num_task
if:
num_task = 0
runtime, division by 0
Overflow error
No, python handles bigger numbers
I’d have to rewrite calculations, if statements, loops, and printing multiple times if
procedure is removed
taskName
taskTime
taskPriorities
can store and loop
task 1
task 2
task 3
if list is gone