Suppose that inside the main method below you decide


Suppose that inside the main method below you decide to create a Scanner object, and then read in an int and then a double on one line, where the two values are separated by a space, e.g.
19 3.7778

Complete the main method below for doing this chore. Notice that we've constructed a Scanner object for you - be sure to use this object. You should store the integer in an int variable called n, and the double value in a double variable called r. Finally, in the last statement in main, you should print the sum of these two values.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Suppose that inside the main method below you decide
Reference No:- TGS0146200

Expected delivery within 24 Hours