Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use C++ OOP QUESTION 1 (15 Marks] NutritionFact serving Size : double Sellable G Food price: double - expiry : string Shirt IceCream -

please use C++ OOPimage text in transcribed

QUESTION 1 (15 Marks] NutritionFact serving Size : double Sellable G Food price: double - expiry : string Shirt IceCream - size: string - favour string Figure C-1 Consider the class diagram in Figure C-1. Based on the class diagram answer the following questions: a. Determine the pairs of classes or a group of classes that form the relationship according to the questions below. If there is no such relationship in the class diagram, then write your answer as No such case. i Name TWO(2) pairs of classes that form a single inheritance relationship. il. Name a pair of classes that form a composition relationship. ii. Name a pair of classes that do not form any relationship (7 marks) b. Write a code segment in C++ that implements these THREE (3) classes: NutrionFact, Food, and Icecream. Your implementation does not need to include any methods including constructors, (8 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions

Question

What is a new-venture team?

Answered: 1 week ago

Question

1. Television more Over watching faceing of many problems ?

Answered: 1 week ago

Question

Is there a link between chronic stress and memory function?

Answered: 1 week ago