Assignment 1
Paste a link to your code here.
https://repl.it/join/auahqmnl-pinkcoffee
Stages of the software development lifecycle:
The lifecycle of software development is a process model describing five
distinct phases of development that typically consists of the following five
stages:
Stage 1: Systems Analysis- In this stage we are analysing what our program should do
and who are the intended users.
Stage 2: Design- For this stage we create the design for our program and showcase
how it should work using truth tables, Pseudocodes, Flow charts.
Stage 3: Implementation- This is the stage where we actually start writing the code. In
our case we’re using C++
Stage 4: Testing- In stage 4 we test our program and observe how well it runs.Testing
each function.Normal, extreme and erroneous data.
Stage 5: Maintenance- At the last stage we do some last optimisation do improve our
program and solve bugs . Program Optimisation
Stage 1 - system analysis
1. Intended Users/ What the program should do.
The Computer Science department requires an automated way to make the initial selection
and enrollments for applicants on to Computer Science courses.The course administrator
should be able to enter the students’ names and qualifications, then the system will
automatically enroll them on the appropriate course, as described below.
A program that should help with the enrolment of students.
The intended users may be : Teachers, Colleges, Universities, Schools.
2. The use cases / functions.
In the program we have 3 functions : Enrol, showStudents, menu.
The first function is one of the most important ones.This function helps us enrol students.
Firstly it asks us for the student name , then for the gcse maths and gcse english exams.
The user has a choice of pressing q to quit the program. If the student has both exams he
will be automatically applied for a degree program. If the student has maths Or english he
will be applied to a foundation degree, but if the students does not have either of these
exams he will be rejected as he is not meeting the expectation. The second function
(showStudents) show’s us all the students that have been enrolled in the programs. The last
function is menu, which displays the menu in the program to make things easier and clearer.
3.The inputs and outputs of the program.
Depending on the user’s response in the menu, the enrol function will run.
, The first output is asking us for the student's name , and the code takes input from the user
and stores the student name in vectors which are foundationDegree,degreeProgram.
The second output displays if the student has Maths GCSE , then the code asks for the
user's input ( y, or n ) .
The next output displays if the student has English GCSE , then the code asks for the user’s
input ( y. Or n ) .
If the student has both exams the program output will be “applied for degree program.”
If the student has one of the exams the program output will be “applied for foundation
degree.”
If the student doesn’t have any of exams the program output will be” student does not meet
the requirements”
4. The storage of the program: variables, arrays / vectors
This program will store the students name in a variable called studentName, and will store all
the students with foundation degrees in a vector called foundationDegree, and all the
students with a degree program in a vector called degreeProgram.
5.Choice of programming language and why you have chosen it.
I have chosen to work with C++ programming language. This language is a great choice
because it’s very easy to use and very powerful.
C++ is also a great choice because it allows you to break complex programs into simpler
ones that are called functions. C++ also has rich libraries which provides us with built in
functions. It’s an easy language to use because of IF conditions, loops, variables . All of
these are very easy to understand and to use .
6.Code snippets
Below I have a code that helped me with the current program
Paste a link to your code here.
https://repl.it/join/auahqmnl-pinkcoffee
Stages of the software development lifecycle:
The lifecycle of software development is a process model describing five
distinct phases of development that typically consists of the following five
stages:
Stage 1: Systems Analysis- In this stage we are analysing what our program should do
and who are the intended users.
Stage 2: Design- For this stage we create the design for our program and showcase
how it should work using truth tables, Pseudocodes, Flow charts.
Stage 3: Implementation- This is the stage where we actually start writing the code. In
our case we’re using C++
Stage 4: Testing- In stage 4 we test our program and observe how well it runs.Testing
each function.Normal, extreme and erroneous data.
Stage 5: Maintenance- At the last stage we do some last optimisation do improve our
program and solve bugs . Program Optimisation
Stage 1 - system analysis
1. Intended Users/ What the program should do.
The Computer Science department requires an automated way to make the initial selection
and enrollments for applicants on to Computer Science courses.The course administrator
should be able to enter the students’ names and qualifications, then the system will
automatically enroll them on the appropriate course, as described below.
A program that should help with the enrolment of students.
The intended users may be : Teachers, Colleges, Universities, Schools.
2. The use cases / functions.
In the program we have 3 functions : Enrol, showStudents, menu.
The first function is one of the most important ones.This function helps us enrol students.
Firstly it asks us for the student name , then for the gcse maths and gcse english exams.
The user has a choice of pressing q to quit the program. If the student has both exams he
will be automatically applied for a degree program. If the student has maths Or english he
will be applied to a foundation degree, but if the students does not have either of these
exams he will be rejected as he is not meeting the expectation. The second function
(showStudents) show’s us all the students that have been enrolled in the programs. The last
function is menu, which displays the menu in the program to make things easier and clearer.
3.The inputs and outputs of the program.
Depending on the user’s response in the menu, the enrol function will run.
, The first output is asking us for the student's name , and the code takes input from the user
and stores the student name in vectors which are foundationDegree,degreeProgram.
The second output displays if the student has Maths GCSE , then the code asks for the
user's input ( y, or n ) .
The next output displays if the student has English GCSE , then the code asks for the user’s
input ( y. Or n ) .
If the student has both exams the program output will be “applied for degree program.”
If the student has one of the exams the program output will be “applied for foundation
degree.”
If the student doesn’t have any of exams the program output will be” student does not meet
the requirements”
4. The storage of the program: variables, arrays / vectors
This program will store the students name in a variable called studentName, and will store all
the students with foundation degrees in a vector called foundationDegree, and all the
students with a degree program in a vector called degreeProgram.
5.Choice of programming language and why you have chosen it.
I have chosen to work with C++ programming language. This language is a great choice
because it’s very easy to use and very powerful.
C++ is also a great choice because it allows you to break complex programs into simpler
ones that are called functions. C++ also has rich libraries which provides us with built in
functions. It’s an easy language to use because of IF conditions, loops, variables . All of
these are very easy to understand and to use .
6.Code snippets
Below I have a code that helped me with the current program