A PROGRAM TO DISPLAY A NUMBER OF MOVING SHAPES

5 pts.
Tags:
MFC.
MSVS
A program (written in C++ and created in a MSVS 2012 Visual Project) is required that allows the user to create and edit a list comprising a number of shape objects of square, diamond and triangle. The program will use the Microsoft Foundation Class (MFC) LIBRARY for all output and graphics.  THE PROJECT SHOULD BE MADE WITHOUT USING PRE-COMPILED HEADERS AND WITHOUT USING MFC WIZARD (i.e menus, windows, etc , should be coded).  Each shape objects should consist of a number of colored spots. The size of the object will be the number of rows of dots. Only odd valued sizes will be used. The distance between consecutive sports and rows on the MFC screen will be a constant. The object will be contained in a linked list.
The user interface will be a text menu having the following:
Q-Quit: The program should end without saving the shape objects.
I-Insert an object: The user should be prompted to enter a shape object type and its attributes, and position to insert the shape object into linked list.
D-Delete an object: The user should be prompted for the position to delete the shape object from in the linked list.
E-Edit: Allow the user to change the attributes of a shape object, apart from its type.
C-Contents of the display: Display a list of all the shape objects, their type and their attributes (in a suitable format).
S- Save to file: Ask the user for a filename and store the shape objects and thier attributes in that file in a suitable text format.
L - Load from file: Ask the user for a filename and load the shape objects and their attributes from a file into memory.
T - Display: Display all of the shape objects on the praphics window at their starting position. The shape objects are stationary (not moving).
P- Perform in the display: Display all of the shape objects on the grapics window moving from their start to end position, one after another.
A - Perform All in the display: Display all of the shape object on the graphic window simultaneously moving from their start to end position.

After completion of each choice, other than Quit, the program waits for the user to press a key to return to the menu again. 

1) There will be base class display object named Shape and there will be three different display object classes derived from it.
2)The display of the Shape object will use a class Drawing that has a linked list containing pointers to Shape object.
3)The base class attributes will include the centre point which will move fron the start to the end locations.
4)The drawing class will use a linked list to store the shape object.

The software to be used is Microsoft Visual Studio 2012.


Software/Hardware used:
The software to be used is Microsoft Visual Studio 2012 (MSVS 2012)

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Okay, and what problem are you running into? -- Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following