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.
Answer: I a reference to the next node
III a data element
Explanation:
A linked list is simply referred to as a linear data structure, whereby the elements would not be stored at memory locations that are together in the sequence.
In simple words, we can simply say that a linked list is made up of nodes in which, every node has a data element and also a link or reference to the next node that is in the list.
Therefore, based on the explanation above, the correct option will be:
I. a reference to the next node
III a data element
Circles
Area of Circle is 
Total percentage increase in the area of the modified circle is 69%
Explanation:
(a) Given the diameter of the circle be d
Then the radius of the circle = r = d/2
and the area of the circle is given by:
Area(A) =
A = 
A = 
The area of circle is 
(b)
The increase in percentage while changing the dimensions is given by the formula :
Total % increase = a% + b% - (a% * b%)/100
Where ,
a% is the percentage increase in side a
b% is the percentage increase in side b
Let the percentage increase in radius is : a%
Since a% = b%
So the formula is
Total increase % = a% + a% + (a% * a%)/100
Given here the diameter of the circle increases by 30% so a =30
Therefore, putting the value of a in the formula
Total increase % = 30% + 30% + (30% *30%)/100
Total increase % = 60% + 9%
Total increase % =69%
Therefore the total percentage increase in the area of the modified circle is 69%