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, 22.06.2019 11:10
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
question
Computers and Technology, 24.06.2019 03:30
It is not necessary to develop strategies to separate good information and bad information on the internet. true or false
Answers: 1
You know the right answer?
Write a program that creates the following three files:. dataplus. txt. dataminus. txt. zeros. txtTh...
Questions
question
Mathematics, 03.12.2020 02:30
question
Mathematics, 03.12.2020 02:30
question
Mathematics, 03.12.2020 02:30
question
Mathematics, 03.12.2020 02:30
question
Mathematics, 03.12.2020 02:30
question
Physics, 03.12.2020 02:30
question
Arts, 03.12.2020 02:30
Questions on the website: 13722367