Week 8 Tutorial Questions Solutions 1
Week 8 Tutorial Questions Solutions 1
Week 8 Tutorial Questions Solutions 1
INF10002 Tutorial 8
1. An organisation named DADCo Solutions has a number of employees, a name and a phone
number. Each employee can be identified by his/her employee id. Many employees purchase
computer equipment (such as a laptop or tablet) to use as part of their job. Each piece of
equipment has an id (a barcode supplied by the organisation), a description and a date of
purchase. Each piece of equipment only ever belongs to a single employee. Some employees
(generally those on a higher salary) have more than one piece of equipment.
EmpId EmpName
PhoneNo
BarCode
EMPLOYEE makes Equipment Description
DateOfPurchase
2. A primary school named Eastern Primary School wishes to democratically choose which
animal will become the school mascot. The list of alternatives includes Kangaroo, Koala,
Tiger, Elephant, Parrot, Penguin and so on.
Each student may vote for one or more of the animals to be the mascot. Each student has a
student Id and name. Each of the animals has been assigned a numeric id and name (e.g. 7
Tiger).
INF10002 Tutorial 8
A number of competitors will compete in the championships. Each competitor has unique competitor
id and a name.
A number of Sudoku Puzzles have been generated for the championships.
Each puzzle has a unique number and a Grade (such as Easy, Hard, Diabolical).
E.g. Puzzle No: P222 Grade: Hard
During the championships, a puzzle is simultaneously given to a number of competitors. As
each competitor completes a puzzle his/her time is recorded.
The organisers of the champion ships want to be able to produce reports such as these:
Id Name Puzzle Grade Time
101 Peter Jones P120 Easy 2:41
101 Peter Jones P178 Medium 4:53
101 Peter Jones P222 Hard 8:44
4.
Sala Publishing encourages staff to write text books for University subjects.
Each text book has a title and a unique ISBN code. Each author has a First name, surname.
Assume that no two authors have the same name. Each Book written has a single Author.
Authors often complete two or three books a year.
INF10002 Tutorial 8
5. The business narrative for the previous problem has changed slightly.
Any of the books published by Swinny Publishing could have multiple authors.
6. The business narrative for the previous problem has changed again.
The university has a number of bookshops (generally one at each campus).
Each bookshop has a unique ID (such as Hawthorn, Lilydale, Prahran etc) plus a manager
name.
Before the beginning of each semester, each bookshop orders a number of books from
Swinny Press.
The system must record:
• the date of the order
• the qty of books that were ordered
• the date of the books were delivered
Each order has a unique ID number. Only one Book may be ordered on an order.
INF10002 Tutorial 8
OrdNo
OrdDate
BOOKSHOP makes ORDER Qty
DateDelivered
BSID MgrName
7. The business narrative for the previous problem has changed for the final time. Each order
may now contain many requests for many Books
ISBN: Qty
1122334455 60
3031012022 25
7771117771 120
INF10002 Tutorial 8