In this HW we will be creating the Signup and Login part of a Social networking...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In this HW we will be creating the Signup and Login part of a Social networking service. <20 points> 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 <20 points> 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): <20 points> 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 <20 points>: Store all the information which the user has provided on the signup page in appropriate data structures. Login Button <20 points>: 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. In this HW we will be creating the Signup and Login part of a Social networking service. <20 points> 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 <20 points> 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): <20 points> 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 <20 points>: Store all the information which the user has provided on the signup page in appropriate data structures. Login Button <20 points>: 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.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
You have been employed to create program to assist the manager of a coffee shop. You decide to make a prototype application in Java to show what you can do, and to be able to ask the manager what...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
What Codification citation indicates how unrealized gains or losses from changes in fair value affect net income when investments are classified as available-for-sale?
-
The following n = 10 observations are a sample from a normal population: a. Find the mean and standard deviation of these data. b. Find a 99% upper one-sided confidence bound for the population mean...
-
Jeremy is an Australian resident. He has assessable income of $60,000. He also has deductions of $10,000 and a franking credit offset of $200. What is Jeremy's tax payable for the 2021-22 income tax...
-
What are the two key financial objectives in the management of a company? How can a focus on these objectives create ethical dilemmas?
-
Will a grandfather clock, accurate at 20oC, run fast or slow on a hot day (30oC)? Explain. The clock uses a pendulum supported on a long, thin brass rod.
-
Project AX910 has a time series of cash flows that changes sign repeatedly. Project AX910 has three different IRRs. They are at 15%, 25%, and 35%. What can we say about using the Internal Rate of...
-
Use example of Haier in terms of Quantum Managament and IoT to explain. how has a particular company successfully implemented Quantum Management principles in their IoT strategies? What were the...
-
How can we estimate the beta of debt?
-
How is the LIFO method of costing different from the FIFO method in terms of the effect on net profit for a period?
-
What is the leverage ratio of a call?
-
Why is it important that a business pays accounts payable in a timely manner?
-
What is the difference between an information node and a decision node on a decision tree?
-
The SEC released its final rule to implement a code of ethics under SOX Title 404. The stock exchanges have proposed that each company listed on the exchanges publish its code of ethics. Will these...
-
Per Bag Direct materials: 25 pounds of CWhiz-2000 @ $0.08/lb. = $ 2.00 Direct labor: 0.05 hour @ $32.00/hr. = $ 1.60 The company manufactured 100,000 bags of Cheese-Be-Good in December and used...
-
Which of the following is not an approach that can be used to perform a capital budgeting economic analysis? a. Box-Jenkins algorithm b. Excel SOLVER c. Exhaustive enumeration d. Lori-Savage...
-
A lending firm is considering six independent and indivisible investment alternatives that can be exited with a full refund of the initial investment at any time the firm chooses. A total of \(\$...
-
A division of ConocoPhillips is involved in their periodic capital budgeting activity, and the engineering and operations staffs have identified 10 indivisible investments with cash flow parameters...
Study smarter with the SolutionInn App