Answer:
Well, I am studying software engineering and ethical hacking, with the terms I mentioned it is very self explanatory how I use computers for those fields. In case it is still not self explanatory, we use computers to make software and websites accessing tools that can only be access using a computer and a working internet connection is required. Ethical hacking requires a computer to test the website or application security in order to do that we need a active internet connection in order to access the website itself.
Explanation:
i dont really know i am not really sure what i qill be in the future
Answer:
The program written in Python is as follows:
See Explanation section for line by line explanation
for n in range(100,1000):
isum = 0
for d in range(1,n):
if n%d == 0:
isum += d
if isum == n * 2:
print(n)
Explanation:
The program only considers 3 digit numbers. hence the range of n is from 100 to 999
for n in range(100,1000):
This line initializes sum to 0
isum = 0
This line is an iteration that stands as the divisor
for d in range(1,n):
This line checks if a number, d can evenly divide n
if n%d == 0:
If yes, the sum is updated
isum += d
This line checks if the current number n is a double-perfect number
if isum == n * 2:
If yes, n is printed
print(n)
When the program is run, the displayed output is 120 and 672
Dark background and dark text
Dark background and light text
Similar background and text
Answer: Dark background and light text.
Explanation:
Assuming when you mean by "light text", you mean by white text. This should be able to be readable by users visiting the site.
Answer:
Contrasting background and text
Explanation:
When selecting a color scheme for a website, designers often choose complementary colors that keep the visitor on the website.
Your web page should have three main colors: one for the background, one for the text, and one for the headings. The colors you select should complement each other and be on opposite sides of the color wheel.
Also i got it right on my test!
Answer:
See explaination
Explanation:
void showSeatingChart(string seatingChart[20][40], const int ROWS, const int COLS){
for(int i = 0;i<ROWS;i++){
for(int j = 0;j<COLS;j++){
cout<<seatingChart[i][j]<<" ";
}
cout<<endl;
}
}
c) Function averageLow: This function calculates and returns the average low temperature for the year.
d) Function indexHighTemp: This function returns the index of the highest high temperature in the array.
e) Function indexLowTemp: This function returns the index of the lowest low temperature in the array."
Answer:
The Java code is given below with appropriate comments
Explanation:
import java.util.Scanner;
public class Temperature {
public static void main(String[] args)
{
// declaring the temperatures array
double[] maxTemp = new double[12];
double[] lowTemp = new double[12];
double avgHighTemp = 0;
double avgLowTemp = 0;
Scanner kb = new Scanner(System.in);
System.out.println("Please enter the highest and lowest temperatures");
System.out.println("of each month one by one below\n");
// inputting the temperatures one by one
for(int i = 0; i < 12; i++)
{
System.out.print("Please enter the highest temperature for month #" + (i+1) + ": ");
maxTemp[i] = Integer.parseInt(kb.nextLine());
System.out.print("Please enter the lowest temperature for month #" + (i+1) + ": ");
lowTemp[i] = Integer.parseInt(kb.nextLine());
System.out.println();
}
avgHighTemp = getAvgHighTemperature(maxTemp);
avgLowTemp = getAvgLowTemperature(lowTemp);
System.out.printf("Average high temperature is: %.2f\n", avgHighTemp);
System.out.printf("Average low temperature is: %.2f\n", avgLowTemp);
}
// method to calculate the average high temperature
public static double getAvgHighTemperature(double[] highTemp)
{
double total = 0;
for(int i = 0; i < 12; i++)
{
total += highTemp[i];
}
return total/12;
}
// method to calculate the average low temperature
public static double getAvgLowTemperature(double[] lowTemp)
{
double total = 0;
for(int i = 0; i < 12; i++)
{
total += lowTemp[i];
}
return total/12;
}
}
User enters:
lemur parrot cat rock
Outputs:
You have a lemur with a total of 1 pet(s)
You have a parrot with a total of 2 pet(s)
You have a cat with a total of 3 pet(s)
Following are the python program to use the loop to count the number of pets until the user enters the "rock":
c = 0#defining a variable c that initilzes with 0
p = input()#defining a variable p that input value
while p != 'rock':#defining a loop that check p value not equal to rock
c += 1#using c variable for counts total number of pets
print('You have a %s with a total of %d pet(s)' %(p,c))#print total number of pet
p = input() #input value
Output:
Please find the attached file.
Program Explanation:
Find out more about the loop here:
one of the 4 vs of big data that refers to uncertainty due to data inconsistency and incompleteness, ambiguities, latency, deception, and model approximations is veracity.
Conformity with truth or fact : accuracy. : devotion to the truth : truthfulness. 3. /vəˈraes.ə.ti/ the quality of being true, honest, or accurate: Doubts were cast on the veracity of her alibi. Synonyms. Veracity is the quality of being true or the habit of telling the truth. He was shocked to find his veracity questioned. Veracity refers to the quality of the data that is being analyzed. High veracity data has many records that are valuable to analyze and that contribute in a meaningful way to the overall results. Low veracity data, on the other hand, contains a high percentage of meaningless data. This type of source is the starting point for any historian-researcher. Some written sources are forgeries.
To know more about veracity visit:
#SPJ4