Question: OOPDA Midterm Exam Part 4 : Design A Mattress Hierarchy! Problem Description The Sleep - Eze Store offers a number of kinds of mattresses for

OOPDA Midterm Exam Part 4: Design A Mattress Hierarchy!
Problem Description
The Sleep-Eze Store offers a number of kinds of mattresses for their customers. Your design will be used to develop an online application so customers or sales reps can select applicable features to customize an order for a mattress. Your challenge will be to design a hierarchy of classes and some interfaces to support the desired functionality.
The store offers four main products:
Super-Soft - has our most plush covering
Supportive - an extra firm sleep foundation
Deluxe -- loaded with features for advanced sleep technology
Economy -- a quality product for budget-conscious shoppers
All mattresses are available in standard size and queen size. Deluxe brand is also available in king size. Each mattress has a base price for an available size.
Some features that can be selected for some products for additional cost:
Firmness-selector - electronically customize the firmness
Vibrator - offers soothing massage to aid in getting to sleep
Heat -- a gentle warming feature for cold winter nights
Hypo-Allergenic - can be ordered in coverings that minimize allergic issues
Features can be added as follows:
Super-Soft: Hypo-Allergenic
Supportive: Heat, Vibrator
Deluxe: Firmness-selector, Hypo-Allergenic, Vibrator
OOPDA Midterm Exam Part 4 : Design A Mattress

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!