Write Single Statement Prompts User Enter Integer Value Stores Value Integer Variable Call Q37152786

Write a single statement that prompts the user to enter an integervalue and stores that value (as an integer) in a variable calledquantity.

A program has computed a value for the variable average thatrepresents the average high temperature in San Diego for the monthof May. Write an appropriate output statement.

What appears on the screen after execution of the followingstatement?
print(“This is” + “goodbye” + “, Steve”)


Solution


1.quantity = int(input(“Enter integer: “))2.total = float(input(“Enter total temperature: “))count = int(input(“Enter how many months of May: “))avgerage = total/count3.This isgoodbye, Steve

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.