As with the prior programming assignment, you will code and submit a tested “stand-alone” program. That means that afte

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

As with the prior programming assignment, you will code and submit a tested “stand-alone” program. That means that afte

Post by answerhappygod »

As with the prior programming assignment, you willcode and submit a tested “stand-alone” program. That means that after you have written the program, it can berun in various ways, such as from an REPL or directly on thecommand-line.
Make sure to test your program incrementally asyou add code.
Tasks
1.Write a program that prompts the user with achoice (a menu) to do either image processing or clusteranalysis. Hint: Read about the input(prompt) function onpage 93.
2.For the image processing aspect of yourprogram, use two of the image processing functions inchapter 6 of the textbook.
Remember to put the cImage.py library in the same directory asyour program and import it.
3.For the cluster analysis aspect of yourprogram, implement the non-visual functions for clusteranalysis from chapter 7. Demonstrate at least thefunctions euclidD on page 225 and readFile on page228.
Use thisdata: http://jhub.analyticus.org/data/avg_mar ... conds].csv
(Datadescription: http://jhub.analyticus.org/data/avg_mar ... ptions.txt )
Accessing thedata requires these credentials:
Username: D2LMNSCU
Password: 72AXUVBZ83
As an alternative to that readFile function, you can use thefetchData function defined in the externalDatanotes, under the section Dealing with authentication. You will have to make some slight code adjustments inyour 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 theread-in function to populate two lists. If youmust, simply hard code the data from fields Aand B within two lists for euclidD to process. But, ifyou get that far, you might as well do a little bit more toautomate the whole thing.
4.Your functions for this program will be in a file that isseparate from the code that calls (drives) the functions. In other words, have a driver module calleddriver.py and a function library module calledfunction_lib.py.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply