Question: Complete a Python function name Report to output the current weather report to the console with the following prototype. Design your unit test cases and

Complete a Python function name "Report" to output the current weather report to the console with the
following prototype. Design your unit test cases and display the result.
def Report(Place, cTemp, cRain, cDate, cTime)
Remark:
Use one decimal place for temperature and rainfall data
If both cTemp and cRain are equal to -1, the following message should be displayed
no record for Region
If cTemp is equal to -1, no temperature information should be displayed
If cRain is equal to -1, no rainfall information should be displayed
If rainfall is less than 0.05mm, the message "No rainfall for the last hour" should be displayed.
 Complete a Python function name "Report" to output the current weather

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!