Question: please help write the code the forbidden names Write a C++ code that generates a randomized name for a fantasy character. This is a slightly


Write a C++ code that generates a randomized name for a fantasy character. This is a slightly longer homework assignment than you're used to! Don't procrastinate! You may work with others on this assignment but you must credit them in the header of the code and the report, and the work you submit must be your own! The code must have the following features/abilities: Ask the user whether they would like to generate a short name or a long name for their character, Short names will contain three characters, long names will contain six characters Ensure that the generated name has at least one vowel. If the generated name has no vowels, the code should select a random character and replace it with a vowel The letter Y counts as a vowel for this assignment . Check the generated name against a list of romes that are forbidden in the realm and change it if necessary. to You should download the file otodden names from this canvas assignment, Don't forget that you need to put it in the correct folder:) TheWMtotBeamet tot Your code may assume that these are the only forbidden names, that there are only three of them and that they are all three letters long. Utilize at least one user-defined function . If you're unsure what to write as a function, one suggestion is to write a function that converts integers from 1-26 to alphabetic characters. Another function that might be useful is one that converts an integer between 1 and 6 to the vowels A E,I,O,UY Print the names to the screen Also show the originalno-vowels and/or forbidden version (see examples below) cpp file containing your code Short report (pdf or docx, 3 page max, not including appendix) containing: o Short summary of assignment. Mention if you chose to complete any extended work (-3 sentences) o Pseudocode (5-10 bullet points) o Results screenshots of two long and two short generated names. Show at least one instance of a short name tha initially had no vowels and was modified. Screenshots should include something that indicates your nam like my example below Fantasy NameGenerator You can see that it's me! C:\Users.jay LionProjects\FantasyNaneGenerator cnake-build-debug\FantasyNane Would you like to generate a long (1) or short (s) nane? CWF GAF Original and corrected name shown IC Process finished with exit code 0 Screenshot where you've forced the name to be a forbidden name and its correction (you'll likely have to hard-code in a forbidden name, then you just comment out this line for normal use): Run: FantasyNameGenerator C:\Users\a. Jay\CLionProjects\FantasyNameGenerator\cmake-build-debug\FantasyNaneten Would you like to generate a long (1) or short (s) name? The name we generated first is: BAT After we checked to ensure there was a vowel, the new name is: BAT We checked the name against the forbidden names of the realm and now it's: BET Process finished with exit code o Appendix with text of your code copy-pasted BAT BLA MRE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
