Question: Write a C program. You need to store Student IDs and their corresponding marks. You decide to store them in two arrays of 10 elements:

Write a C program.

Write a C program. You need to store Student IDs and their

You need to store Student IDs and their corresponding marks. You decide to store them in two arrays of 10 elements: studID: an array of 10 studentID strings. Each studentID is a string with 7 characters (6 numbers plus the '\0'). marks: an array of integers which will store the mark associated with each studentId. Write a program that will prompt a user to enter 10 Student IDs and Student marks and store these values into the arrays. Write a function called printMarks() which given an array of studentIDs and an array of marks (and any other arguments you may need), prints out both the studentId and the corresponding mark Update the main() function to call printMarks(). When you test the program, you should get output similar to this: ./student_marks_soln Enter Student ID and Student mark: 120000 99 Enter Student ID and Student mark: 120001 95 .../repeating prompt 10 times Student Marks: ---------------- 120000: 99 120001: 95 ..../printing out rest of array

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!