As with the prior programming assignment, you will code and submit a tested “stand-alone” program. That means that after you have written the program, it can be run in various ways, such as from an...

1 answer below »
The book that we use is "python programming context third edition by Bradley N. miller, david L. ranum and julie anderson"


As with the prior programming assignment, you will code and submit a tested “stand-alone” program.  That means that after you have written the program, it can be run in various ways, such as from an REPL or directly on the command-line.     Tasks 1. 1.Write a program that prompts the user with a choice (a menu) to do either image processing or cluster analysis.  Hint: Read about the input(prompt) function on page 93.    2. 2.For the image processing aspect of your program, use two of the image processing functions in chapter 6 of the textbook.       Remember to put the cImage.py library in the same directory as your program and import it.    3. 3.For the cluster analysis aspect of your program, implement the non-visual functions for cluster analysis from chapter 7.  Demonstrate at least the functions euclidD on page 225 and readFile on page 228.     Create a file using this data: http://jhub.analyticus.org/data/avg_marathon_times_[seconds].csv   (Data description: http://jhub.analyticus.org/data/avg_marathon_times_descriptions.txt )                Accessing the data requires these credentials:                    User name:      D2LMNSCU                Password:        72AXUVBZ83 As an alternative to that readFile function, you can use the fetchData function defined in the externalData notes, under the section Dealing with authentication.  You will have to make some slight code adjustments in your program to do so.   Ideally, you will use at least two of that data set's fields (columns A and B) for the euclidD function. You can modify the read-in function to populate two lists.  If you must, simply hard code the data from fields A and B within two lists for euclidD to process. But, if you get that far, you might as well do a little bit more to automate the whole thing.   4.Your functions for this program will be in a file that is separate from the code that calls (drives) the functions.  In other words, have a driver module called driver.py and a function library module called function_lib.py.    Score distribution: · •25% – Program generally runs as expected, as a stand-alone program.  · •25% – Program driver.py depends on separate file function_lib.py.  · •25% – Any two working functions from chapter 6 (12.5% each).  · •25% – Any two working functions from chapter 7 (12.5% each).
Answered Same DayNov 15, 2021

Answer To: As with the prior programming assignment, you will code and submit a tested “stand-alone” program....

Sathishkumar answered on Nov 16 2021
127 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here