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:
Post advertisements on social media and message the subscribers.
Explanation:
There is no point in not promoting and putting forward the work that he has been doing. All of the given options are about promoting the content but Sam needs to choose the ones which are efficient and seem professional as well.
Posting advertisements about the website promotes the content on a wider base and helps in luring more and more people to the website.
Messaging or sending an email to the subscribers is a healthy of letting the subscribers about the updates and latest posts.
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