Answered You can hire a professional tutor to get the answer.

QUESTION

Write a complete program that will output every phone number to a comma separated values (.csv) file.

Write a complete program that will output every phone number to a comma separated values (.csv) file. This program will output EVERY 10-digit phone number from 713-000-0000 through 713-000-0998 to a file called "output.csv"Make sure that your file is spelled exactly this way. This is for testing purposes.

The phone numbers that your program will output must only have an odd number of even digits. 0.2 points will be deducted for every missing valid phone number. 0.2 points will be deducted for every false positive. A false positive is a phone number that should not be in the file at that location. An example of this is a phone number that has an even number of even digits.

The following is an example of what your file should look like:

713-000-0000

713-000-0002

713-000-0004

713-000-0006

713-000-0008

713-000-0011

...[Several numbers are not shown here]

713-000-0484

713-000-0486

713-000-0488

713-000-0491

713-000-0493

713-000-0495

713-000-0497

713-000-0499

713-000-0501

...[Several numbers are not shown here]

713-000-0989

713-000-0990

713-000-0992

713-000-0994

713-000-0996

713-000-0998

Only display one number per line. The numbers need to have the appropriate '-'as shown above. Do not hard code this solution, use either a loop or a recursive function to compute this. Using python language.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question