Answer a- int my_num = 100.0; int $my_num ='10000' int myNum = 1000; 1) Which one is a valid variable declaration? b- C- d- int my num =100000; а. one word 2) The Scanner class .next() method will read: b. a line of text C. a character d. an integer 3) i and j are two double variables. Which of the a- if(i > 0.5 * j) j+= 12%; b- if(i > Math.pow(j, 0.5)| j+= j %12; if(i > 0.5 * ) 1= 0.12 * j; d ifi>0,5 * j) following increases j by 12% if i is greater than half j. C- J0.12* j;

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question
Answer
a-
int my_num=100.0%3B
1) Which one is a valid variable declaration?
b.
int $my num= '10000';
C-
int myNum = 1000;
d-
int my num =
100000;
a.
one word
2) The Scanner class .next) method will read:
b. a line of text
C.
a character
d.
an integer
3) i and j are two double variables. Which of the
following increases j by 12% if i is greater than half
a- if(i> 0.5 *j
j--12%
b- ifi> Math.pow(j, 0.5)
j.
d ifi>0.5 )
1--0.12.1)
x and y are two integers. Which of the following is
Transcribed Image Text:Answer a- int my_num=100.0%3B 1) Which one is a valid variable declaration? b. int $my num= '10000'; C- int myNum = 1000; d- int my num = 100000; a. one word 2) The Scanner class .next) method will read: b. a line of text C. a character d. an integer 3) i and j are two double variables. Which of the following increases j by 12% if i is greater than half a- if(i> 0.5 *j j--12% b- ifi> Math.pow(j, 0.5) j. d ifi>0.5 ) 1--0.12.1) x and y are two integers. Which of the following is
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,