Menu

[Solved]Write C Program Inputs First 100 Even Numbers Int Array Array Written File Called Inputtxt Q37291753

Write a c++ program that inputs the first 100 even numbers intoan int array. The array is written to a file called “input.txt”.Now, the program should input data from file “input.txt” andcompute the average of all the numbers. Once the average iscomputed, the program writes the sum and average data into a newfile called “output.txt”.

10 12 14 16 12022 24 26 2830 32 34 363842 44 46 48 52545658 68 2646668 70 72 74 76 78 80 82 84 86 88 98 122 124 126 128 13013Sum: 10100 Average: 101

10 12 14 16 12022 24 26 2830 32 34 363842 44 46 48 52545658 68 2646668 70 72 74 76 78 80 82 84 86 88 98 122 124 126 128 130132 134 136 138 140 142 144146 148 150 152 154 156 160162 164 166 168 170 172 74176 178 180 82 184 186 188 190192 194 196 198 200 2 215412580214 164 13610882 Sum: 10100 Average: 101 Show transcribed image text 10 12 14 16 12022 24 26 2830 32 34 363842 44 46 48 52545658 68 2646668 70 72 74 76 78 80 82 84 86 88 98 122 124 126 128 130132 134 136 138 140 142 144146 148 150 152 154 156 160162 164 166 168 170 172 74176 178 180 82 184 186 188 190192 194 196 198 200 2 215412580214 164 13610882
Sum: 10100 Average: 101

Expert Answer


Answer to Write a c++ program that inputs the first 100 even numbers into an int array. The array is written to a file called “i… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *