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 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
You know the right answer?
Write a program that creates the following three files:. dataplus. txt. dataminus. txt. zeros. txtTh...
Questions
question
Advanced Placement (AP), 04.06.2021 22:50