Exercise 2.74

in
Printer-friendly versionPrinter-friendly version

Insatiable Enterprises, Inc., is a highly decentralized conglomerate company consisting of a large number of independent divisions located all over the world. The company’s computer facilities have just been interconnected by means of a clever network-interfacing scheme that makes the entire network appear to any user to be a single computer. Insatiable’s president, in her first attempt to exploit the ability of the network to extract administrative information from division files, is dismayed to discover that, although all the division files have been implemented as data structures in Scheme, the particular data structure used varies from division to division. A meeting of division managers is hastily called to search for a strategy to integrate the files that will satisfy headquarters’ needs while preserving the existing autonomy of the divisions.

Show how such a strategy can be implemented with data-directed programming. As an example, suppose that each division’s personnel records consist of a single file, which contains a set of records keyed on employees’ names. The structure of the set varies from division to division. Furthermore, each employee’s record is itself a set (structured differently from division to division) that contains information keyed under identifiers such as address and salary. In particular:

  1. Implement for headquarters a get-record procedure that retrieves a specified employee’s record from a specified personnel file. The procedure should be applicable to any division’s file. Explain how the individual divisions’ files should be structured. In particular, what type information must be supplied?

  2. Implement for headquarters a get-salary procedure that returns the salary information from a given employee’s record from any division’s personnel file. How should the record be structured in order to make this operation work?

  3. Implement for headquarters a find-employee-record procedure. This should search all the divisions’ files for the record of a given employee and return the record. Assume that this procedure takes as arguments an employee’s name and a list of all the divisions’ files.

  4. When Insatiable takes over a new company, what changes must be made in order to incorporate the new personnel information into the central system?

Comments

There ischeap barbour jackets no

doubt about it: when it comes to sports betting, and betting NBA games is one of the most popular choice.The NBA has attracted

hundreds of hundreds of sports betting in the regular season, after the playoffs to double that number.
cheap barbour jackets store
discount barbour jacketIf you like

to watch NBA games at home, or life, then you will like gambling you choose home part of the winning team - big, water

buffalo.These days, the popularity of NBA games on rising, you can find free sports betting skills, but you need the right

skills practice.
barbour jacket 2013
buy barbour jacket onlineSports

betting skills can be overwhelming.How do you go to gambling NBA games, we must find a different point of view.You need to do

is to keep cautious and wisdom through actual information, you received.

[url=http://www.fordkickoff.com/women-canada-goose-jackets.html]Cheap Canada Goose Women Jackets [/url]
[url=http://www.fordkickoff.com/youth-canada-goose-jackets.html ]Cheap Canada Goose Youth Jackets[/url]
[url=http://www.fordkickoff.com/men-canada-goose-jackets.html ]Cheap Canada Goose Women Jackets[/url]
[url=http://www.fordkickoff.com]Cheap Canada Goose Women Jackets[/url]

Whats up! I just wish to give a huge thumbs up for the great information you

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <hr> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • Adds typographic refinements.

More information about formatting options