100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

COS2614 Assignment 1 2023

Puntuación
1,5
(2)
Vendido
7
Páginas
10
Grado
A+
Subido en
08-03-2023
Escrito en
2022/2023

COS2614 Assignment 1 2023 Answers, guidelines, workings and references. ............................................. Question 1 Write a Qt Graphical User Interface (GUI) program to generate a username and an initial password given the full name of the user. Given below are the rules for generating a valid username: • It consists of 5 characters, where the first character is in upper case and the rest of the four characters are in smaller case. • The user name is created by combining the first 4 characters of the surname with the first character of the first name. • If the surname does not have 4 characters, more characters are taken from the first name to make up the user name. • If the surname and the first name combined is less than 5 characters then append sufficient number of 0s to create the username. An initial password is generated by combining randomly selected 5 characters from the full name of the user. Note than no spaces are allowed in the username or password. User input should be obtained using a QInputDialog. You can expect the full name as a single string where each word is separated using a space. For example: Mike William Owen. The output (username and password) should be displayed using a QMessageBox. You need not do any verification of the user input. Question 2 Implement the following classes in the UML class diagram according to the description that follows: A product is described using a name, a price and a supplier. The supplier and the manufacturer can be the same for a product. A Product is initialised using a name and a price. The supplier details are set using the function setSupplier(), which invokes the suitable function of Vendor to set the details of the vendor. If one requests a product for its manufacturer, it returns the name of the vendor stored in m_Supplier, if it is set as the manufacturer. Otherwise an Unknown string is returned. toString() of Vendor returns a string representation of the values of its data members in a readable format. toString() of Product always returns a string representation of a product. If supplierDetails in toString() of Product is true, it returns both the supplier and product details. Otherwise only product details are returned. Implement it as a console application, where the product and supplier details are entered from the keyboard. Display the results of getManufacturerName() and toString()(for both true and false parameter values) on the console.

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
8 de marzo de 2023
Número de páginas
10
Escrito en
2022/2023
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

COS2614
Assignment 1 2023

(Complete Program Files Included)

Due Date: 26 May 2023


Solutions, Explanations, workings, and references




+27 81 278 3372
2,65 €
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Reseñas de compradores verificados

Se muestran los 2 comentarios
1 año hace

2 año hace

1,5

2 reseñas

5
0
4
0
3
0
2
1
1
1
Reseñas confiables sobre Stuvia

Todas las reseñas las realizan usuarios reales de Stuvia después de compras verificadas.

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.
VarsityC AAA School of Advertising
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
28686
Miembro desde
8 año
Número de seguidores
13258
Documentos
3117
Última venta
5 días hace

4,1

2820 reseñas

5
1491
4
581
3
392
2
117
1
239

Recientemente visto por ti

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