subject

Write a program that creates the following three files:. dataplus. txt. dataminus. txt. zeros. txtThe program should read each line of the data. txt file and perform the following:. If the line contains a positive number, that number should be written to the dataplus. txt file.. If the line contains a negative number, that number should be written to the dataminus. txt file.. If the line contains the value 0, do not write the value to a file. Instead, keep a count of the number of times 0 is read from the data. txt file. After all the lines have been read from the data. txt file, the program should write the count of zeros to the zeros. txt file.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
What season was better from fortnite?
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
You know the right answer?
Write a program that creates the following three files:. dataplus. txt. dataminus. txt. zeros. txtTh...
Questions
question
History, 13.06.2020 01:57
question
Mathematics, 13.06.2020 01:57
Questions on the website: 13722363