Answer:
<u><em>Flashing images</em></u>
Explanation:
Content that flashes or flickers can trigger seizures in susceptible individuals. Therefore flashing or <u>flickering content should be avoided</u>.
Answer:
<u> Initial program output (from original program)</u>
Annual salary is: 40000
Monthly salary is: 3333
<u>Program output after workHoursPerWeek = 35</u>
Annual salary is: 35000
Monthly salary is: 2916
<u>Revised program (using variable workWeeksPerYear)</u>
- public static void main(String[] args) {
-
- int hourlyWage = 20;
- int workHoursPerWeek = 35;
- int workWeeksPerYear = 52;
- int annualSalary = 0;
-
- annualSalary = hourlyWage * workHoursPerWeek * workWeeksPerYear;
- System.out.print("Annual salary is: ");
- System.out.println(annualSalary);
-
- System.out.print("Monthly salary is: ");
- System.out.println((hourlyWage * workHoursPerWeek * workWeeksPerYear) / 12);
-
- return;
-
- }
Program output:
Annual salary is: 36400
Monthly salary is: 3033
<u>Revised Program after introducing monthly salary</u>
- public static void main(String[] args) {
-
- int hourlyWage = 20;
- int workHoursPerWeek = 35;
-
- int workWeeksPerYear = 52;
- int annualSalary = 0;
- int monthlySalary = 0;
-
- annualSalary = hourlyWage * workHoursPerWeek * workWeeksPerYear;
- monthlySalary = hourlyWage * workHoursPerWeek * workWeeksPerYear;
-
- System.out.print("Annual salary is: ");
- System.out.println(annualSalary);
-
- System.out.print("Monthly salary is: ");
- System.out.println((monthlySalary) / 12);
-
- return;
-
- }
Explanation:
One reason to use variable to replace the magic number is to improve the readability of the program. If we compared the revised version of the program with the original program, we will find that the variable enable our code easier to understand.
Besides, if we wish to change the value (e.g. working hours per year or per month), we just need to adjust the value assigned on the variables. The variables provide a single access point to get or change the value.
Answer:
By typing ipconfig at the command prompt
Explanation:
To check if an ip router is enabled in a registry, simply do the following:
1. launch your command prompt from accessories in your windows start button
2. Type this command IPconfig
3. Strike the enter button on the keyboard
It will display the various pack of upload and download indicating how packages are routed.
Most likely it’s False . But look it up just in case
Answer: there is an overflow
Explanation:
Here using 4-bit signed fields to store the addition value.
0111 + 0101 = 1100
In above addition the MSB is reserved for sign.
If MSB is 0 means the number is positive.
If MSB is 1 means the number is negative.
The first number 0111 has MSB 0 means it is a positive number.
The second number 0101 has MSB 0 means it is also a positive number.
But after addition the result obtained is 1100 which MSB is 1 indicating the
result is negative number.
How can it be possible to add two positive numbers and get a negative number as result.
This type of situation is called overflow situation.
It is used for error detection purpose.
therefore there is an overflow