(1) Prompt the user to input an integer between 32 and 126, a float, a character, and a string, storing each into separa

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

(1) Prompt the user to input an integer between 32 and 126, a float, a character, and a string, storing each into separa

Post by answerhappygod »

(1) Prompt the user to input an integer between 32 and 126, afloat, a character, and a string, storing each into separatevariables. Then, output those four values on a single lineseparated by a space. (Submit for 2 points).Note: This zyLab outputs a newline after each user-inputprompt. For convenience in the examples below, the user's inputvalue is shown on the next line, but such values don't actuallyappear as output when the program runs.
(2) Extend to also output in reverse. (Submit for 1 point, so 3points total).
(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).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply