Question: Study the chapters 3 and chapter 4. Create a python program that does the following: 0) Add comments before each of the following tasks and
Study the chapters 3 and chapter 4. Create a python program that does the following:
0) Add comments before each of the following tasks and describe what you are doing with the different sections of the code
1) The program should introduce itself as a digital assistant and display their name. Store the name in a variable.
(e.g. Greetings, Padawan. My name is variableNameOfYourChoice.)
2) 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 phases--planning, analysis, design, implementation and maintenance."
3) The program creates an empty line and displays the following information that is also stored in a differentVariable.
"Planning requires knowing what is needed for the computer system. This planning can be done in different ways such as interviewing users, using questionnaires, observing (people, events, and object), software (Joint Application Development), and feasibility studies."
4) The program should print the following, no variables needed:
"Well, that is enough about SDLC! Let's talk more about me! I am so happy you have come back!!"
5) Create an empty list to add the digital assistant favorite songs. Use the append to add the top 5 songs. Have the program display the list with some dialog.
(e.g. I'm so happy that you are here to learn more about me. Do you know that my favorite songs are the following: printedList. Hmmm, I have second thoughts about that last song.")
6) Delete the last song using code and print out the new list of songs again.
(e.g. Okay, these are really my favorite songs:
printedList)
7) Create another empty list that will allow the digital assistant to add their favorite things to do. Use the append to add the top 5 things to do. Have the program display only the top thing you like to do.
(e.g. I can't wait to tell you about my favorite thing I like to do. My favorite task is to topTaskInList.)
8) Write five if statements that will determine what personality type the program consists of by using the favorite task list.
(e.g. if RockingClimbing is in the list, display--I am a risk taker.)
9) Make the program say it's final goodbye and summarize the top 3 songs and top 3 tasks by using slicing [0:3]. Have it display its name in all caps as it exits.
(e.g. It was so much fun having you to talk to today. My top 3 songs are the following:
printedList
and my top 3 things to do are the following:
printedList
I hope we can continue to talk in the future, Padawan. NameOfYourChoice is at your service. Have a good and blessed day!)
Submit your .py file using this assignment page.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
