Share
Explore BrainMass

User Interface; Software Reuse and Component-Based Software

Sommerville suggested that objects manipulated by users should be drawn from their own domain rather that an computer domain. For the following computerized systems suggest objects for the following users and systems:
· a. auto mechanic with an automatic diagnostic system
· b. a retail associate on a department store
· c. a stock broker and the financial package
· d. a train engineer using an automated monitoring system.

Solution Preview

Common structures:

struct ADDRESS
{
string street ;
string city ;
string state;
string zcode ; // Zip code
} ;

struct DATE
{
int year ;
int month ;
int day;
} ;

a. auto mechanic with an automatic diagnostic system
===================================
class CAutoMechanic
{
public:
<Add functions to manipulate the objects of the class>
private:
unsigned int m_id ; // Unique ID
string m_fname; // First Name
string m_lname; // Last Name
string m_ssn ; // Social Security Number
string m_pnumber ; // Phone Number
ADDRESS m_addr ; // Address
string m_email ; // e-mail address of the Automechanic
string m_title ; // Title, i.e. senior, junior, lead etc.
DATE m_date ; // Employment Date of the automechanic
unsigned int m_id_ds ; // Automatic Diagnostic System (instance of CAutoDiagSys - see below) object ID with which the Automechanic is assigned to work
} ;

class CAutoDiagSys
{
public:
<Add functions to manipulate the objects of the class>
private:
unsigned int m_id ; // Unique ID
string m_descriptyion; // Description
string m_name; // Name
string m_model; // Model
DATE m_made; // Date ...

Solution Summary

Objects for the following computerized systems are suggested:
· a. auto mechanic with an automatic diagnostic system
· b. a retail associate on a department store
· c. a stock broker and the financial package
· d. a train engineer using an automated monitoring system.

$2.19