Write a C program to read names and marks ofnnumber of students from keyboard (nmust be less than 50). The entered mark is out of 40. Convert the mark to out of 100. Use 2D array for names and 1D array for marks. Then, display all the names, marks(/40), marks(/100), and the average marks of all students. The sample input/output is shown in Figure 1.
Enter number of students: 3 Student 1 Enter name AHMAD BIN ALI Enter markl 25.5 Student 2 - Enter name MEILINGLING Enter mark 30 Student 3 - Enter name: RAJA GOPAL Enter mark 35.0 MARKS (/40) MARKS (/100) LIST OF STUDENTS 63.75 76.25 87.50 25.5 30.5 35.0 1. AHMAD BIN ALI 2. MEI LING LING 3. RAJA GOPAL Average mark is 75.83 Figure 1
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here