Question: 1 . 2 5 LAB: Warm up: Variables, input, and type conversion ( 1 ) Prompt the user to input an integer between 3 2
LAB: Warm up: Variables, input, and type conversion
Prompt the user to input an integer between and a float, a character, and a string, storing each into separate variables. Then, output those four values on a single line separated by a space. Submit for points
Note: This zyLab outputs a newline after each userinput prompt. For convenience in the examples below, the user's input value is shown on the next line, but such values don't actually appear as output when the program runs.
Enter integer :
Enter float:
Enter character:
z
Enter string:
Howdy
z Howdy
Extend to also output in reverse. Submit for point, so points total
Enter integer :
Enter float:
Enter character:
z
Enter string:
Howdy
z Howdy
Howdy z
Extend to convert the integer to a character by using the chr function, and output that character. Submit for points, so points total
Enter integer :
Enter float:
Enter character:
z
Enter string:
Howdy
z Howdy
Howdy z
converted to a character is c
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
