subject
Engineering, 04.04.2020 09:50 ruffnekswife

The university defines freshman, sophomore, junior, and senior standing based on the number of units completed by students. The following function was written to return appropriate class standing for a given student based on the units earned:

def class_standing(units):
if units >= 30:
return "Sophomore"
if units <= 30:
return "Freshman"
if units >=90:
return "Senior"
if units <=90:
return "Junior"

Freshman: [0, 29]

Sophomore: [30 - 59]

Junior: [60 - 89]

Senior: 90+.

Fill-in the blanks based on the above function. Note: Ad edge case is a test case on the edge of a condition, for example, if testing if a value is in the range -100 to 100 inclusive, -100 and 100 would be edge cases, 50 and 500 would be non-edge cases.

Provide a call to the class_standing function to test an edge case for Freshman:



What would the class_standing function return for this case?

Provide a call to the class_standing function to test a non-edge case for Sophomore:



What would the class_standing function return for this case?

Provide a call to the class_standing function to test an edge case for Junior:



What would the class_standing function return for this case?

Provide a call to the class_standing function to test a non-edge case for Senior:



What would the class_standing function return for this case?

2-Define a function total_seconds(time) that takes a string in the format of "hh:mm:ss" or "mm:ss" and returns the total number of seconds in the time. You may assume only valid time strings will be passed to the function.
For example,
total_seconds("01:01:01") returns 3661
total_seconds("10:30") returns 630

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
question
Engineering, 04.07.2019 18:10
Determine whether or not it is possible to compress air adiabatically from k to 140 kpa and 400 k. what is the entropy change during this process?
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
question
Engineering, 04.07.2019 18:20
Along 8-cm diameter steam pipe whose external surface temperature is 900c connects two buildings. the pipe is exposed to ambient air at 70c with a wind speed of 50 km/hr blowing across the pipe. determine the heat loss from the pipe per unit length. (b) air at 500c enters a section of a rectangular duct (15 cm x 20 cm) at an average velocity of 7 m/s. if the walls of the duct are maintained at 100c. a) the length of the tube for an exit temperature of the air to be 40 0c. b)the rate of heat transfer from the air. c) the fan power needed to overcome the pressure drop in this section of the duct.
Answers: 1
You know the right answer?
The university defines freshman, sophomore, junior, and senior standing based on the number of units...
Questions
question
Mathematics, 18.10.2020 22:01
question
Health, 18.10.2020 22:01
Questions on the website: 13722361