Answer:
A PrintWriter reference variable named output that references a PrintWriter object is as follows:
//PrintWriter output = new PrintWriter(outfile);
PrintWriter output = new PrintWriter("output.txt");
The statement that writes the string "Hello World" to the file output is as follows:
//output.print(message)
output.print("Hello World");
Explanation:
 
        
             
        
        
        
Answer:
It’s Java script I think and it makes something say hello everybody
Explanation:
 
        
             
        
        
        
Answer:
The answer is "All of these could make good functions
".
Explanation:
In the given question some information is missing, that is options which can be described as follows:
a. Ask the user to confirm an input with a yes/no answer
b. Sort some input data into an ordered list
c. All of these could make good functions
d. Calculate a complex mathematical expression
A method is a collection of ordered code and provides a generic code, that is used to execute a single, connected operation. 
- A good function is a function, which takes values from the user and it will sort all the data and store in memory, and whenever we call the function, it will give the values.
- It is also used to calculate some complex values, 
 
        
             
        
        
        
Answer:
Means no matter how many processors you use, speed up never increase from 10 times.
Explanation:
If a problem of size W has a serial component Ws,then performance using parallelism:
Using Amdahl's Law:
Tp = (W - Ws )/ N + Ws
Here, Ws = .1,
W - Ws = .9
Performance Tp = (.9 / N) + .1
---------------------------------------------------------
Speed Up = 1 / ( (.9 / N) + .1)
If N -> infinity, Speed Up <= 10
Means no matter how many processors you use, speed up never increase from 10 times.
 
        
             
        
        
        
Answer:
import java.util.Scanner;
public class num8 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("Enter month's budget");
        double monthBudget = in.nextDouble();
        double totalExpenses = 0.0;
        double n;
        do{
            System.out.println("Enter expenses Enter zero to stop");
            n = in.nextDouble();
            totalExpenses += n;
        }while(n>0);
        System.out.println("Total expenses is "+totalExpenses);
 System.out.println("The amount over your budget is "+ Math.abs(monthBudget-totalExpenses));
    }
}
Explanation:
- Using Java programming language
- Prompt user for month's budget
- Use Scanner class to receive and store the amount entered in a variable
- Use a do while loop to continuously request user to enter amount of expenses
- Use a variable totalExpenses to add up all the expenses inside the do while loop
- Terminate the loop when user enters 0 as amount.
- Subtract totalExpenses from monthBudget and display the difference as the amount over the budget