Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python3 programming. give me the python3 code. Please look at the DieRollExample on the D2L. Write a class called PlotViewer. It will serve as the

python3 programming.

give me the python3 code.image text in transcribed

Please look at the DieRollExample on the D2L. Write a class called PlotViewer. It will serve as the both the view and the controller for the plot generator classes. The PlotViewer class will be able to register any plot generator. >>pv = PlotViewer() >pv.registerPlotGenerator ( SimplePlotGenerator(), >pv. generate() Something happens >>pv.registerPlotGenerator ( RandomPlotGenerator(), >>pv.generate() Aaliyah Mosley, a abiding alabasterer, must acknowledge the assuming assassin, Acheron Redwood. >>pv.registerPlotGenerator ( InteractivePlotGenerator() ) >pv.generate() Chose a hero's name from the following list: ... A critical concern is how the generator classes handle input/output. When they are connected to a view/controller they must use the i/o of the view/controller. It may be simple text i/o. It may be a complicate GUI. It may be a cell phone app. It may be a webpage. The generator (model) should not know or care. Record a three minute video in which you run the code. Then, present your code. Specifically, answer the following questions: - Show how the PlotViewer registers the generators. - Show how the PlotViewer sends the request to generate plots to the plot generator. - Show how the PlotViewer is able to accept requests for user input from the plot generators. - Show how the PlotViewer accepts and presents the plots created by the plot generators. Submission: Submit a single .py file containing all the code to the D2L. Do not zip or archive the file. Your code must include comments at the top including your name, date, video link, and the honor statement, "I have not given or received any unauthorized assistance on this assignment." Each function must include a docstring and be commented appropriately

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago