Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

Main scenario

Search Function Administrator:


Administrator
1.Pick field(category) to search
2.Enter Information to search

System
3.Search database for information
in specified field as information is
entered
4.Display records that meet
requirements with all fields

Search Function Learner:


Learner
1.Enter first name to search

System
2.Search database for first name
3.Display record of specified person
without confidential information

Average Calculation Administrator:


Administrator
1.Select learner
3.Enter exam mark

System
2.Search database for learner
4.Calculate average of all exams
5.Display averages

Additional scenarios
Login:
User
Enter Username
Enter Password

System
Check if username is valid
Check if password is valid
Check if user is administrator or
learner
Display content

Add Record:
Administrator
Select add record
Fill in required information
Submit record

System

Check if all required data is entered


Add new record

Delete Record:
Administrator
Select record
Select delete record

System
Display are you sure message
Delete record

Calculate Age:
Administrator
Enter ID in new record

System
Calculate current age
Display current age in edit

Calculate Amount Due:


Administrator
Enter last day payed
Enter lessons per week

System
Calculate Amount due
Display amount due

Database design (1 or 2 tables)

Role of database
The Main role of the database is to be able to keep track of guitar students
and to be able to view their programs and provide various records. E.g.
Above a certain amount of money due
Amount of lessons per week
Male of female
Acoustic or electric guitar
The records will be customizable because of the search function. Making the
program more dynamic

GUI design

TOE chart
Log In screen:

Task
Login

Object
btnLogIn

Event
Click

Object
Navigation bar
Navigation bar
btnViewScores

Event
Click
Click
Click

edtSearch
btnAddScore

onChange
Click

Administrator screen:
Task
Add Record
Remove Record
View Previous exam
scores
Search Database
Add New Exam score

Edit Record
View previous exam
scores

edtEdit, Database
btnView
redOutput

Data structures used (excl. Database)


Variables:
iGradeCount, iLessonsPerWeek, iTotal : integer
rMoney , rExamAverage: real
sName, sSurname, sID, sGradingMethod : string
tUsers, tScores : textfile

onChange
Click

IPO chart
INPUT
Username and
Password

PROCESSING
Check Users Text file

OUTPUT
Login was successful

DATA VALIDATION
Presence check

View exam scores

Locate selected
learner in tScores
text file
Find records that
meet required
criteria
Calculate total exam
average.
Add mark to tScores
text file
Calculate amount
due
Create new record

Display learner
scores

Presence check
Learner Name exists
in text file
Presence check

Remove record

Are you sure


message.
Remove record from
database

Record disappears
from database

Presence check

Log out

Sign out of program

Program returns to
login screen

Presence check

Search
Enter new exam
marks
Change lesson price
Add New Record

Display records the


meet required
criteria
Display average

Display amount due


Display new record

ERROR MESSAGES
Fields cannot be left
open or username
or password was
incorrect
Learner Name does
not exist
No Record meets the
criteria

The number must be


between 0 - 100

The mark entered is


not valid. 0 - 100

Real value may not


exceed 6000.
Data in edits must be
of valid data type

The number is to
large
Data Types in edits
are not valid
Fields cannot be left
open

Use case diagram

You might also like