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:
True
Explanation: The first step is to make a goal. The second step is to plan how you will accomplish you goal. The third and final step is to accomplish your goal.
Answer:
I would reset the Domain Name System (DNS)
Explanation:
One factor that could lead to the "Site Cannot Be Reached" error is DNS "poisoning". Another is invalid DNS cache. Both can be caused by an attack on the system by people trying to spoof the system. Spoofing ensures that even when the right address is entered, it leads one to another web address.
One way to quickly reset the DNS is to run ipconfig /flushdns
This helps to clear the DNS cache.
Once the DNS cache has been successfully flushed, the system returns a confirmatory message that reads “flushed the DNS resolver cache”.
The systems administrator can now proceed to reconfigure the IP address(es)
Cheers
Answer:
The following where many reasons why IPv6 was used instead of IPv5 which are the limitation of it's 32 bit address, IPv5 began or used with a different name called Internet streaming, IPv6 provides unlimited addressing, because it comprises of 128 bit.
Explanation:
Solution:
The following reasons why Proponents of IPs used IPV6 instead of IPv5 is stated as follows:
- Due to its limited 32 bit addressing
- IPv6 offers almost unlimited addressing because of its 128-bit addressing
- IPv5 started under a different name which is internet stream(ST)
- ST(Internet streaming) was developed for streaming video and voice
- ST was developed by Apple, NeXT, and Sun Microsystems
- ST was effective on specific frequency to carry out communication