Required: program to return the largest of three numbers.
pseudocode
input parameters, int A,B,C;
int T; // temporary storage
if (A>B) T=A;
else T=B;
if (T>C) print(T);
else print(C);
Def countUppercase(s):
count=0
for i in s:
if i.isupper():
count+=1
s=s.replace(i, "")
else:
s=s.replace(i, "")
countUppercase(s)
return count
element=input("Enter the string: ")
string=countUppercase(element)
print("\nNumber of upper letter in the string: ",string)
Answer:
The answer for B is 10% and for C is 40%.
Explanation:
To get the percentage for B you take the the frequecy of students taking 2 courses (5) and multiply it by 100 then you divide it by whole number of students.
For C you do the after adding the number of students taking 1 or 2 courses (20).
2. Identify the function of computer hardware components