Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use while loops please for the the parts of the body! Many of you have probably selected or created an avatar, perhaps for a video-game
Use while loops please for the the parts of the body!
Many of you have probably selected or created an avatar, perhaps for a video-game or a profile image. There are also general- purpose avatar creators online, such as avatarmaker.com. These tools can be used to create an avatar for use on various online accounts. In this assignment, you will be writing a console-based avatar creation tool. The program that you build will allow the user to build a custom avatar, or select from 3 pre-designed ones. The avatars that this program will create will not be of just a face, but rather, an avatar body. All of the interaction for this program will happen on the command-line. Part of the purpose of this PA is to get you to use and better understand functions, parameters, if-statements, and while-loops. Name your program avatar.py. Program Behavior The program will begin with a title and then a prompt to select / create an avatar. AVATAR Select an Avatar or create your own This prompt will wait user input. At this point, the user can do one of several things: Type exit to end the program without printing out an avatar. Type custom to begin the custom avatar creation interface. . Choose from one of three pre-defined avatars. The names of the three pre-defined avatars are Jeff), Jane), and Chris. If anything other than exit), custom, Jeff, Jane), or Chris is entered, the program will just repeat the question until a valid input is entered. After the name is entered, the avatar is printed and then the program ends. Jeff, Jane, and Chris are shown below. If one of these is selected, you should print out this exact character and then the program can end. Jeff Jane Chris UT V V 1 1 V 1 |-X-1 @====|--- |==== |-X-1 |-X-1 |-X-1 |-X-1 HHHHH QTTTT|---TTTTE |-X-1 |-X-1 HHHHH |-X-1 WWWW --- WwWwe |-X-1 |-X-1 HHHHH 1 1 THHH #HHH All of then have a similar cap on, but one is a top-hat, one is a cam to the right, and the other is facing forward. They all have the same basic face structure, but with two types of hair (single-quotes and double-quotes) showing below the hat, and differing eyes. Similar neck/torso style, but with varying height. Similar arms, but with varying characters used. . Similar legs, but with varying lengths and shoes. If custom is selected, then the program should prompt the user for a number of look customization options. There are 7 total options to select, and the program should ask for the inputs one-by-one. The prompts should look as follows (example values shown after the question-marks). Select an Avatar or create your own: custom Answer the following questions to create a custom avatar Hat style ? right Character for eyes ? Long hair (True/False) ? False Arm style ? P Torso length ? 3 Leg length (1-4) ? 3 Shoe look? This sequence of inputs should produce this avatar ------ 4 BPPPP|---|PPPPO |-X-1 |-X-1 |-X-1 HHHHH /// 11Step 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