QUESTION IMAGE
Question
20 (02.04 mc) consider the algorithm below. the user will be prompted for their name and date of birth to create a username using their first initial, the first two letters of their last name, and their year of birth. step 1: user enters their first name step 2: user enters their last name step 3: user enters their date of birth step 4: username created with string manipulation step 5: display the username if the user enters david benaji as a name and february 14, 2006, as a birthday, what would the username be? (5 points) dabe2006 db2006 dab2006 dbe2006
Step1: Find first - name initial
The first name is David, so the first - name initial is D.
Step2: Find first two letters of last name
The last name is Benaji, so the first two letters are Be.
Step3: Find year of birth
The year of birth is 2006.
Step4: Combine elements
Combining the first - name initial, first two letters of the last name, and year of birth gives DBe2006.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
D. DBe2006