Highlights
Task:
Your boss has asked you to complete the documentation and Python program for the following problem.
Problem description
Your program must collect input from the user, asking them to input a temperature. The program will then output one of the following statements:
If the temperature is below zero, it will output “Below Freezing”
If the temperature is above zero, it will output “Above Freezing”
If the temperature is zero, it will output “Freezing”
Part a: Complete the above flowchart – i.e. what text should be in every red circle labelled A through D.
Part b: Put a circle around a SELECTION statement in the above flowchart.
Part c: Translate the flowchart into pseudocode.
Part d: Write the code for this program. Include at least three comments describing your code,
including one that has your name, date, and a brief description of the problem at the top.
Include both the code and the output (i.e. screenshots) with your answer.
Question 2
We’ve been using CodingBat to practice our logic, list, and general programming skills. For this part, you must complete the following exercises and take a screenshot:
If your student number ends in an even number If your student number ends
Question 3
Your boss has sheepishly asked you to help identify problems with a program he’s made.
# This program gets two numbers from the user and adds all even numbers between them
# e.g. 10 (inclusive) and 18 (exclusive) = 10 + 12 + 14 + 16 (18 is skipped/excluded)
rangeLow = int(input("What is the lowest number you'd like to add? (inclusive) " ))
rangeLow = int(input("What is the highest number you'd like to add? (exclusive) " ))
rangeSum = 0
while (rangeLow < 0):
print("My minimum is 0 - please try again.")
rangeLow int(input("What is the lowest number you'd like to add? (inclusive) "))
while (rangeHigh <= 1000):
print ("My maximum is 1000 - please try again.")
rangeHigh = int(input("What is the highest number you'd like to add? (exclusive) "))
if (rangeLow >= rangeHigh):
print ("The High number must be larger than Low number. I'll swap these for you.")
temp = rangeHigh
rangeHigh = rangeLow
rangeLow = temp
for i in loop(rangeLow, rangeHigh):
# Even numbers have 0 remainder when divided by 2 - add these numbers, throw away the odds. The %
operator gives us the remainder.
if (i % 2 == 0):
print(" Adding " + str(i) + " to the sum.")
rangeSum = rangeSum + i
if (i > rangeHigh):
print ("My loop has gone past the High number! This shouldn't happen!")
print("The sum of the even numbers from [" + str(rangeLow) + "] to [" + str(rangeHigh) + "] is: " +
str(rangeSum))
Part a: Identify at least 1 section of dead code and briefly describe why it will never run.
Part b: Identify at least one syntax error.
Part c: Identify one logical/semantic error.
Part d: Your boss is bad at testing code. Provide him a test plan with at least 6 test cases that test his code thoroughly. Use the template in Studentweb.
Part e: Create a flow chart (abstract design) that represents the first/top half of the program (everything from the start, to the line just before the for loop).
This Management Assignment has been solved by our Management Experts at onlineassignmentbank. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.