Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the GUI must be user friendly with meaningful prompts. Write a tkinter program to build the frame work this GUI that can convert rectangular coordinates

the GUI must be user friendly with meaningful prompts. Write a tkinter program to build the frame work this GUI that can convert rectangular coordinates (x,y) of a point to polar coordinates (r,theta) of a point to rectangular coordinates(x,y)
The user must initially be able to select rectangular to polar or polar to rectangular. You can use two buttons for this, radio buttons, or drop-down menus to allow user to choose one option.
1) if the user chooses rectangular to polar:
Allow user to enter (x,y) values
Calculate r and theta using formulas r=sqrtx^2+y^2 ,and theta =tan^-1 (y/x)
Display r, theta on screen
2) if the user chooses polar to rectangular:
Allow user to enter r and theta values.
Calculate x and y using formulas x =r cos(theta), y=rsin(theta).
Display x,y on screen
image text in transcribed
Write a program that can convert Rectangular coordinates (x,y) of a point to Polar coordinates ( r, theta) as well as convert Polar coordinates ( r, theta) of a point to Rectangular coordinates (x,y) The user must initially be able to select 'Rectangular to Polar' OR 'Polar to Rectangular'. You can use 2 buttons for this, or look up how to use radio buttons or drop down menus to allow user to choose one option. 1) If the user chooses Rectangufar to Polar: - Allow user to enter x and y values. - Calculate r and theta using formulas: r=x2+y2 and thet a=tan1(xy) - Displayr, theta on screen 2) If the user chooses Polar to Rectangular: - Allow user to enter r and theta values. - Calculate x and y using formulas x=rcos(theta),y=rsin(theta) - Display x,y on screen We have learnt basics of Tkinter in the last 2 weeks. That should help you build the basic framework for this GUI. But you can also look up online resources/videos to further enhance it (eg. Look up how to incorporate radiobuttons or checkboxes for user to select an option). Use your discretion to develop the program and design the window layout. The GUI must be user friendly with meaningful prompts, text and relevant units displayed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions