100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Essay

Programming assignment C++

Rating
-
Sold
-
Pages
10
Grade
B
Uploaded on
30-09-2021
Written in
2020/2021

In this assignment Im talking about software development lifecycle, truth tables, flowcharts, pseudocode, testing while giving examples from my program that i built using c++.

Institution
Module









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Study Level
Examinator
Subject
Unit

Document information

Uploaded on
September 30, 2021
Number of pages
10
Written in
2020/2021
Type
Essay
Professor(s)
Unknown
Grade
B

Subjects

Content preview

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
$4.14
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
pinkcoffee

Get to know the seller

Seller avatar
pinkcoffee Uxbridge College (London)
Follow You need to be logged in order to follow users or courses
Sold
4
Member since
4 year
Number of followers
3
Documents
11
Last sold
3 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions