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

Section 6.2 of your textbook describes incremental development. Do the exercise at the end of that section:

As an exercise, use incremental development to write a function called hypotenuse that returns the length of the hypotenuse of a right triangle given the lengths of the other two legs as arguments. Record each stage of the development process as you go. (Downey, 2015)

After the final stage of development, print the output of hypotenuse(3, 4) and two other calls to hypotenuse with different arguments.

Include all of the following in your Learning Journal:

An explanation of each stage of development, including code and any test input and output.
The output of hypotenuse(3,4).
The output of two additional calls to hypotenuse with different arguments.
Section 6.9 of your textbook ("Debugging") lists three possibilities to consider if a function is not working.

Describe each possibility in your own words.

Define "precondition" and "postcondition" as part of your description.

Create your own example of each possibility in Python code. List the code for each example, along with sample output from trying to run it.
Assignment 4: Student Schedule
Hi I need a better answer than what I came up with. Please help!

Write your own unique Python program that has a runtime error.
I need to know the code of my program, the output demonstrating the runtime error, including the error message, and an explanation on how to fix the error.

I did a very simple one and I know I will get laughed at. I am very new at coding, no platform what so ever so I need a little help from you please.My cheesy example is:

print (python)

The code of my program is : print (python)

Output:

Traceback (most recent call last):
File "C:/New folder/python/runtime practice.py", line 1, in <module>
print ( python )
NameError: name 'python' is not defined
>>>

In order for the code to properly work I will need to add parenthesis to ("python") so that the word is then defined. Now it will print as I asked.

Is this ok? Or can you help me to make a not so cheesy one?
Edhesive 5.6
Use the starter code to create a program with 4 buttons and emoticons. Each button will make the graphical interface Display a different emoticon.
describe the difference between a chained conditional and a nested conditional,give example for each
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.
Based on this criteria, some responses will be based on what the user types, and some will be based on random numbers.

For example, if the chatbot asks how the user is doing, your chatbot might respond I’m sorry to hear that. in response to a user input of sad, or That's great! in response to a user input of happy.

Additionally, you could also have a random number generated between, say, 1 and 3 and have a corresponding response depending on the number to randomly answer with That is great to hear. or So interesting., and so on.
Write a program that accepts a time as an hour and minute. Add 15 minutes to the time, and output the results.

Sample Run 1
Enter the hour: 8
Enter the minute: 15

Sample Output 1
Hours: 8
Minutes: 30

Sample Run 2
Enter the hour: 9
Enter the minute: 46

Sample Output 2
Hours: 10
Minutes: 1
Write a program that inputs the length of two pieces of fabric in feet and inches (as whole numbers) and prints the total.

Sample Run
Enter the Feet: 3
Enter the Inches: 11
Enter the Feet: 2
Enter the Inches: 5

Sample Output
Feet: 6 Inches: 4
Question:
Room shape

For this lab you will find the area of an irregularly shaped room with the shape as shown above.

Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.

Remember the formula for finding the area of a rectangle is length * width and the area of a right triangle is 0.5 * the base * height.

Please note the final area should be in decimal format.

Sample run:

Enter side A: 11
Enter side B: 2
Enter side C: 4
Enter side D: 7
Enter side E: 1
Output:

Room Area: 53.5
LATEST TUTORIALS
APPROVED BY CLIENTS