In: Computer Science
Create the pseudocode solution to a program that
calculates the final score and letter grade for
one student. Please use the following grading system:
9 Homework Assignments – 100 points each 10 points
11 Quizzes – 100 points each 5 points
5 Projects – 100 points each 10 points
6 Discussion posts – 100 points each 10 points
4 Exams – 100 points each 65 points
A = 90 – 100% B = 80 – 89% C = 70 – 79% D = 60 – 69% F = 0 –
59%
Modify part 2 of the project by including repetitive structures,
functions and input validation
(Chapters 5, 6 and 7). Try to reduce your code by
reusing functions or modules that perform
similar tasks. Do not use arrays.
Answer: Hey!! kindly find your solution below. Let me know if any issue. Thanks.
Pseudocode: This pseudocode has three sub functions and one main function. In main, all sub-functions are called.
if any issue comment me in the comment box.
function calAvg (sum)
avg = sum / 5
return avg
end function
function calcGrade (avg)
if avg >= 90 AND avg <= 100 then
output "Grade : A"
else
if avg >= 80 AND avg <= 89 then
output "Grade : B"
else
if avg >= 70 AND avg <= 79 then
output "Grade : C"
else
if avg >= 60 AND avg <= 69 then
output "Grade : D"
else
if avg >= 0 AND avg <= 59 then
output "Grade : F"
end if
end if
end if
end if
end if
end function
function inputMarks
output "Enter marks for homework Assignments:"
input ha
output "Enter marks for Quizzes:"
input qu
output "Enter marks for Projects:"
input pro
output "Enter marks for Discussion parts:"
input dis
output "Enter marks for exams:"
input ex
total = ha + qu + pro + dis + ex
output "Final Score: ",total
return total
end function
function Main
sum = inputMarks()
avg = calAvg(sum)
calcGrade(avg)
end function