Explanation:
See the attached image for The interface (.h file) of a class Counter
Answer:
no it is not
Explanation:
it's not because of the cells in side the chip for the data that comes from the cell phone
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:
- import math
-
- def standard_deviation(aList):
- sum = 0
- for x in aList:
- sum += x
-
- mean = sum / float(len(aList))
-
- sumDe = 0
-
- for x in aList:
- sumDe += (x - mean) * (x - mean)
-
- variance = sumDe / float(len(aList))
- SD = math.sqrt(variance)
-
- return SD
-
- print(standard_deviation([3,6, 7, 9, 12, 17]))
Explanation:
The solution code is written in Python 3.
Firstly, we need to import math module (Line 1).
Next, create a function standard_deviation that takes one input parameter, which is a list (Line 3). In the function, calculate the mean for the value in the input list (Line 4-8). Next, use the mean to calculate the variance (Line 10-15). Next, use sqrt method from math module to get the square root of variance and this will result in standard deviation (Line 16). At last, return the standard deviation (Line 18).
We can test the function using a sample list (Line 20) and we shall get 4.509249752822894
If we pass an empty list, a ZeroDivisionError exception will be raised.
Explanation:
Technology is a method or skill of utilizing scientific information to reach the goals that include computers, machines and also different techniques.
Advantage of using technology
- Information can be quickly stored and shared very easily.
- Technology is used in all companies and businesses to achieve the tasks in a short period with efficiency,
- Technology has reduces the human errors that have helped to reduce the work stress.
Disadvantages of using technology
- Corruption and terrorism have increased due to advancements in technology.
- with the help of technology, digital and data manipulation is done.
- Too much connected or dependent on technology can cause several psychological problems such as narcissism,depressions, distraction.
- Using too much of technology can affect physical health such as vision problems, hearing problems, neck strain.