Question: Please use C + + Develop a Qt Graphical User Interface ( GUI ) application that calculates a username and a password for a new

Please use C++
Develop a Qt Graphical User Interface (GUI) application that calculates a username and a password for a new user based on the user's full name. The application should adhere to the following specifications for generating the username and the password:
Username Generation Rules:
-The Username should be 6 characters long.
-The first two characters are the uppercase initials of the first and last names. If there is a middle name, use the initial of the middle name as the second character instead of the last name.
-The remaining four characters are numeric, representing the count of letters in the full name (excluding spaces). If this count is less than 4 digits, pad the number with leading zeros to make it 4 digits.
Password Generation Rules:
-The password should consist of 6 characters randomly selected from the user's full name.
-The selection should ensure that at least one character is a vowel (a, e, i, o, u), and at least one character is a consonant.
-No spaces are allowed in the password, and all characters should be in lowercase.
User Interaction:
-Use a QInputDialog to prompt the user to enter their full name. Assume the full name is provided as a single string, with each name part separated by spaces (e.g., "John Michael Doe").
-Display the generated username and password using a QMessageBox.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!