# Which is true of diagnosing and troubleshooting? Diagnosing attempts to identify the source of a problem, while troubleshooting looks for the nature of the problem. Diagnosing is used to fix problems with hardware, while troubleshooting is used to fix problems in program code. Diagnosing looks for the nature of the problem, while troubleshooting attempts to identify the source of the problem. Diagnosing is used to fix problems in program code, while troubleshooting is used to fix problems with hardware.

Explanation:

i just took the test

Explanation: because Diagnosing looks for the nature of the problem, while troubleshooting attempts to identify the source of the problem.

## Related Questions

Given the following: int funcOne(int n) { n *= 2; return n; } int funcTwo(int &n) { n *= 10; return n; } What will the following code output? int n = 30; n = funcOne(funcTwo(n)); cout << "num1 = " << n << endl; Group of answer choices Error num1 = 60 num 1 = 30 num1 = 600 num1 = 300

num1 = 600

Explanation:

Given

The attached code snippet

Required

The output of n = funcOne(funcTwo(n));  when n = 30

The inner function is first executed, i.e.

funcTwo(n)

When n = 30, we have:

funcTwo(30)

This returns the product of n and 10 i.e. 30 * 10 = 300

So:

funcTwo(30) = 300

n = funcOne(funcTwo(n)); becomes: n = funcOne(300);

This passes 300 to funcOne; So, we have:

n = funcOne(300);

This returns the product of n and 2 i.e. 300 * 2 = 600

Hence, the output is 600

This quiz is meant to test your understanding of secure passwords. Click on the title and answer the following questions in the submission box: What are the characteristics of a secure password? Why is phishing harmful?

A secure password has the following characteristics:

• long - it should be more than 15 characters
• mix of characters - it should composed of letters (uppercase and lowercase), numbers and symbols
• don't use dictionary word - avoid using common words such as "orange", "password"
• don't use memorable key paths - avoid using the sequential letter or numbers such as "abc123"

Phishing is a kind of social engineering where a cyber criminals  trying to trick the victims to get benefit from them. For example, a cyber criminal can send a phishing email to tell the victims about something wrong with their credit card or bank account and provide a malicious link and persuade the victim to access their fake website that resembles an official bank website.  From there, the victims can send credential info to the cyber criminals without their awareness. Phishing can also be done through phone call. Phishing is harmful as a victim can fall into the trap of disclosing highly critical credential info that incur a huge loss of money.

Expressions Write a console program that prompts the user for 3 double precision floating point values input1, input2, input3. Have the program compute and display the following values. the sum of input1, input2, input3 the average of input1, input2, input3 the log2 of input1 To access the built-in function log2 -- log2(X) computes the base 2 logarithm of X, you need to include the header at the top of your code.

See Explaination

Explanation:

#include <iostream>

#include <cmath>

using namespace std;

int main()

{

float input1, input2, input3;

float sum=0.0, avg, l;

cout<<"enter the value for input1: ";

cin>>input1;

cout<<"enter the value for input2: ";

cin>>input2;

cout<<"enter the value for input3: ";

cin>>input3;

sum=input1+input2+input3;

cout<<"sum of three numbers: "<<sum<<endl;

avg=sum/3;

cout<<"average of three numbers: "<<avg<<endl;

l=log2(input1);

cout<<"log2 value of input1 number: "<<l;

return 0;

}

output:

enter the value for input1: 4

enter the value for input2: 5

enter the value for input3: 6

sum of three numbers: 15

average of three numbers: 5

log2 value of input1 number: 2

Write a python program that asks the user to enter a student's name and 8 numeric tests scores (out of 100 for each test). The name will be a local variable. The program should display a letter grade for each score, and the average test score, along with the student's name. There are 12 students in the class. Write the following functions in the program:
calc_average - this function should accept 8 test scores as arguments and return the average of the scores per student
determine_grade - this function should accept a test score average as an argument and return a letter grade for the score based on the following grading scale:
90-100 A
80-89 B
70-79 C
60-69 D
Below 60 F

In this exercise we have to use the computer language knowledge in python to write the code as:

the code is in the attached image.

In a more easy way we have that the code will be:

def calc_average(name):

score = []

sum = 0

for j in range(8):

inp = int(input("Test Score"+str(j+1)+": "))

score.append(inp)

sum = sum + inp

if inp>=90 and inp<=100:

print("A")

elif inp>=80 and inp<90:

print("B")

elif inp>=70 and inp<80:

print("C")

elif inp>=60 and inp<70:

print("D")

else:

print("F")

avg = sum/8

print("Result Details of "+name)

print("Average Score: "+str(avg))

return avg

if float(result) >= 90.0 and float(result) <= 100.0:

elif float(result) >= 80.0 and float(result) <90.0:

elif float(result) >= 70.0 and float(result) < 80.0:

elif float(result) >= 60.0 and float(result) < 70.0:

else:

print(" ")

for i in range(2):

name = input("Student Name: ")

result = calc_average(name)

See more about python at brainly.com/question/26104476

The program doesn't make use of comments (See Explanation)

Also the source code is attached as image to enable you see the proper format and indexing of the source code

The program using python is as follows

def calc_average(name):

score = []

sum = 0

for j in range(8):

inp = int(input("Test Score"+str(j+1)+": "))

score.append(inp)

sum = sum + inp

if inp>=90 and inp<=100:

print("A")

elif inp>=80 and inp<90:

print("B")

elif inp>=70 and inp<80:

print("C")

elif inp>=60 and inp<70:

print("D")

else:

print("F")

avg = sum/8

print("Result Details of "+name)

print("Average Score: "+str(avg))

return avg

if float(result) >= 90.0 and float(result) <= 100.0:

elif float(result) >= 80.0 and float(result) <90.0:

elif float(result) >= 70.0 and float(result) < 80.0:

elif float(result) >= 60.0 and float(result) < 70.0:

else:

print(" ")

for i in range(2):

name = input("Student Name: ")

result = calc_average(name)

Explanation:

def calc_average(name):  -> Declares the function calc_average(name); It accepts local variable name from the main function

score = []

-> Initialize an empty list to hold test scores

sum = 0

-> Initialize sum of scores to 0

for j in range(8):

-> Iterate from test score 1 to 8

inp = int(input("Test Score"+str(j+1)+": "))

-> This line accepts test score from the user

score.append(inp)

-> The user input is then saved in a lisy

sum = sum + inp

The following lines determine the letter grade of each test score

if inp>=90 and inp<=100:

print("A")

---

else:

print("F")

avg = sum/8  -> Calculate average of the test score

The next two lines prints the name and average test score of the student

print("Result Details of "+name)

print("Average Score: "+str(avg))

return avg

-> This line returns average to the main method

The following is the determine_grade method; it takes it parameter from the main method and it determines the letter grade depending on the calculated average

if float(result) >= 90.0 and float(result) <= 100.0:

elif float(result) >= 80.0 and float(result) <90.0:

elif float(result) >= 70.0 and float(result) < 80.0:

elif float(result) >= 60.0 and float(result) < 70.0:

else:

print(" ")

for i in range(2):

-> This is the main method

name = input("Student Name: ")  -> A local variable stores name of the student

result = calc_average(name)  -> store average of scores in variable results

IN PYTHON Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, and output all integers less than or equal to that value.

Ex: If the input is:

Enter the number of integers in your list: 5
Enter the 5 integers:
50
60
140
200
75
Enter the threshold value: 100
the output is:

The integers that are less than or equal to 100 are:
50
60
75

The 5 indicates that there are five integers in the list, namely 50, 60, 140, 200, and 75. The 100 indicates that the program should output all integers less than or equal to 100, so the program outputs 50, 60, and 75. Such functionality is common on sites like Amazon, where a user can filter results. Your code must define and call the following two functions: def get_user_values() def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold) Utilizing functions will help to make your main very clean and intuitive.

def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):

for value in user_values:

if value < upper_threshold:

print(value)

def get_user_values():

n = int(input())

lst = []

for i in range(n):

lst.append(int(input()))

return lst

if __name__ == '__main__':

userValues = get_user_values()

upperThreshold = int(input())

output_ints_less_than_or_equal_to_threshold(userValues, upperThreshold)

Explanation:

"Write an SQL query that displays the Ssn and Last name of all employees who is a supervisor of a Department Manager"

SELECT Ssn,

Last_name

FROM employees

WHERE position = supervisor;

Explanation:

SELECT is an SQL query statement that is used to initiate the display of wanted variables.

The names of the variables often succeed the SELECT statement and they are separated by commas.

FROM is an SQL query statement that indicates the table fro which the selected variables be displayed.

WHERE is used to filter your search and return only rows that meet the criteria.

; signifies the end of a query and calls for an execution.