Answer:
Check the explanation
Explanation:
// include the necessary packages
import java.io.*;
import java.util.*;
// Declare a class
public class DataReader
{
// Start the main method.
public static void main(String[] args)
{
// create the object of scanner class.
Scanner scan = new Scanner(System.in);
// Declare variables.
boolean done = false;
boolean done1 = false;
float sum = 0;
double v;
int count = 0;
// start the while loop
while (!done1)
{
// start the do while loop
do
{
// prompt the user to enter the value.
System.out.println("Value:");
// start the try block
try
{
// input number
v = scan.nextDouble();
// calculate the sum
sum = (float) (sum + v);
}
// start the catch block
catch (Exception nfe)
{
// input a character variable(\n)
String ch = scan.nextLine();
// display the statement.
System.out.println(
"Input Error. Try again.");
// count the value.
count++;
break;
}
}
// end do while loop
while (!done);
// Check whether the value of count
// greater than 2 or not.
if (count >= 2)
{
// display the statement on console.
System.out.println("Sum: " + sum);
done1 = true;
}
}
}
}
Sample Output:
Value:
12
Value:
12
Value:
ten
Input Error. Try again.
Value:
5
Value:
nine
Input Error. Try again.
Sum: 29.0
Answer:
3 parameters are passed into the function.
1 value will be returned from the function.
Explanation:
From the function definition "function sum(first, second, third)", we can see that there are three value/parameters are passed in the function.Then variable "result" will be the sum all the three values. After that it will print the all three values in new line. Then the function will return one value which is the sum of all three that is value of "result".As there is only one value returned by the return statement in the function.
Answer: A. Using different cell styles can help you differentiate different types of data.
B. Fonts should be easily readable and of appropriate size.
D. Be consistent with themes across worksheets and workbooks.
Explanation:
A theme refers to the preset package that contains functionality details and graphical appearance.
The guidelines for using themes include:
• Using different cell styles can help you differentiate different types of data.
• Fonts should be easily readable and of appropriate size.
• Be consistent with themes across worksheets and workbooks.
Therefore, the correct options are A, B and D.
Answer:
A hard drive
Explanation:
Since tablets and phones are compact, they are better off not having a big, giant, bulky storage device like hard drives. Modern computing made hard drives less important by developing Solid-State Drives (SSDs) and extremely dense (512 bit) storage that can provide the same if not more storage than a traditional hard drive at the fraction of the size.
After the viruses would be detected we have to clean them.
means we have to erase the virus .