2. Write a program to calculate CGPA of a student. The program should be able to get input from the user of the grade for each course. Use data in Table 1 and Table 2 as to calculate the CGPA. Course Credit Hour Mathematics 5 Physics 5 Chemistry 5 Computer 5 BEL 3 CTU 2 Table 1: Course Information Grade Point A 4.00 B 3.00 C 2.00 Table 2: Grade Information
Once you have some code for this, use pastebin (or similar service) to share it, users here can more easily help you with questions and debugging.
It might also help if you let us know what language. But in psudocode you should have something like: ``` set up variables needed loop for input get grades from user do the math print the output ``` The details change depending on if this uses an array, if it is a set number of grades or a variable number, etc.
Join our real-time social learning platform and learn together with your friends!