Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c programm 4. Write a C program that reads letters from a text file into a two-dim array. In each column of the array, there
c programm
4. Write a C program that reads letters from a text file into a two-dim array. In each column of the array, there is an English word. For example, the word "house" is written in the first column and "choir" is written in the last column. The program will input a number and copy the corresponding word from the two-dim array into a one-dim array. Then the program will display the contents of the one-dim array. words.txt htdterolo Orealiu la waebaev da bo Ilseg soll enses prehrer Example Runt which word do you want to display? 1 The word is house. Example Run: which word do you want to display? 7 The word in river. 5. Write a C program that reads IDs and 5 quiz grades of several students from grades.txt; finds and displays the average of each quiz. Also find the average of each student and write the ID and the average of each student to a new file named average.txt. grades.txt Stu ID 11 22 33 44 55 Quiz4 95 75 45 Quial 45.5 60 40 0 90 35 20.5 Qui 2 80.5 50 30.5 5 85 89 14 Quiz3 82 70 10 10.5 100 47.5 12 74 89 Quiz 55 35.5 60 10 33 74 65 91.5 38 90 94 50 83 46 87 HE 99 74 45 Output should be Quiz Number average.txt contains: 11 71.6 22 62.1 33 37.1 44 5.5 55 91.6 66 62.9 77 32.3 88 80.5 99 58.4 12 70.5 2 3 4 5 Average 50.95 52.20 56.40 66.70 62.50 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started