Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

COS3711 Assignment 2 (COMPLETE ANSWERS) 2026 - DUE 9 July 2026

Puntuación
-
Vendido
5
Páginas
61
Grado
A+
Subido en
09-07-2026
Escrito en
2025/2026

COS3711 Assignment 2 (COMPLETE ANSWERS) 2026 - DUE 9 July 2026; 100% TRUSTED Complete, trusted solutions and explanations. For assistance, Whats-App 0.6.7-1.7.1-1.7.3.9. Ensure your success with us ..... One way to draw a set of shapes (squares, circles, rectangles, and ellipses) is to use an inheritance hierarchy similar to the one below. The base class holds basic pen and brush values, and subclasses hold a number of additional properties (squares and circles need one property – the radius of a circle for example, whereas rectangles and ellipses need an additional property – length and width of the two sides of a rectangle, for example). The Shape, Shape1Property (for circles and squares), and Shape2Property (for ellipses and rectangles) classes are abstract classes (the draw() function being the pure virtual function in all of them). COS3711/Assignment 2/2026 3 Use this structure to create an application that will draw the required shape in a GUI window. The UML diagram gives only the basic structure, and you will need to add getter and setters, other constructors, and helper functions as you need them. Note that if you cannot get the image to appear, you should at least display the shape properties in a GUI window so that the following three questions can also be completed. Extend the application in Question 1 by adding a class that will maintain a list of shapes. You will want only one list in the application, so use an appropriate design pattern to ensure this. As items are added to the list, allow the user to move backwards and forwards through the list. Using the XML file below, import the shapes contained in it when the application starts up (using DOM), and display the first one. You should then be able to navigate through the 4 shapes and add new ones to the list. shapeList shape type="Square" pw="1" pc="Red" fc="Black" p1="110" p2="" / shape type="Circle" pw="2" pc="Green" fc="Blue" p1="75" p2="" / shape type="Ellipse" pw="3" pc="Black" fc="Red" p1="140" p2="55" / shape type="Rectangle" pw="4" pc="Blue" fc="Green" p1="75" p2="120" / /shapeList Ensure that all necessary file checks are implemented. COS3711/Assignment 2/2026 Extend the application in Question 3 using a Memento pattern to enable a backup/restore facility. Allow the user to keep the state of the application at a user-indicated point, and return the state of the application to that point (again, when the user chooses), and display the first shape in the list. You need only allow for a single backup point.

Mostrar más Leer menos
Institución
Grado











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Libro relacionado

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
9 de julio de 2026
Número de páginas
61
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$4.82
Accede al documento completo:

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
EduPal University of South Africa (Unisa)
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
153227
Miembro desde
7 año
Número de seguidores
36023
Documentos
4951
Última venta
5 horas hace

At EduPal we provide academic assistance, exam preparation, detailed notes, and exam packs to help college students study with confidence. Our tutoring is comprehensive and personalised, focusing on your subject needs and deadlines. We guarantee quality support, clear guidance, and proven strategies that improve understanding, marks, and pass rates. For more information Whats-App 0.8.1..2.7.8..3.3.7.2..

4.2

14258 reseñas

5
8277
4
2783
3
1868
2
485
1
845

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes