Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following procedure will be used to produce a password from the users first and last names and the three words input by the user.

The following procedure will be used to produce a password from the users first and last names and the three words input by the user. The password generated is written using the following items together in the order listed (no commas between items): user's first initial, user's last initial, length of user's name including the space, first letter, last letter, and length of word1, first letter, last letter, and length of word2, first letter, last letter, and length of word3 The program is to prompt for, read in and echo print(look at sample solution echo print style) a users name and three words. The username must be read using the getline function. The words can be read using extraction. The program will then print out the three words entered in a column format showing the length of each word (see the slides and sample solution). The program then prints out the average word length and finally the password generated as described above. The output of your program shall match that of the sample solution. Read the slides and run the sample solution to see the full output requirements for this project. All floating-point numbers are to be output with 2 decimal places of precision as shown in the sample solution. Your program should work for all provided input files.

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions