Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . 3 8 Variables, input, and casting ( Java ) ( 1 ) Prompt the user to input an integer, a double, a character,

1.38 Variables, input, and casting (Java)
(1) Prompt the user to input an integer, a double, 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).
Enter integer: 99
Enter double: 3.77
Enter character: z
Enter string: Howdy
993.77 z Howdy
(2) Extend to also output in reverse. (Submit for 1 point, so 3 points total).
Enter integer: 99
Enter double: 3.77
Enter character: z
Enter string: Howdy
993.77 z Howdy
Howdy z3.7799
(3) Extend to cast the double to an integer, and output that integer. (Submit for 2 points, so 5 points total).
Enter integer: 99
Enter double: 3.77
Enter character: z
Enter string: Howdy
993.77 z Howdy
Howdy z 3.7799
3.77 cast to an integer is 3
5551563626022 qra79y
image text in transcribed

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago

Question

5. Arranging for the training facility and room.

Answered: 1 week ago