Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this HW we will be creating the Signup and Login part of a Social networking service. <20 points> Java Swing should be used.

imageimageimage

In this HW we will be creating the Signup and Login part of a Social networking service. Java Swing should be used. When users open your application, they will see your social networking app's welcome screen and two buttons - Signup and Login. Customize the welcome screen, give your application a name, and be creative. Signup Button When users press the signup button, the UI should prompt the user to input their first name, last name, email, and password. Use appropriate labels and fields to store this information. Once the user clicks the signup button in that prompt, your application should generate a username for that user. The username should have the following format: SS- XXXX. First letter should be generated from the first character of the firstName, the second letter should be generated from the first character of lastName, followed by a '-' and 4 random numbers. Eg! might have id: AG- 1234 (1234 generated randomly). You show this username to the user who has successfully signed up. Password requirement (this part should be handled using exception handling): Create the following user-defined exception classes: PasswordException - Parent class of all password-related exceptions. All below classes should extend this class. UpperCaseCharacterMissing - Raised if upper case character is missing in the password. LowerCaseCharacterMissing - Raised if a lower case character is missing in the password. SpecialCharacterMissing - Raised if a special character is missing in the password. NumberCharacterMissing - Raised if the password doesn't have any numbers in it. Minimum8Characters Required - Raised if the password is less than 8 characters. When the user presses SignUp button on the signup screen, you should check if the password matches all these requirements. If not, you should catch the exception and display the appropriate message on the screen. Accounts should not be created if password requirements are not being satisfied. Storing user information : Store all the information which the user has provided on the signup page in appropriate data structures. Login Button : Users can log in using the username (created through signup) and password. If the username-password doesn't match or the user is not registered, show appropriate messages on the screen. If successful, load the user's profile on the screen (all the information about the user from signup). Points to remember: If your UI is not user-friendly points will be deducted. Use proper coding conventions while naming references otherwise there will be a deduction. Try to make use of different components and layouts available in Swing.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Ethics in Information Technology

Authors: George Reynolds

5th edition

1285197151, 9781305142992 , 978-1285197159

More Books

Students also viewed these Programming questions

Question

Define deferred revenue. Why is it a liability?

Answered: 1 week ago