menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
Consider the class ScopeTest defined this way: public class ScopeTest { public double x; public void method(double newX) { if (newX>0) { double y = Math.sqrt(newX); //line1 }…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
Consider the class ScopeTest defined this way: public class ScopeTest { public double x; public void method(double newX) { if (newX>0) { double y = Math.sqrt(newX); //line1 }…
asked
Mar 2, 2020
204k
views
4
votes
Consider the class ScopeTest defined this way:
public class ScopeTest { public double x; public void method(double newX) { if (newX>0) { double y = Math.sqrt(newX); //line1 } //line2 } //line3 }
In which place(s) can we add y = newX;?
a. Only in line1 In line1, line2, and line3
b. No where in the class;
c. a variable cannot be declared in an IF statement
d. In line1 and line2
Computers & Tech
high-school
Jakogut
asked
by
Jakogut
8.0k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
6
votes
Answer:
im working on this too but i think this is d
Step-by-step explanation:
Nithin Krishnan P
answered
Mar 8, 2020
by
Nithin Krishnan P
8.3k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jan 9, 2024
182k
views
Identify the property that justifies each step asked about in the answer Line1: 9(5+8x) Line2: 9(8x+5) Line3: 72x+45
Abhijit Humbe
asked
Jan 9, 2024
by
Abhijit Humbe
8.3k
points
Mathematics
high-school
1
answer
2
votes
182k
views
asked
May 12, 2022
147k
views
For each pair of lines, determine whether they are parallel, perpendicular, or neither Line1 : 2y=5x+7 Line2: 4x+10y=8 Line3: y=5/2x-4
PiX
asked
May 12, 2022
by
PiX
8.6k
points
Mathematics
college
1
answer
5
votes
147k
views
asked
Oct 14, 2022
229k
views
The equation of three lines are given below Line 1: 6x+10y=-6 Line2: 5y=3x+4 Line3: y=5/3x-3 For each pair of lines determine whether they are parallel, perpendicular, or neither.
Johan Levin
asked
Oct 14, 2022
by
Johan Levin
7.7k
points
Mathematics
college
2
answers
5
votes
229k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty