Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 Develop a Qt Graphical User Interface ( GUI ) application that calculates a unique ID and asecure initial key for a new user

Question 1Develop a Qt Graphical User Interface (GUI) application that calculates a unique ID and asecure initial key for a new user based on the user's full name. The application shouldadhere to the following specifications for generating the unique ID and the initial key:Unique ID Generation Rules: The unique ID should be 6 characters long. The first two characters are the uppercase initials of the first and last names. If thereis a middle name, use the initial of the middle name as the second character insteadof the last name. The remaining four characters are numeric, representing the count of letters in thefull name (excluding spaces). If this count is less than 4 digits, pad the number withleading zeros to make it 4 digits.Initial Key Generation Rules: The initial key should consist of 6 characters randomly selected from the user's fullname. The selection should ensure that at least one character is a vowel (a, e, i, o, u), and atleast 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 fullname is provided as a single string, with each name part separated by spaces (e.g.,"John Michael Doe"). Display the generated unique ID and initial key using a QMessageBox.Assignment Objectives:This assignment aims to assess your ability to: Utilize Qt widgets like QInputDialog and QMessageBox for basic user input andoutput. Apply string manipulation techniques to parse and process user input. Implement logic to generate strings based on specific criteria, including the use ofrandom selection for character generation.Submission Requirements:Your source code for the Qt application with screenshots of test runs of your program.Evaluation Criteria: Correct implementation of the unique ID and initial key generation rules. Effective use of Qt for GUI components and user interaction. Code readability Ensure your application is user-friendly and robust against unexpected inputs

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

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

What are employee assistance programs and wellness programs?

Answered: 1 week ago