PPD411 - Unit 1 5 Practical Exe
PPD411 - Unit 1 5 Practical Exe
to
Principles of Program Design
MODULE CODE: PPD411
Presented
By
Isaac L (MSc)
Module Information
Prescribed Materials
Title: Program Design (Not on SAFARI)
Title: Database Design for Mere Mortals®:
A Hands-on Guide to Relational Database Design, Third Edition.
By Michael J. Hernandez
ISBN: 9780133122282
Module Duration: 4 weeks
Important Dates
Hand-out date Submission date Weight
50%
Total
Date and Time Duration Weight
It is used in planning an algorithm with drafting out the structure of the program before the actual coding takes place.
Pseudocode is easier for people to understand than conventional programming language code
What is Pseudocode ?
Pseudocode is an informal high-level description of a computer program or algorithm. It is written in symbolic code
which must be translated into a programming language before it can be executed.
Begin
Input
(Process the input and generate an output)
Output
End
What are the Pseudocode Keywords
1. 2.
Begin Begin
Input number1, number 2
input hours
Sum= number1+ number 2
input rate
Print Sum
pay = hours * rate
End
print pay
End
End
Next week Monday, 10 Feb 2020
Learning Unit 5 Relational Database Design
Learning Unit 5 Relational Database Design
Objectives:
The type of data stored in an operational database is dynamic, meaning that it changes constantly and always reflects
up-to-the-minute information.
Organizations such as retail stores, manufacturing companies, hospitals and clinics, and publishing houses use
operational databases because their data is in a constant state of flux.
Analytical databases
Are primarily used in online analytical processing (OLAP) scenarios, where there is a need to store and track historical
and time-dependent data.
An analytical database is a valuable asset when there is a need to track trends, view statistical data over a long period
of time, and make tactical or strategic business projections.
This type of database stores static data, meaning that the data is never (or very rarely) modified.
Early Database Models
Two data models were commonly used to maintain and manipulate data—the hierarchical database model and the
network database model.
The hierarchical Database Model
Data in this type of database is structured hierarchically and is typically diagrammed as an inverted tree. A single table
in the database acts as the “root” of the inverted tree and other tables act as the branches flowing from the root.
In the example shown in Figure 1.1,
An agent books several entertainers, and each entertainer has his own schedule.
An agent also maintains a number of clients whose entertainment needs are met by the agent.
A client books engagements through the agent and makes payments to him for his services.
A relational database management system (RDBMS) is a software application program you use to create, maintain,
modify, and manipulate a relational database.
Analysis of database requirements for the local soccer league revealed the business rules as contained in the scenario below. Based on
these business rules create an ERD that display the cardinality between each entity: Be sure to remove unwanted many to many
relationships
The Manonyane Football Club (MFC) is an amateur soccer association playing in the premiere soccer league. Each city in the country has a
number of teams represented. A city has several locations where a number of games can be played. Each location belongs to one city. Each
team has a maximum of 18 players and a minimum of 10 players. Each team also has up to three coaches (offensive, defensive, and physical
training coaches). During the season, each team plays two games (home and visitor) against each of the other teams. Statistics such as no. of
fouls, in which a player features in a particular game are recorded.
A game involves many players and a player can play in many games. A team can be expected to play in many games and a game involves
more than one team.
Given those conditions, do the following; draw an ERDs to represent the MFC database. Assume that all relationships are strong or regular.