subject

(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. (2 pts) 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: 99 Enter double: 3.77 Enter character: 2 Enter string: Howdy 99 3.77 z Howdy (2) Extend to also output in reverse (1 pt) Enter integer: 99 Enter double 3.77 Enter characteri Enter string: Howdy 99 3.772 Howdy Howdy z 3.77 99 (3) Extend to cast the double to an integer, and output that integer (2 pts) 0 en soa Enter integer: 99 Enter double: 3.77 Enter character: 2 Enter string: Howdy 99 3.77 z Howdy Howdy z 3.77 99 3.77 cast to an integer is 3 LAB ACTIVITY 14.1.1: Prog 1: Variables, input, and casting 0/5 BasicInput. java Load default template. 1 ort java. util. Scanner: 2 3 lic class Basic Input I 4 public static void main(String args) { 5 Scanner ser-new Scanner(System. in); 6 int userint; 7 double userDouble; B // FTOME Define chor and string variables similarly 9 char UserChar: 10 String userString: 11 12 System. out. println("Enter integer"): 13 user Int - ser. nextInto: 14 15 // FTXMC (1): Finish reading other items inte variables, then output the four values on a single line separated by a space

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Are special characters that allow you to search for multiple words at the same time.
Answers: 2
question
Computers and Technology, 22.06.2019 14:40
You begin your first day of responsibilities by examining the recent is security breach at gearup to get ideas for safeguards you will take. at gearup, criminals accessed the company's improperly-secured wireless system and stole customers' credit card information as well as employee social security numbers. what kind of computer crime did gearup face?
Answers: 3
question
Computers and Technology, 23.06.2019 20:00
How much current flows through the alternator brushes? a. 2–5 a b. 25–35 a, depending on the vehicle c. 5–10 a d. 10–15 a
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
When you type january in a cell, then copy it using the fill handle to the cells below and the data automatically changes to february, march, april, and so on, what is this feature called? auto fill automaticcopy monthfill textfill
Answers: 1
You know the right answer?
(1) Prompt the user to input an integer, a double, a character, and a string, storing each into sepa...
Questions
question
Mathematics, 10.09.2020 15:01
question
Mathematics, 10.09.2020 15:01
question
Mathematics, 10.09.2020 15:01
question
Mathematics, 10.09.2020 16:01
question
Mathematics, 10.09.2020 16:01
question
Biology, 10.09.2020 16:01
question
Physics, 10.09.2020 16:01
question
Physics, 10.09.2020 16:01
question
English, 10.09.2020 16:01
question
French, 10.09.2020 16:01
question
Mathematics, 10.09.2020 16:01
question
Mathematics, 10.09.2020 16:01
question
Mathematics, 10.09.2020 16:01
question
History, 10.09.2020 16:01
question
Mathematics, 10.09.2020 16:01
question
English, 10.09.2020 16:01
question
Physics, 10.09.2020 16:01
question
Mathematics, 10.09.2020 16:01
question
Mathematics, 10.09.2020 16:01
question
Mathematics, 10.09.2020 16:01
Questions on the website: 13722367