Answer:
ohhh ok to all transactions.
Answer:
Simplex transmission
Explanation:
Communication between computer and keyboard involves which transmission? Answer: Simplex transmission requires communicating between a computer and a keyboard. The simple transmission & communication channel allows data from only one direction.
Answer:
The following are the code in the Java Programming Language.
//set the for loop
for (k = 0; k < nMembers; k++)
{
//check that currentMembers[k] is equal to the memberID
if (currentMembers[k] == memberID)
{
//then, initialize isAMember to true
isAMember = true;
//and initialize the value of nMembers in k
k = nMembers;
}
//otherwise
else
{
//initialize isAMember to false
isAMember = false;
}
}
Explanation:
<u>The following are the description of the program</u>.
- Set the for loop statement that iterates from 0 and stops at the variable 'nMembers'.
- Set the if conditional statement that checks the variable 'currentMembers[k]' is equal to the variable 'memberID' then, initialize 'true' boolean value in the variable 'isAMember' and also initialize the value of the variable 'nMembers' in the variable 'k'.
- Otherwise, initialize 'false' boolean value in the variable 'isAMember'.
def GPAcalc(grade, weighted):
grade = grade.lower()
dictionary = {"a": 4, "b": 3, "c": 2, "d": 1, "f": 0}
if weighted == 1 and grade in dictionary:
return "Your GPA score is: "+str(dictionary[grade] + 1)
elif weighted == 0 and grade in dictionary:
return "Your GPA score is : "+str(dictionary[grade])
else:
return "Invalid"
print(GPAcalc(input("Input a letter grade: "), int(input("Is it weigthed? (1= yes, 0= no)"))))
I modified the code a bit to cut down on the use of if and elif statements. If you need me to change it, I will. Best of luck.