Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A c++ program project 1 Goals 1. To use the MVC Design pattern 2. Create a properly designed model class with header file and.cpp file

A c++ program project
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
1 Goals 1. To use the MVC Design pattern 2. Create a properly designed model class with header file and.cpp file 3. Create a properly designed controller class that uses the model class. 4. Make and use an array of objects of the model class. 5. Handle objects and functions of the model class correctly 6. Create and use classes in a C++ program. 2 Requirements You will be implementing the example from your class, either the Artwork system or the Baseball Tickets system. The basic outline of the class from the notes is below Sec 02 amd 03/Grad: ArtWork: Artist, Title, Year, Media, Genre, Location, Special Instructions. Methods included moveArt(), removeArt(), printArt() or toString(), and similar ideas. Sec 01: BaseBallTicket: Date of Game, Sections, Row, Seat, availability, price. Methods included sellTicket(), refundTicket(), printTicket() or toString) and more ideas. As a class, we brainstormed the data members (attributes) and functions (methods) of this class. We then identified the controller class data and functions and the model class data members and functions. Our discussions added more detailed attributes than you see above and added the methods for the model class. We also outlined how the model class would work with the controller. If you need notes, ask a peer You worked on creating the header file for the model class. You created the attributes for the model class similarly to the LumberT header file in the notes and Item.hpp example below. You might have had time to start the.cpp file for your model class like item.cpp and the LumberT.cpp file in the notes. Your task is to finish this exercise-complete the system you started in class, either the Artwork or Baseball Tickets system. You need to finish your model class as we brainstormed last week. This requires you to have a header file and .cpp for your model class. Follow the MVC design pattern to decide where each type of function should be placed. Don't forget to test your code to make sure that it works after each new small addition! You need to create a controller program that uses your model class. In your controller program: 1. 2. 3. create one object of the model class and give it data. You also need to create an array of 25 of the model class objects. Populate the data for at least 10 of the objects in the array a. You can provide the data for up to 5 of the objects when you declare the array b. For the other five, you may use the single object for one more object of the array c. Use console input to populate the rest of the 10 with data and put them in the array. 4. Your controller program should print the inventory after it was initially declared. You should use a print function to print the array 1 Goals 1. To use the MVC Design pattern 2. Create a properly designed model class with header file and.cpp file 3. Create a properly designed controller class that uses the model class. 4. Make and use an array of objects of the model class. 5. Handle objects and functions of the model class correctly 6. Create and use classes in a C++ program. 2 Requirements You will be implementing the example from your class, either the Artwork system or the Baseball Tickets system. The basic outline of the class from the notes is below Sec 02 amd 03/Grad: ArtWork: Artist, Title, Year, Media, Genre, Location, Special Instructions. Methods included moveArt(), removeArt(), printArt() or toString(), and similar ideas. Sec 01: BaseBallTicket: Date of Game, Sections, Row, Seat, availability, price. Methods included sellTicket(), refundTicket(), printTicket() or toString) and more ideas. As a class, we brainstormed the data members (attributes) and functions (methods) of this class. We then identified the controller class data and functions and the model class data members and functions. Our discussions added more detailed attributes than you see above and added the methods for the model class. We also outlined how the model class would work with the controller. If you need notes, ask a peer You worked on creating the header file for the model class. You created the attributes for the model class similarly to the LumberT header file in the notes and Item.hpp example below. You might have had time to start the.cpp file for your model class like item.cpp and the LumberT.cpp file in the notes. Your task is to finish this exercise-complete the system you started in class, either the Artwork or Baseball Tickets system. You need to finish your model class as we brainstormed last week. This requires you to have a header file and .cpp for your model class. Follow the MVC design pattern to decide where each type of function should be placed. Don't forget to test your code to make sure that it works after each new small addition! You need to create a controller program that uses your model class. In your controller program: 1. 2. 3. create one object of the model class and give it data. You also need to create an array of 25 of the model class objects. Populate the data for at least 10 of the objects in the array a. You can provide the data for up to 5 of the objects when you declare the array b. For the other five, you may use the single object for one more object of the array c. Use console input to populate the rest of the 10 with data and put them in the array. 4. Your controller program should print the inventory after it was initially declared. You should use a print function to print the array

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

Step: 3

blur-text-image

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions

Question

Explain the steps involved in training programmes.

Answered: 1 week ago