Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use c + + programming, show the code and output Question 1 Develop a Qt Graphical User Interface ( GUI ) application that calculates a
Use c programming, show the code and output
Question
Develop a Qt Graphical User Interface GUI application that calculates a unique ID and a
secure initial key for a new user based on the user's full name. The application should
adhere to the following specifications for generating the unique ID and the initial key:
Unique ID Generation Rules:
The unique ID should be 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 digits, pad the number with
leading zeros to make it digits.
Initial Key Generation Rules:
The initial key should consist of characters randomly selected from the user's full
name.
The selection should ensure that at least one character is a vowel a e and at
least one character is a consonant.
No spaces are allowed in the initial key, 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 eg
"John Michael Doe"
Display the generated unique ID and initial key using a QMessageBox.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started