Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Essay

Programming assignment C++

Beoordeling
-
Verkocht
-
Pagina's
10
Cijfer
B
Geüpload op
30-09-2021
Geschreven 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++.

Instelling
Vak

Voorbeeld van de inhoud

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

Geschreven voor

Study Level
Publisher
Subject
Course

Documentinformatie

Geüpload op
30 september 2021
Aantal pagina's
10
Geschreven in
2020/2021
Type
ESSAY
Docent(en)
Onbekend
Cijfer
B

Onderwerpen

$4.77
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
pinkcoffee

Maak kennis met de verkoper

Seller avatar
pinkcoffee Uxbridge College (London)
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
4
Lid sinds
4 jaar
Aantal volgers
3
Documenten
11
Laatst verkocht
4 jaar geleden

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen