Answered step by step
Verified Expert Solution
Link Copied!

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 7. 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.
"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."
4) 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."
5) Create a variable to store the user's name. Prompt the user for their name and store into the variable.
6) 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.
(e.g. I told you about my favorite songs. What are your favorite songs? (enter 'quit') to stop entering items to the list.
song->
)
7) Display a response to the list of music using the user's name as well.
(e.g. 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.)
8) 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 5 items and user a countered loop to ask for five items only.
(e.g. I can't wait to learn more about you. What are your 5 favorite things to do, userName?
Favorite thing #1->
)
9) Make the program say goodbye and summarize the top 2 favorite songs and top 2 things to do. Make sure to use the user's name.
(e.g. It was great to know more about you, userName. I now know your favorite songs. (Display the top 2 items from the list) I now know your favorite things to do.(Display the top 2 items from the list)
10) Have the program prompt the user if there is another person that would enter information about themselves.
(e.g. Is there anyone else there that I can meet? (y/n)->) If there is another person, the program should loop back to step 5 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

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

Why is actual costing rarely used for product costing?

Answered: 1 week ago

Question

Understand highlights of legislation enacted in 1964 and beyond

Answered: 1 week ago