Answer:
showProduct(int,double)
for example: showProduct(10,10.5) is the correct answer even showProduct(10,10.0) is also correct but showProduct(10.0,10.5) or showProduct(10,10) or showProduct(10.0,10) are wrong calls.
Explanation:
The code is
- <em>public static void showProduct (int num1, double num2){</em>
- <em> int product;</em>
- <em> product = num1*(int)num2;</em>
- <em> System.out.println("The product is "+product);</em>
- <em> }</em>
showProduct is function which asks for two arguments whenever it is called, first one is integer and second one is of type double which is nothing but decimal point numbers. Generally, in programming languages, 10 is treated as integer but 10.0 is treated as decimal point number, but in real life they are same.
If showProduct( 10,10.0) is called the output will be 'The product is 100'.
Strange fact is that, if you enter showProduct(10,10.5) the output will remain same as 'The product is 100'. This happens because in the 3rd line of code,which is <em>product=num1*(int)num2</em>, (int) is placed before num2 which makes num2 as of type integer, which means whatever the value of num2 two is given, numbers after decimal is erased and only the integer part is used there.
This is necessary in JAVA and many other programming languages as you <u>cannot</u><u> multiply two different datatypes</u> (here one is int and another is double). Either both of them should be of type int or both should be of type double.
I think the correct answer would be FOCUS2. It is a system that guides members in choosing college or a major. It provides a starting point for students who are not yet certain of what they want to take academically. Hope this helps.
The keyboard combinations that can be used to capture and print out a one-slide presentation using MSWord, showing everything on the screen is Function key + PrtScr
<h3>What is a Key Combination?</h3>
This refers to the procedure that is used to combine two or more keys on the keyboard to execute a task.
Hence, we can see that the procedure that can be used to carry out the operation is:
- Enter the screen you want to capture and print
- Press the Function key, followed by the PrtScr. Please note this can vary slightly, depending on the keyboard.
The hardware devices that would be needed to be set up by the system analyst at a computer laboratory are:
- System Unit
- Laptops/Monitor
- Power adapters
- Ethernet cables, etc
The database applications that can be recommended by the system analyst are:
The five word processing packages that are likely to be installed are:
- G00..gle Docs
- MsWord
- MSOffice
- Dropbox Paper
- Corel WordPerfect
Read more about word processing here:
brainly.com/question/985406
#SPJ1
Answer:
B. leave the computer turned off.
Explanation: