Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Write a program that, 1. Prompts the user to input an integer between 33 and 126 and assign it to a variable called userInt.

 

Write a program that, 1. Prompts the user to input an integer between 33 and 126 and assign it to a variable called userInt. 2. Prompt the user for a floating point number and assigns it to a variable called userFloat 3. Prompt the user for a character and assigns it to a variable called userChar 4. Prompt the user for a string and assign it to a variable called userString. The program should then 1. Output the four values on a single line separated by a space. 2. Output the four values in reverse of the way they appear in 1. 3. Convert the integer to a character by using the 'chr()' function, and output that character. So, for example, if you provided the following four values: 99 2.77 Z Howdy The output should look like: 99 2.77 z Howdy Howdy z 2.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_2

Step: 3

blur-text-image_3

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

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students explore these related Algorithms questions

Question

Write short notes on Interviews.

Answered: 3 weeks ago