Write a Java program for the given problem using Array. UTAS-IBRI wants to calculate the Final mark of Foundation Students based on the course mark obtained in IT for Foundation course. The program should read the number of Students. The program will accept the Student ID. Student name and Course mark of all the students. If Course mark is greater than 79 and less than or equal to 100, then Extra mark given is 10% of Course mark, else if Course mark is greater than 49 and less than 80, then Extra mark given is 5 % of Course mark, else if Course mark is less than 50, then Extra mark given is 2 % of Course mark. Final mark calculated as Course mark plus Extra mark. Display Student ID, Student name, Course mark, Extra mark and Final mark of all students.?
66. Code
Write a Java program for the given problem using Array. UTAS-IBRI wants to calculate the Final mark of Foundation Students based on the course mark obtained in IT for Foundation course. The program should read the number of Students. The program will accept the Student ID. Student name and Course mark of all the students. If Course mark is greater than 79 and less than or equal to 100, then Extra mark given is 10% of Course mark, else if Course mark is greater than 49 and less than 80, then Extra mark given is 5 % of Course mark, else if Course mark is less than 50, then Extra mark given is 2 % of Course mark. Final mark calculated as Course mark plus Extra mark. Display Student ID, Student name, Course mark, Extra mark and Final mark of all students.?
Step by step
Solved in 3 steps with 2 images