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

Programming assignment 1 - Log in and sign up system complete code C++

Rating
-
Sold
2
Pages
21
Grade
B
Uploaded on
21-08-2021
Written in
2021/2022

This document contains the complete code of a login and sign up system coded in C++. This document also includes annotations and explanations of each code, flowcharts and pseudocode, testing of the program with screenshots and also maintenance examples. This document is a merit level work.

Show more Read less










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

Document information

Uploaded on
August 21, 2021
Number of pages
21
Written in
2021/2022
Type
Essay
Professor(s)
Unknown
Grade
B

Content preview

Programming assignment

Introduction

The 5 stages of SDLC (software development life cycle)

Stage 1

Analysis

The analysis part in the software development life cycle means when the analysis of
the client requirements for the project and to make sure that the project manager
knows what to do so that the project will meet their requirements. The analysis part
also has 3 activities which are needed : gathering user requirements, creating
process diagrams and then creating a detailed analysis of the project that is given.

Stage 2

Design

The design element in the software development life cycle consists of the design
which is made for the project. The design in the project must be able to meet the
design criteria for the user requirements. There are two types of design in the
design phase HLD which is high level design and LLD low level design. High level
design consists of things like description of the project and the key elements of it.
Low level design consists of things like functional logic of the project,issues and
testing for errors.

Stage 3

Implementation


After the analysis and design phase comes the implantation phase where the code
for the project is made and is done to meet the user requirements and the design
which is involved in the previous two phases. Also the implementation phase also
involves putting the project into action and completing it to meet user requirements.

Stage 4

Testing

The testing phase in the SDLC is where the project is now finished and now is getting tested
to see if the code is working properly and testing it to see if it has any errors within the code
and it works due to meeting the client requirements. Also before testing that the code meets

,client requirements the user should make a test plan so that they can document the different
types of test they need to do.

Stage 5

Maintenance

The maintenance phase in the sldc occurs after the project is in full operation and
has been tested. The maintenance phase includes things like changes, upgrades
etc and fixes all the issues in the project and then after fixing all the issues with the
program more testing will be required to see if the program works perfectly.

Stage 1- System Analysis




1. The University requires a system to unify staff and student logins so that they can log
in to the various systems using a single username and password pair. Write the
script that performs the authentication.
The system should store a list of users with the corresponding passwords.
The system should grant access only if the user enters the username and password
correctly.
If the user tries to log in with an incorrect username, the system should display a message
saying that the username does not exist.
If the user tries to log in with the correct username but incorrect password, the system
should display a message saying that the password is incorrect.
The system should lock the user out after 3 failed login attempts.
There should be 2 access levels: standard access for students and privileged access for
staff. The system should display to the user which access level they have once they have
logged in successfully.




2. The program should display a menu with 3 options for the user to choose when ran.
The 3 options are [1] to set up a user or multiple users this allows the user to create 1
or more users in the system. After the user makes the account on the system they
have to login straight after they have made the account this is for confirmation of the
account and if its successfully added to the database. The second option is when

, the user inputs the number [2] when they run the program it tells the user to login
with a username and password that is already stored on the system and if it's correct
it should say “Login successful” and if its incorrect it should say “Login failed please
try again”. Then the last option is when the user inputs [3] the program should stop
and terminate.

3. The intended users for this program are college students who either need to create
an account for their college or already login with a college account that is already
made.

4. The functions I used were a void authenticate() function to authenticate teachers and
students username and passwords, void setupAccount () so that students can set up
their account on the system and void menu() which creates the menu for the program
and shows the 3 options.

5. For the inputs and outputs of the program it depends on the user and what choice
they pick on the menu. So if the user inputs [1] on the program it will let the user set
up an account for the college system so the inputs will be
firstname,lastname,username and password and the output will be “Login
successful username has been added to the database” if they input the
correct username and password and “Login failed please try again” if they
input the wrong username and password. If the user inputs [2] the program
will tell the user to input their username and password and just like before the
same messages will pop up when the user input the wrong or right username
and password. For the third option in the menu when the user inputs [3] the
output for the program is that it terminates and the program stops as it is an
exit function.

6. The variables that i used were username,password,firstname,lastname,username
entered, password entered, first name entered and last name entered. I used these
variables as I needed it for my program so that the program knows which usernames
and passwords are stored and also what first and last names are stored inside the
vectors I used. Also I used classes and objects which store all the functions into one
place. I used this so that the program will work with all the functions combined

7. The reason I used c++ instead of other programming languages is that it has a rich
library which lets the program do loads of different functions which may otherwise not
be available in other languages and also its fast and efficient and can range from GUI
applications to 3D graphics.

8.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
mohammedvankalwala Uxbridge College (London)
View profile
Follow You need to be logged in order to follow users or courses
Sold
201
Member since
4 year
Number of followers
151
Documents
23
Last sold
7 months ago

3.6

44 reviews

5
21
4
6
3
7
2
0
1
10

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