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 : Design A Mattress Hierarchy!
Problem Description
The SleepEze 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:
SuperSoft has our most plush covering
Supportive an extra firm sleep foundation
Deluxe loaded with features for advanced sleep technology
Economy a quality product for budgetconscious 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:
Firmnessselector electronically customize the firmness
Vibrator offers soothing massage to aid in getting to sleep
Heat a gentle warming feature for cold winter nights
HypoAllergenic can be ordered in coverings that minimize allergic issues
Features can be added as follows:
SuperSoft: HypoAllergenic
Supportive: Heat, Vibrator
Deluxe: Firmnessselector, HypoAllergenic, Vibrator
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
