Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Read chapter 7 . Create a python program that does the following: 0 ) Add comments before each of the following tasks and describe what
Read chapter Create a python program that does the following:
Add comments before each of the following tasks and describe what you are doing with the different sections of the code
The program should introduce itself as a digital assistant and display their name. Store the name in a variable.
eg Greetings, Padawan. My name is variableNameOfYourChoice.
Then the program spews out the following information that are stored in a singleVariable
"The Software or System Development Life Cycle SDLC is a systematic approach that breaks the software process into phasesplanning, analysis, design, implementation and maintenance."
The program creates an empty line and displays the following information that is also stored in a differentVariable.
In the Analysis process, tools data flow diagrams, data dictionary, decision trees, decision tables, structured English, pseudocode are used to understand the system and its activities in a logical way."
The program should print the following, no variables needed:
"Well, that is enough about SDLC I am so happy you have come back!! I just realized it has been all about me Let's talk about you now."
Create a variable to store the user's name. Prompt the user for their name and store into the variable.
Create an empty list to add your favorite songs. Have the program prompt you for your favorite songs. Keep adding songs until you type in quit. Use the append to add your songs to the list.
eg I told you about my favorite songs. What are your favorite songs? enter 'quit' to stop entering items to the list.
song
Display a response to the list of music using the user's name as well.
eg If the list was an even number, display one response. Wow, userName, you had some great song selections. if the list was an odd number of items, display a different response. Ho hum, userName, I know of some better songs. Sorry, userName.
Create another empty list that will allow you to add your favorite things to do Use the append to add the top things to do Have the program ask the user for items and user a countered loop to ask for five items only.
eg I can't wait to learn more about you. What are your favorite things to do userName?
Favorite thing #
Make the program say goodbye and summarize the top favorite songs and top things to do Make sure to use the user's name.
eg It was great to know more about you, userName. I now know your favorite songs. Display the top items from the list I now know your favorite things to doDisplay the top items from the list
Have the program prompt the user if there is another person that would enter information about themselves.
eg Is there anyone else there that I can meet? yn If there is another person, the program should loop back to step and get the person's new name and ask them about their favorite songs and favorite things to do
if the answer is no then have the program say it's final good bye.
Step 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