Answer:
End note, I think plz tell me if im wrong thank you
Answer:
B.
Explanation:
In Javascript, the if should have a condition attached to it with parenthesis and curly braces.
True
False
The statement the Internet is considered a WAN is true.
We are given that;
The statement about WAN
Now,
A WAN, or a wide area network, is a computer network that spans over a large geographic area, such as regions, countries, or even the world.
The Internet is the largest and most well-known example of a WAN, as it connects millions of devices across the globe using various communication protocols and technologies.
A WAN can also be composed of smaller networks, such as local area networks (LANs) or metropolitan area networks (MANs), that communicate with each other.
Therefore, by WAN the answer will be true.
To learn more about WAN visit;
#SPJ6
Answer:
true. internet is definitely wan
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
def determine_grade(result):
if float(result) >= 90.0 and float(result) <= 100.0:
print("Letter Grade: A")
elif float(result) >= 80.0 and float(result) <90.0:
print("Letter Grade: B")
elif float(result) >= 70.0 and float(result) < 80.0:
print("Letter Grade: C")
elif float(result) >= 60.0 and float(result) < 70.0:
print("Letter Grade: D")
else:
print("Letter Grade: F")
print(" ")
for i in range(2):
name = input("Student Name: ")
result = calc_average(name)
determine_grade(result)
See more about python at brainly.com/question/26104476
Answer:
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
def determine_grade(result):
if float(result) >= 90.0 and float(result) <= 100.0:
print("Letter Grade: A")
elif float(result) >= 80.0 and float(result) <90.0:
print("Letter Grade: B")
elif float(result) >= 70.0 and float(result) < 80.0:
print("Letter Grade: C")
elif float(result) >= 60.0 and float(result) < 70.0:
print("Letter Grade: D")
else:
print("Letter Grade: F")
print(" ")
for i in range(2):
name = input("Student Name: ")
result = calc_average(name)
determine_grade(result)
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
-> Add test scores
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
def determine_grade(result):
if float(result) >= 90.0 and float(result) <= 100.0:
print("Letter Grade: A")
elif float(result) >= 80.0 and float(result) <90.0:
print("Letter Grade: B")
elif float(result) >= 70.0 and float(result) < 80.0:
print("Letter Grade: C")
elif float(result) >= 60.0 and float(result) < 70.0:
print("Letter Grade: D")
else:
print("Letter Grade: F")
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
determine_grade(result)-> Call the determine_grade function
In python:
year = int(input("Enter the school year: "))
if 0 <= year <= 5:
print("Elementary school")
elif 6 <= year <= 8:
print("Middle school")
elif 9 <= year <= 12:
print("High School")
elif 13 <= year <= 16:
print("College")
elif year >= 17:
print("Post-secondary")
else:
print("Invalid")
I hope this helps!
Answer:
See the program code at explaination
Explanation:
CREATE PROCEDURE sp_Q1
atcountry1 NVARCHAR(15),
atcountry2 NVARCHAR(15)
AS
BEGIN
BEGIN
SELECT SupplierID, CompanyName, Phone, Country FROM suppliers
where Country in (atcountry1,atcountry2)
SELECT ProductID, ProductName, UnitPrice, SupplierID FROM Products
where SupplierID in(
SELECT SupplierID FROM suppliers
where Country in (atcountry1,atcountry2)) ORDER BY SupplierID
END
END
GO
-- Testing script.
DECLARE atRC int
DECLARE atcountry1 nvarchar(15)
DECLARE atcountry2 nvarchar(15)
-- Set parameter values here.
set atcountry1='UK'
set atcountry2='Canada'
EXECUTE atRC = [dbo].[sp_Q1]
atcountry1
,atcountry2
GO
Note: please kindly replace all the "at" with the correct at symbol.
The editor doesn't support it on Brainly.