C++

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

C++

Post by answerhappygod »

C++
C 1
C 1 (110.16 KiB) Viewed 35 times
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply