Question

Exercises Create a window where you can give the path of a folder and that it will show the files that are inside. Test if a given path is a directory. Create a window where the first button will calculate n! and the second button calculates n to the power m.

          Exercises
Create a window where you can give the path of a
folder and that it will show the files that are inside.
Test if a given path is a directory.
Create a window where the first button will calculate
n! and the second button calculates n to the power m.
        
Show more…
Exercises
Create a window where you can give the path of a
folder and that it will show the files that are inside.
Test if a given path is a directory.
Create a window where the first button will calculate
n! and the second button calculates n to the power m.

Added by Samuel A.

Close

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
Help! In Python using Tkinter! Exercises: Create a window where you can enter the path of a folder and it will show the files that are inside. Test if a given path is a directory. Create a window where the first button will calculate n! and the second button calculates n to the power of m.
Close icon
Play audio
Feedback
Powered by NumerAI
Kathleen Carty Danielle Fairburn
Jennifer Stoner verified

Jordan Gassaway and 69 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
tkinter-two-rectangles-intersect-using-the-rectangle2d-class-you-defined-in-exercise-819-write-a-p-2

(Tkinter: two rectangles intersect?) Using the Rectangle2D class you defined in Exercise 8.19, write a program that enables the user to specify the location and size of the rectangles and displays whether the two rectangles intersect, as shown in Figure 12.21. Enable the user to point the mouse inside a rectangle and drag it. As a rectangle is being dragged, the program updates the rectangle’s center coordinates, width, and height in the text fields. in Figure 12.21. Enable the user to point the mouse inside a rectangle and drag it. As a rectangle is being dragged, the program updates the rectangle’s center coordinates, width, and height in the text fields.

Introduction to Programming Using Python

hi-all-need-help-with-this-homework-question-all-coding-is-in-python-1-rectangle-area-the-area-of-a-rectangle-is-calculated-according-to-the-following-formula-area-width-length-design-a-func-42154

1.) Rectangle Area The area of a rectangle is calculated according to the following formula: Area= Width * Length Design a function that accepts a rectangle's width and length as arguments and returns the rectangle's area. Use the function in a program that prompts the user to enter the rectangle's width and length, and then displays the rectangle's area.

Shelayah R.

tkinter-two-circles-intersect-using-the-circle2d-class-you-defined-in-exercise-818-write-a-program-2

(Tkinter: two circles intersect?) Using the Circle2D class you defined in Exercise 8.18, write a program that enables the user to specify the location and size of two circles and displays whether the circles intersect, as shown in Figure 12.20. Enable the user to point the mouse inside a circle and drag it. As a circle is being dragged, the program updates the circle’s center coordinates and its radius in the text fields.

Introduction to Programming Using Python


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,946 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,373 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,420 solutions

*

Transcript

-
00:01 Okay, so this problem is very similar to the programs we wrote for problem 7 and problem 8 so we've we can actually reuse quite a bit of the same code so much that we're really not going to be writing too much new code.
00:18 It's mostly just going to be modifying the two we've taken our rectangles intersect program that drew the two rectangles that you could drag around we're still going to create a window a label, canvas, create the two rectangles, and then bind our click handler.
00:38 And then what we've added is the manual entry fields that we created in problem eight.
00:48 That one we had a center x and a center y and a radius.
00:52 Here we've just changed those so that we now have a center x, center y.
00:58 We've changed the radius to width and then we've added a height variable.
01:01 So we now have four variables instead of three.
01:06 Once again, we just create a new entry for those, and then we arrange them in the grid.
01:14 We update the field so they match the models, and then we just threw this button down at the bottom that we'll call our redraw function when it's clicked.
01:27 Again, we created a four loop that just iterates through all the variables for each of the variable rectangle pairs.
01:35 So we do all the r1 variables and then all of the r2 variables...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever