Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in Coral Please 2.18 LAB: Warm up: Variables, input, and type conversion (1) Prompt the user to input an integer between 32 and 126,

Code in Coral Please

2.18 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.

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.

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.

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

8. Provide recommendations for how to manage knowledge.

Answered: 1 week ago

Question

1. How can evolutionary theory explain prosocial behaviour?

Answered: 1 week ago

Question

4. Identify cultural variations in communication style.

Answered: 1 week ago