C++
Product Industry .id: int+ .name: string •global_worth: double •id: int .name: string industry:Industry •manufacturer: Manufacturer .production_price: double customer_price: double Manufacturer id:int .name: string address: string •telephone: string Minimum requirements for the classes: Design a C++ program for based on the above UML diagram. Add attributes for each class along with getter, setter, constructors (Default, Parameterized, Copy) for each class accordingly. Use composition for Product class attributes (Industry, and manufacturer). Create a "print_product" function in the Product class that will display all information of the product. Minimum requirements for the main function: • Create 1 automatic object and 2 dynamic objects from the "Industry" class. • Create a pointer array object with minimum 3 objects from "Manufacturer” class. • Create a dynamic array object with minimum 5 objects from "Product" class. • Display the information of all products including the information for the related Industry and Manufacturer of the product. Note: You can include other ideas to the assignment. Implementation of the Extra Good Ideas will bring bonus mark on the lab work point.
C++
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am