Write a program that reads a file containing an unknown number of integers and d
ID: 3567054 • Letter: W
Question
Write a program that reads a file containing an unknown number of integers and displays the percentage of the integers in the file that are zero, the percentage that are negative and the percentage that are greater than zero.
(Use a simple text editor like NotePad to create an input file to test your program.) Unless you want to
include the full path in your string literal, be sure to place the file in the same directory as your program.
Here is a sample output from a program that meets the requirements. This makes use of the file
numbers.txt. This is included as part of your assignment on eLearning. You can use this or a file of your
choice.
Example:
There were 26.7% negative numbers.
There were 20.0% numbers equal to zero.
There were 53.3% numbers greater than zero.
Explanation / Answer
100% Fresh answer, guaranteed to get you best grades possible. Just check it out: http://programmingtutor3.tk/