Write an application with gui using tkinter

Assignment Help Computer Engineering
Reference no: EM132175766

I've been recently learning Python 3.6, and doing some practice problems. I came across this one, that's meant to teach how to create a basic GUI, using Tkinter. Because I'm still very new to Python, I'm having some trouble figuring out exactly how to write the code, and always get tripped up with the indentation. I'd really appreciate some help with this, and if possible, explanation of each step.

You own several cabins in the mountains, and plan to make some extra money by renting them to tourists and visitors. There are three different types of cabins: luxury, premier and economy. The rental price for luxury cabin is $300 per day. The rental price for premier cabin is $200 per day. And the rental price for economy cabin is $100 per day.

Write an application with GUI, using Tkinter. The application will have three components: a slider (Scale) for the tourist to choose how many days they want to stay in the cabin (between 0 and 100 days), A drop-down menu (OptionMenu) for the tourist to choose which type of cabin they want to rent (luxury, premier or economy), and a "Calculate" button. For the drop-down menu, the "Economy" option should be selected by default. Once the tourist clicks the button, the program should launch an information message box to show the user what is the estimated amount of payment.

Once the user click "Calculate" button, the user will be able to see a message box containing the estimated amount of payment

For example, the user selected "Premier" cabin and drag the bar to set the length of stay to 35 days, calulates payment. A different user selected "Luxury" cabin and drag the bar to set the length of stay to 60 days, calcualtes payment...

Reference no: EM132175766

Questions Cloud

Under the americans with disabilities act : What are the requirements of the employer under the Americans with Disabilities Act of 1990 when making selection decisions?
Task conflict stimulates divergent thinking in teams : Which type of conflict is most harmful to a team? Task conflict stimulates divergent thinking in teams.
A team that needs to shift their strategy in face of change : A team that needs to shift their strategy in the face of change, should have the ability of:
Which enhancing performance : Shared leadership, over time, is related to increased __________ which enhancing performance.
Write an application with gui using tkinter : Write an application with GUI, using Tkinter. The application will have three components: a slider (Scale) for the tourist to choose how many days.
List the reasons you would give her to dissuade : List the reasons you (as a member of the same team as Bea) would give her to dissuade her from trying to scrap the SDLC and prototype every project.
Write a function name is prime which takes an integer : A prime number is a number that is only evenly divisible by itself and 1. For example, the number 5 is prime because it can only be evenly divided by 1 and 5.
Define a polygon with a maximum of 8 edges : VBA CODE Write a VBA (Visual Basic for Applications) sub program to verify whether a point (with x and y coordinates) lies within a specified irregular polygon.
What are some various methods for implementing a fsm in c : When might one method be better than another in a given situation? Describe the advantages and disadvantages of each method.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd