Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

For this lesson, you will come up with your own challenging algorithm for other students to trace. It must contain at least 5 if statements and use at least one AND or OR boolean condition.
The Scenario
You have decided to start a website and are creating a chatbot prototype to show investors so you can raise money and launch your website.

Your chatbot should ask the user the following (minimum requirements for the autograder) and then give answers depending on the answers the user inputs:

at least 5 questions, and
at least 2 if-elif-else statements.
Part 1.

Write a Python code that does the following.

• Create a string that is a long series of words separated by spaces. The string is your own creative choice. It can be names, favorite foods, animals, anything. Just make it up yourself. Do not copy the string from another source.

• Turn the string into a list of words using split.

• Delete three words from the list, but delete each one using a different kind of Python operation.

• Sort the list.

• Add new words to the list (three or more) using three different kinds of Python operation.

• Turn the list of words back into a single string using join.

• Print the string.


Part 2.

Provide your own examples of the following using Python lists. Create your own examples. Do not copy them from another source.

• nested lists
• The "*" operator
• List slices
• The "+=" operator
• A list filter
• A list operation that is legal but does the "wrong" thing, not what the programmer expects
How to make a boat for edhesive assignment 5 animation because I cant figure it out.
Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array.
14 36 31 -2 11 -6
ask user to input the time of the day (just the hour as an integer between 0 and 23) and decide whether it’s morning (between 0 and 12 inclusive), afternoon (between 13 and 17 inclusive), evening (between 18 and 19 inclusive), or night (between 20 and 23 inclusive).
Part 1

Encapsulate the following Python code from Section 7.5 in a function named m_sqrt that takes a as a parameter, chooses a starting value for x, and returns an estimate of the square root of a.

While True:
y= (x + a/x) / 2.0
If y== x:
break
X = y

Part 2

Write a function named test_sqrt that prints a table like in the following using a while loop, where "diff" is the absolute value of the difference between my_sprt(a) and math.sqrt(a).
Encapsulate the following Python code from Section 7.5 in a function named my_sqrt that takes a as a parameter, chooses a starting value for x, and returns an estimate of the square root of a.

while True:
y = (x + a/x) / 2.0
if y == x:
break
x = y
Step 1: Start Message about the program
Step 2: Attend All Classes
Step 3: Obey the financial Obligations and get clearance access
Step 4: Download the assignments
Step 5: Submit the Assignments
During your interview, you determine that the program should display the steps one at a time. You decide that after each step is displayed, the user will be asked to press the Enter key to see the next step. Using the following Hierarchy chart write the code of the program
Guessing Team india score in 20-20cricket
Wap gives you a random score of team india in a cricket match,and a playerhas to guess the score given by computer in between 1 to 250 The rules are
1.if a players guess is less than 1 or greater than 250,say "Reduce your expectation for 20-20 Cricket"
2.On a players input,if their score guess is
a.within 10of the number ,return "Close By,you are True Indian Fan!"
b. Further than 10away from the number,return "You don't watch that much!:P"
LATEST TUTORIALS
APPROVED BY CLIENTS