Write a C# program that accept a student biodata; names, age, sex and address. You should also do the following: 1. Accept n number of courses and their scores for each student 2. Assign appropriate unit to each of the course entered. 3. Classify the scores according to the table below Letter Grade Point Mark % A 4 70 – 100 B 3 60 – 69 C 2 50 – 59 D 1 45 – 49 E 0 0 – 44 Grade Point per course (GP) = unit*point Total Weighted Grade Point (TWGP) = ∑GP Total Number of Unit (TNU)= ∑units Computation of Cumulative Grade Point Average (CGPA) In order to obtain the Cumulative Grade Point Average (CGPA) of a student = TWGP/TU The value of CGPA shall be expressed correct to two decimal place. Cumulative Grade Point Average Class of Degree 3.5 – 4.00 First 3.0 – 3.49 Second Class Upper 2.0 -2.99 Second Class Lower 1.0 – 1.99 Third Class <1.0 Fail Finally, generate the class. Note: Use Switch statement not If statement.
Operations
In mathematics and computer science, an operation is an event that is carried out to satisfy a given task. Basic operations of a computer system are input, processing, output, storage, and control.
Basic Operators
An operator is a symbol that indicates an operation to be performed. We are familiar with operators in mathematics; operators used in computer programming are—in many ways—similar to mathematical operators.
Division Operator
We all learnt about division—and the division operator—in school. You probably know of both these symbols as representing division:
Modulus Operator
Modulus can be represented either as (mod or modulo) in computing operation. Modulus comes under arithmetic operations. Any number or variable which produces absolute value is modulus functionality. Magnitude of any function is totally changed by modulo operator as it changes even negative value to positive.
Operators
In the realm of programming, operators refer to the symbols that perform some function. They are tasked with instructing the compiler on the type of action that needs to be performed on the values passed as operands. Operators can be used in mathematical formulas and equations. In programming languages like Python, C, and Java, a variety of operators are defined.
Write a C# program that accept a student biodata; names, age, sex and address. You should also do the following:
1. Accept n number of courses and their scores for each student
2. Assign appropriate unit to each of the course entered.
3. Classify the scores according to the table below
Letter Grade |
Point |
Mark % |
A |
4 |
70 – 100 |
B |
3 |
60 – 69 |
C |
2 |
50 – 59 |
D |
1 |
45 – 49 |
E |
0 |
0 – 44 |
Grade Point per course (GP) = unit*point
Total Weighted Grade Point (TWGP) = ∑GP
Total Number of Unit (TNU)= ∑units
Computation of Cumulative Grade Point Average (CGPA) In order to obtain the Cumulative Grade Point Average (CGPA) of a student = TWGP/TU
The value of CGPA shall be expressed correct to two decimal place.
Cumulative Grade Point Average |
Class of Degree |
3.5 – 4.00 |
First |
3.0 – 3.49 |
Second Class Upper |
2.0 -2.99 |
Second Class Lower |
1.0 – 1.99 |
Third Class |
<1.0 |
Fail |
Finally, generate the class.
Note: Use Switch statement not If statement.
Step by step
Solved in 3 steps with 2 images