3.5 Write a program that takes a list of students' names and marks and calculates the average marks. You are required to declare two arrays called names and marks. Assume number of students are 5....

Write a C program3.5 Write a program that takes a list of students' names and marks and calculates the average<br>marks. You are required to declare two arrays called names and marks. Assume number of<br>students are 5.<br>Declare array names: (use 2-D array)<br>char names [num_std] [name_len]; //name length can be 20<br>characters long<br>Declare array marks:<br>float marks [num_std];<br>Sample output:<br>Enter student name : Jason<br>Enter student marks : 60<br>Enter student name : Ahmad<br>Enter student marks : 77<br>Enter student name : Chong<br>Enter student marks : 88<br>Enter student name : Kumar<br>Enter student marks : 70<br>Enter student name : Daniel<br>Enter student marks : 55<br>Jason<br>60.00<br>Ahmad 77.00<br>Chong<br>Kumar<br>88.00<br>70.00<br>Daniel<br>55.00<br>Average marks for 5 students : 70.00<br>

Extracted text: 3.5 Write a program that takes a list of students' names and marks and calculates the average marks. You are required to declare two arrays called names and marks. Assume number of students are 5. Declare array names: (use 2-D array) char names [num_std] [name_len]; //name length can be 20 characters long Declare array marks: float marks [num_std]; Sample output: Enter student name : Jason Enter student marks : 60 Enter student name : Ahmad Enter student marks : 77 Enter student name : Chong Enter student marks : 88 Enter student name : Kumar Enter student marks : 70 Enter student name : Daniel Enter student marks : 55 Jason 60.00 Ahmad 77.00 Chong Kumar 88.00 70.00 Daniel 55.00 Average marks for 5 students : 70.00

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here