subject

This program will read integers from a file and find results from these integers. open the file, test to make sure the file opened. use a loop to read the integers and process each integer as it is read. when end of file is reached, close the file. after all of the integers have been read and processed, print the results for the following output: the integer count: the sum of the integers: the smallest integer: the largest integer: the average of the integers: use notepad, vim, or other simple text editor to create a file named file1.txt containing the following, with one integer per line. test the program two times. use the following data in the first test: 11 9 18 22 27 33 21 for the second test add an additional line containing the number 40.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:10
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately. next, the program determines and prints the prime factorization of the product, listing the factors in increasing order. if a prime number is not a factor of the product, then it must not appear in the factorization. sample runs are given below. note that if the power of a prime is 1, then that 1 must appear in t
Answers: 3
question
Computers and Technology, 22.06.2019 15:10
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Which option allows you to view slides on the full computer screen?
Answers: 1
You know the right answer?
This program will read integers from a file and find results from these integers. open the file, tes...
Questions
question
Mathematics, 02.12.2020 19:40
question
Mathematics, 02.12.2020 19:40
question
Spanish, 02.12.2020 19:40
Questions on the website: 13722365