Question: Write a user-defined function inputData to take 15 students' names and total marks from user input using a structure. Write students names here in a

Write a user-defined function inputData to take 15 students' names and totalWrite a user-defined function inputData to take 15 students' names and total marks from user input using a structure. Write students names here in a text file named names.txt and pass total marks to OddCal and evenCal functions from this function. Write a function oddCal to calculate odd numbers and store them in an array. Return the result to the inputData function and also write the results in odd.txt. Write another function evenCal to calculate even Numbers and store them in an array.Return the result to the inputData function and also write the results in even.txt. Also Print the evenSum and oddSum from the main function in Console Screen using return value of inputData function.

(Solve it in C language in easier way.)exam going

Thank You

3. Write a user-defined function inputData to take 15 students' names and total marks from user input using a structure. Write students names here in a text file named names.txt and pass total marks to OddCal and evenCal functions from this function. Write a function oddCal to calculate odd numbers and store them in an array. Return the result to the inputData function and also write the results in odd.txt. Write another function evenCal to calculate even Numbers and store them in an array.Return the result to the inputData function and also write the results in even.txt. Also Print the evenSum and oddSum from the main function in Console Screen using return value of inputData function

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!