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

  Detemining the ciphertext

Explain the ciphertext (in binary form) produced by the encryption of character. Explain what will the plaintext if ciphertext is 01111101.

  How many edges are there in a tree with 57 vertices

How many edges are there in a tree with 57 vertices - How many internal vertices are there in a full binary tree of height 10?

  Analyze and write down a comparison of c++ pointers

Use safety and convenience as the primary considerations in the comparison and also consider fixed heap-dynamics variables.

  Drawbacks of working with multiple tables

rePresent an instance of a situation where multiple tables would be appropriate in an application and discuss why this approach is needed in this scenario.

  Give the contents of the b-tree

Give the contents of the B-tree that results when the keys EA S YQUES T I O N are inserted in that order into an initially empty tree, with M = 5.

  What should the two miss rates be so that the average data

What should the two miss rates be so that the average data access time of this cache system is 2 cycles?

  Define a rank function for the nodes of any binary tree

Define a rank function r (x) for the nodes of any binary tree as follows: If x is the root, then r (x)= 0. If x is the left child of a node y.

  Draw a diagram to highlight the product road map

Draw a diagram to highlight the product road map and product life cycle through the use of graphical tools in Visio, or an open source alternative such as Dia.

  Assignment on information and communication technology

A thorough executive summary and an overview of the company, its history, background, and stage in the company life cycle. The need(s) the company addresses and the customers it pursues. The role of the Internet in strategy: business strategy, Infor..

  Build a simple shipping company web application

Who can build a simple SHIPPING COMPANY web application with DATABASE that will be easy to host online. With just few pages but with all necessary functions.

  Present data in attractive reports and forms

With a recent growth in business, Great Outdoors Tours has developed a database in Access 2013 to organize its records. The company would like your help with presenting data in attractive reports and forms that highlight certain information.

  Write specifications for a function that computes the change

Write specifications (documentation) for a function that computes the change, if any, that you should receive.

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