Question: ion Handling 1 Question ( 3 Points ) 1 . Write the Code for the Following Pseudocode: # Save a user input for Whether the
ion Handling Question Points
Write the Code for the Following Pseudocode:
# Save a user input for Whether the temperature changed to var ask
while ask.lowery:
# Save a user input for Current Temperature to var temp as an integer
#exception handling:
# prompt the user for an integer input
# read the input and convert it to an integer if possible
# if it not possible, ask for the temperature again do this as many times as needed.
#
#
# if the integer is or more, print it is hot"
#
# if the integer is or less, print it is cold"
#
# and inclusive, print it is just right"
#
# ask again whether the temperature changed, reassigning var ask
#
# Say goodbye once the loop is finishes
Loops
Nested loop: Points
#use a nested loop to build the following:
#print the following n:
#
#
#
#
#
#right aligned
#two or more layered loop
#space between each character
#generalizable to any n maximum length here n
#before last line, replace missing digits with stars eg and
Functions
Write LOOPS as a function with input n with the same functionality Points
a Output is a string containing everything that was printed, with line breaks separating
lines eg:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
