Developing a User Login System in Visual Studio C#

Explore the creation of a basic access control system with login, registration, and logout windows using Visual Studio and C#.

  • 72780+ Project Delivered
  • 500+ Experts 24x7 Online Help
  • No AI Generated Content
GET 35% OFF + EXTRA 10% OFF
- +
35% Off
£ 6.69
Estimated Cost
£ 4.35
8 Pages 2041 Words

Introduction to Fundamentals Of Programming (CTF3201) Assignment

This assignment is about analyzing the problems related to programming and providing appropriate solutions for the issues. The problems related to the programming are solved using the standard notations and conventions of the programming. This assignment is divided into two parts part 1 and part 2 and part 1 consists of a total of 3 tasks that need to be solved using the proper programming fundamentals.

Enhance your academic journey with New Assignment Help's specialized services in the UK.

Part 1

The assignment is an application of standard coding notations and conventions to perform certain tasks. The software used here is called visual studio using C#. All the code for each task is written in this software (Luxton-Reilly et al. 2018).

Task 1

In this task 1, the main objective is to develop a console for creating a page in the system for user login and registration. At first, the user needs to register their username and password in the temporary program dictionary. If the user wants to register then the program will only ask to type the username and the password which will be saved in the program dictionary. After registering, the username and the password the page will automatically ask for the login details. If the registered username and the password are entered by the user then the user will be successfully able to login into the account.

Developing a User Login System in Visual Studio

Figure 1: The coding part for generating the console of a user login and register

(Source: Acquired from Visual Studio)

The above image is a coding portion for the program to take the user input for login and register using the user name and password (Håberg, 2019). The console for creating this login and register page the code is compiled using the software called visual studio with the help of C#. The program will allow the user to register their username and password and after saving the details in the temporary dictionary the user will be redirected to login potion where the user can log in successfully by entering the correct username and password.

Developing a User Login System in Visual Studio

Figure 2: The Output of Task 1 after successful login

(Source: Acquired from Visual Studio)

The above image is the output of task 1 where the user needs to choose the option as per the preference of the user. If the user types ‘L’ then the program will ask for the login and if the user type ‘R’ then the user will be redirected to the registration section. If the username and the password of the user do not exist in the dictionary then the user will register the username and password. After completing the registration process user needs to enter the username and the password correctly then the message will pop in the screen about completing the successful login.

The above image is the output where if the user successfully registers their username and password in the register section and the entered username is correct but the password is incorrect at the time of the login then an incorrect password message will pop in the screen. This output shows what will be a message will pop up on the screen if the user entered an incorrect password.

Task 2

In task 2 a console program is created which can convert an array of integers into a list type data. The coding of this task to create the console program is compiled using visual studio.

The above image is the coding portion of creating a list from an array of integers which can be taken as per the user preference (Papadakiset al. 2019).

The above image is the output of task 2 where the array of the integers is converted into the list and the list of those integers is shown in the above image.

Task 3

In task 3 a console program is built for determining the prime numbers up to the user input number which is taken as the input for the program to get the output.

The above image is the coding portion to create a console program that can find prime numbers up to the user input number which is taken as the input for the program to get the output (Pham et al. 2020).

The above image is the output for task 3 where the user can get the list of the prime number up to the entered number which is taken as input for the program. After entering the number

97 in the input of the program all the prime numbers up to 97 are printed which is shown in the image.

Part 2

Here in this part, the developer has to develop the simple control interface which is basically a Win Forms and it includes the login and registration user interference. Basically, this assignment was done over a console program using the C# programming language. Here is the assignment which is basically on Designing and executing a basic access control system where mainly implemented three windows or the win frames which are the login window, the registration window, and the logout window.

This assignment is basically done on the “Visual Studio” software and also develops all the windows or the win frames for the user's login and registrations.

This figure shows the main program codes or the algorithms in the “visual studio’s software where it runs this code for the project running. Here “namespace” is used to declare the project's functional name which is described as the “register and login” and displays the main theme of the project (Haque et al. 2022). Here start the windows form to make the windows for the register and login there must deliver specific algorithms which are mainly “using the system. Windows. Forms” and using it the developer is able to run a window in the “visual studio” software. “Static class” is the keyword to create the static class and here the program is the class. Here using the “application.run (new login ())” method there creates a form that is login and registrations.

This figure shows the assembly function of the data sets to compiled the login and register code in the software for the users which is basically users' login and registration credentials. Here basically assembly functions in “c#” language are a methods used to create a library of compiled code that can be used by other applications. These functions are typically pre-compiled and stored in an assembly, which is then referenced by applications that require the code.

This figure is the algorithms for the login window which is done in the software “visual studio” where it is executed by some query of the c# programming language (Putzet al. 2021). Here “Partial class” is a feature that helps developers breaks the functionality of a class into many files in the software. Here using the “partial class login” there creates a login class in the software for the login window.

This figure shows the login window or the win frames of the project where users have to enter emails or select the username and also give the password for the login. And if there was no existing account then the users can create a new account to select the blue buttons or the text “don’t have an account?” below in the buttons or the win frames named “Login Now”.

This figure shows the registration algorithms of the project where all specific algorithms for user registration are implemented in the software “visual studio”. Here the registration class for creating the registration window is built by the specific algorithm “partial class registration”.

This figure shows the registration window of the basic access control system in the software “visual studio”. Here in the picture “Enter first name” where users have to enter their first name and therefore enter the last name and below enter the password and also confirm the password. After that enter the email and select or enter the unique user id and therefore the account is created. Here all the action is successful if the users press the register now button which is created in the window in green color. And after that, the user has to just click the login now to login into the access control system (Ghelani et al. 2022).

This figure shows a dashboard of the access control system where it shows a welcome after successful login by the users (Azrour et al. 2021). This software only shows when the users enter the proper and correct login credentials on the login page. If there were incorrect credentials then it shows the users to register with a new account.

Conclusion

This assignment is about analyzing the problems related to programming and providing appropriate solutions for the issues. The problems related to the programming are solved using the standard notations and conventions of the programming in visual studio. Task 1 in the assignment is about developing a simple login and register page for the user where the user can register or log in using the proper username and password.

Task 2 of this assignment is about creating a console program to form a list from the array of integers using the loops. Task 3 is about developing a program to find the prime number up to the number which is taken input as user input.
References

Azrour, M., Mabrouki, J., Guezzaz, A. and Farhaoui, Y., 2021. New enhanced authentication protocol for internet of things. Big Data Mining and Analytics, 4(1), pp.1-9.

Ghelani, D., Hua, T.K. and Koduru, S.K.R., 2022. A Model-Driven Approach for Online Banking Application Using AngularJS Framework. American Journal of Information Science and Technology, 6(3), pp.52-63.

Håberg, M., 2019. Fundamentals and recent developments in stochastic unit commitment. International Journal of Electrical Power & Energy Systems, 109, pp.38-48.

Haque, A.B., Bhushan, B. and Dhiman, G., 2022. Conceptualizing smart city applications: Requirements, architecture, security issues, and emerging trends. Expert Systems, 39(5), p.e12753.

Luxton-Reilly, A., Becker, B.A., Cao, Y., McDermott, R., Mirolo, C., Mühling, A., Petersen, A., Sanders, K. and Whalley, J., 2018, January. Developing assessments to determine mastery of programming fundamentals. In Proceedings of the 2017 ITiCSE Conference on Working Group Reports (pp. 47-69).

Papadakis, S., Kalogiannakis, M., Orfanakis, V. and Zaranis, N., 2019. The appropriateness of scratch and app inventor as educational environments for teaching introductory programming in primary and secondary education. In Early childhood development: Concepts, methodologies, tools, and applications (pp. 797-819). IGI Global.

Pham, Q.V., Fang, F., Ha, V.N., Piran, M.J., Le, M., Le, L.B., Hwang, W.J. and Ding, Z., 2020. A survey of multi-access edge computing in 5G and beyond: Fundamentals, technology integration, and state-of-the-art. IEEE Access, 8, pp.116974-117017.

Putz, B., Dietz, M., Empl, P. and Pernul, G., 2021. Ethertwin: Blockchain-based secure digital twin information management. Information Processing & Management, 58(1), p.102425.

Christmas
scan qr code from mobile

Get Extra 10% OFF on WhatsApp Order

Get best price for your work

×