Question

# 1.23LAB: Warm up: Variables, input, and type conversion (1) Prompt...

1.23 LAB: Warm up: Variables, input, and type conversion

(1) Prompt the user to input an integer between 32 and 126, 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 2 points).

Note: This zyLab outputs a newline after each user-input 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 (32 - 126):
99
Enter float:
3.77
Enter character:
z
Enter string:
Howdy
99 3.77 z Howdy
```

(2) Extend to also output in reverse. (Submit for 1 point, so 3 points total).

```Enter integer (32 - 126):
99
Enter float:
3.77
Enter character:
z
Enter string:
Howdy
99 3.77 z Howdy
Howdy z 3.77 99
```

(3) Extend to convert the integer to a character by using the 'chr()' function, and output that character. (Submit for 2 points, so 5 points total).

```Enter integer (32 - 126):
99
Enter float:
3.77
Enter character:
z
Enter string:
Howdy
99 3.77 z Howdy
Howdy z 3.77 99
99 converted to a character is c

```

I can not figure out this code for the inputs provided

Solved by verified expert
<p>gue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magn</p> Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet

Explore over 16 million step-by-step answers from our library

cilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet

Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia

itur laoree

u

m risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec

molestiee vel laoreet ac, d

itur laoriaur laorDonec aliquet. Lorem ipsum dac,amet, consecteturec aliquet.fficur laorcing elit. Nam lac,ec aliquet. Lorem ipgue vel laoreet aultrices ac magna.xrem ipsum dolor siur laoreet. Nam risusum dolor sit ameac,icitur laoreet. Nam risus ante, dapibusamet, consectececing elit. Nceipiscing elcectum vitae od

a. Fusce dui l

ipsumlestieipiscing el

g

ipsumfficc

ec f

e vel laoreet a

c

nec facilis

cing

ac, dictum vita

molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel

ct

iscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nammolestie consequat, ultrices ac magna. Fusce da molestie vel laoreet ac, d

ce dui lectus, conguDonec aliquet. Lorem ipsum dac,amet, consecteturec aliquet.fficur laorcing elit. Nam lac,ec aliquet. Lorem ipgue vel laoreet aultrices ac magna.xrem ipsum dolor siur laoreet. Nam risusum dolor sit ameac,onec aliquet. Lorem ipsum dolor sit amet, consectetur alrem inec facilisiceipiscing elcecing elit. Nce, consectet

ac, dictum vit

ipsumlestieipiscing el

g

ipsumfficc

ec f

e vel laoreet a

c

nec facilis

cing

a. Fusce dui le

molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel

ac

ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec alique

ac, dictue vel laoreet ac, d

itur laoriaur laorDonec aliquet. Lorem ipsum dac,m risus ante, dapibus a molsus ante, dorFusce duirem i,ur laoreet. Nammolestieconsecacinia pulv

a. Fusce dui l

dictum vitae odicinoneu

o

m ipsum doxlolpD

Step-by-step explanation

nec facilisis. Pellentesque dapibus efficitur l

ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliq

ongue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ips

gue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipisci

gue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur a

Student reviews
100% (5 ratings)