Professional Documents
Culture Documents
Data Members Purpose
Data Members Purpose
String flavor stores the flavour of the juice (e.g., orange, apple, etc.)
String
stores the type of packaging (e.g., tera-pack, PET bottle, etc.)
pack_type
int pack_size stores package size (e.g., 200 mL, 400 mL, etc.)
Member
Purpose
Methods
to input and store the product code, flavour, pack type, pack size
void input()
and product price
to display the product code, flavour, pack type, pack size and
void display()
product price
Required
ii.) Demonstrate how we can display for a specified number of Fruit Juices (10)
Question 2
A housing project has the following attributes registration number, name, type and
cost. The type of housing is determined by the cost given in a table below:
Using structures write a program which will implement the above scenario
(13)
c.) Demonstrate how we can display information for a specific number of houses
(9)
Question 3
b.) An employee has the following information encumber, fullname, department and
employee type. There are 3 types of employees:
As a C++ expert the organisation has approached you to come up with a C++
program that captures and computes salaries of all employees.