Answer:
import java.util.*;
public class Main {
public static void main(String[] args)
{
Scanner scan = new Scanner();
double budget=0, num=0, total=0;
System.out.println("Your budget for the month? ");
budget=scan.nextDouble();
System.out.println("enter all expense, and after that type -9999 to quit: ");
while(num != -9999)
{
total+=num;
num=scan.nextDouble();
}
if(total<=budget)
{
System.out.println("under budget by ");
System.out.println(budget-total);
}
else
{
System.out.println("over budget by ");
System.out.println(total-budget);
}
}
}
Explanation:
- Take the budget as an input from user and store it to the budget variable.
- Loop until user has entered all his expenses and keep on adding them to the total variable.
- Check If the total is less than or equal to budget or otherwise, and then print the relevant message accordingly.
Answer:
have the same SSID but different channels
Explanation:
Based on the information provided within the question it can be said that the best option to accomplish this would be to have the same SSID but different channels. This would maintain the users connected to the same network name (SSID) but still be able to roam and jump from one access point to the other.
Answer:
The output of this code can be given as follows:
Output:
Here There Everywhere
But notin Texas
Explanation:
In the give java code a class "Questions" is defined inside this class the main method is defined in the main method we use three print function that can be described as follows:
- In the first print function, we print the message that is "Here".
- In the second and third print function, we use println that print data or message in the next line that is "There Everywhere"
and in the next line "But not" and "in Texas".
Answer:
A. True
Explanation:
1. I took the test
2. Flash drive ports are connected to the rest of the computer, so putting in an infected flash drive into the port will cause the bug to spread throughout the whole device.