Question

In: Computer Science

Special Supplementary Practical Task Consider a point calculation system for grade 12 learners in Namibia. Your...

Special Supplementary Practical Task

  1. Consider a point calculation system for grade 12 learners in Namibia. Your task is to create a system that take in a learner’s names and the 6 subjects written plus the symbol obtained, then calculate the total points obtained. The symbols can either be 1-4 or U for High level and A-G or U for ordinary level with respective points give in table below, it’s up to your system to figure this out. However remember that incase the learner failed English then the learner gets 0 points and a fail. Additional requirements are as follows:
  1. Only valid symbols are excepted
  2. After calculation the system should indicate whether the learner is eligible for tertiary provided they have 25 points and at least an E in English
  3. Symbols can be entered in either case(lower or upper case)
  4. If student skipped the sitting for a given subject then a – (dash) is entered

Ordinary Level

Higher Level

A+

8

1

10

A

7

2

9

B

6

3

8

C

5

4

7

D

4

U

0

E

3

F

2

G

1

U

0

[20 Marks]

Sample 1

Enter learner’s full names: Joshua Maponga

Enter learner’s gender : Male

Enter subjects followed by symbols :

English 2

Khoekhoegowab 1

Biology B

Chemistry C

Mathematics B

Agriculture A

Dear Mr. Joshua Maponga, you have 38 points in 5 subjects. Congratulations you are eligible for tertiary studies in Namibia.

Solutions

Expert Solution

grades = {
"a+":8, "a":7, "b":6, "c":5, "d":4, "e":3, "f":2, "g":1, "u":0,
"1":10, "2":9, "3":8, "4":7, "-":0
}

name = input("Enter learner’s full names :")
gender = input("Enter learner’s gender :")
print("Enter subjects followed by symbols :")
subjects = []
points = 0
english_grade = 0
for i in range(6):
sub = input()
temp = sub.split(" ")
subjects.append( temp )
grade = temp[1].lower()
points = points + grades[grade]
if temp[0].lower() == "english":
english_grade = grade
  
if points>25 and grades[english_grade] >= 3:
print("Dear Mr. {}, you have {} points in 6 subjects.\
Congratulations you are eligible for tertiary studies in Namibia.".format(name, points))
else:
print("Dear Mr. {}, you have {} points in 6 subjects".format(name, points))


Related Solutions

The grade point averages​ (GPA) for 12 randomly selected college students are shown on the right....
The grade point averages​ (GPA) for 12 randomly selected college students are shown on the right. Complete parts​ (a) through​ (c) below. Assume the population is normally distributed. 2.2 3.4 2.9 1.8 0.8 4.0 2.4 1.3 3.9 0.5 2.4 3.3 ​ (a) Find the sample mean. x = _____ ​(Round to two decimal places as​ needed.) ​ (b) Find the sample standard deviation. s= ______ (Round to two decimal places as​ needed.) ​(c) Construct a 95​% confidence interval for the...
One common system for computing a grade point average​ (GPA) assigns 4 points to an​ A,...
One common system for computing a grade point average​ (GPA) assigns 4 points to an​ A, 3 points to a​ B, 2 points to a​ C, 1 point to a​ D, and 0 points to an F. What is the GPA of a student who gets an A in a 3​-credit ​course, a B in each of three 2​-credit ​courses, a C in a 3​-credit ​course, and a D in a 4​-credit ​course?
One common system for computing a grade point average​ (GPA) assigns 4 points to an​ A,...
One common system for computing a grade point average​ (GPA) assigns 4 points to an​ A, 3 points to a​ B, 2 points to a​ C, 1 point to a​ D, and 0 points to an F. What is the GPA of a student who gets an A in a 3​-credit ​course, a B in each of two 2​-credit ​courses, a C in a 3​-credit ​course, and a D in a 4​-credit ​course? The mean grade point score is
One common system for computing a grade point average (GPA) assigns 4 points to an A,...
One common system for computing a grade point average (GPA) assigns 4 points to an A, 3 points to a B, 2 points to a C, 1 point to a D, and 0 points to an F. What is the GPA of a student who gets an A in a 3-credit course, a B in a 2-credit courses, a C in a 3-credit course, and a D in a 4-credit course? 3.20 2.33 3.02 2.89
One common system for computing a grade point average​ (GPA)assigns 4 points to an​ A,...
One common system for computing a grade point average (GPA) assigns 4 points to an A, 3 points to a B, 2 points to a C, 1 point to a D, and 0 points to an F. What is the GPA of a student who gets an A in a 3-credit course, a B in each of two 4-credit courses, a C in a 3-credit course, and a D in a 2-credit course?
What is your understanding of the analysis below. Use practical for each analysis. ]12 marks] a)     ...
What is your understanding of the analysis below. Use practical for each analysis. ]12 marks] a)      Descriptive analysis b)     Diagnostics’ analysis c)      Predictive analysis d)     Prescriptive analysis
Assume that you have a 12-bit floating point number system, similar to the IEEE floating point...
Assume that you have a 12-bit floating point number system, similar to the IEEE floating point standard, with the format shown below and a bias of 7. The value of a floating point number in this system is represented as    FP = (-1)^S X 1.F X 2^(E-bias) for the floating point numbers A = 8.75 and B = -5.375. The binary representation of A is given as A = 0101 0000 1100 Show the hexidecimal representation of B.
Consider a radiology practice system (as a subsystem of the clinical information systems) (200p for task...
Consider a radiology practice system (as a subsystem of the clinical information systems) (200p for task A4 ): A4.1 70p Describe the most typical 5-6 features of a radiology practice system. A4.2. 60p What are the general IS selection criteria that would be applicable if you have to choose a particular radiology practice system for a hospital. A4.3.70 p What physical security means and what authentication means would be suitable for a radiology practice system.
Assignment: For this paper, your task is to provide an assessment of the U.S. political system...
Assignment: For this paper, your task is to provide an assessment of the U.S. political system by discussing the foundational characteristics of the system established by the Constitution. Your paper should also discuss the role of key government institutions (executive, legislative, judiciary) in that system. Make sure to address how power is distributed across the various institutions in the U.S. political system. Introduction and conclusion is a must.
Consider the tripodal molecule, NH3, under C3v point group constraints. Derive a 12 x 12 matrix...
Consider the tripodal molecule, NH3, under C3v point group constraints. Derive a 12 x 12 matrix for the transformational matrix of the C3 rotation axis
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT