Question: Question 6 (40 points) Define what we mean by the three terms. Give an example other than the restaurant example below. For example, describe how

Question 6 (40 points)

Define what we mean by the three terms. Give an example other than the restaurant example below. For example, describe how to implement a simple banking or student record system. Which classes would represent model, view, or controller?

a. Model

b. View

c. Controller

Refer to the following rubric for the detailed evaluation breakdown.

Exemplary (40 Points) Proficient (30 Points) Basic (20 Points) Unsatisfactory (10 Points)
Section B Define Model, View, and Controller All are defined correctly with appropriate examples. All definitions are correct; one or two examples are not appropriate. 2 of 3 definitions are correct; one or two examples are not appropriate. Definitions are not all correct; examples are missing or not appropriate.
Section B Banking Example Roles All roles are correctly identified for each class. One role is mis-assigned. Two or three roles are mis-assigned. Incorrect application of MVC roles.
Section B Description of Banking Example Description is complete and accurate. Description is not complete but the parts that are included are accurate. Description is incomplete, and few roles are accurate. Incorrect description..
Section B Banking Application Overall description of banking application and roles is fundamentally accurate. Description of banking application and/or roles is mostly accurate. Description of banking application or role is inadequate. Incorrect description of overall application and roles.

One very common example of MVC is based on restaurants. The description is based on the following facts:

You do not go to a typical restaurant to cook the food or even to talk to the cook. Instead, a waiter comes to you, and you tell them what you want.

The waiter does not cook the food and (hopefully) does not eat your food. Instead, they approach a customer and take an order, which is transferred to a cook who prepares the food.

The cook takes the order from the waiter and then goes to their pantry to access the elements needed to fulfill that order. When the order is done, the cook does not take it out to the customer, but rather passes it to the waiter, who takes the food to the customer.

In this view, the Waiter is the Controller (they take user input, make requests, and pass along data/food). Similarly, the Cook is the Model (they take the validated request and return the requested data/food). The pantry is the data storage, and the customer is the view (that last one is a stretch, but customers accept the output data as presented by the Controller).

Question 6 options:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!