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

  Using schedule performance index

Use the CPI to determine the estimate at completion (EAC) for this project. Describe whether project is performing better or worse than planned? Use the schedule performance index (SPI) to estimate how long ~ will take in order to finish this proje..

  What will be the playfair keyword

Using Playfair cipher, encrypt the following plaintext Pt. The Playfair's keyword was encrypted using simple substitution.

  Show contents of memory locations reserved by program

Show the contents (in hexadecimal) of the memory locations reserved by the following program.

  Describe the pipeline

Describe the pipeline. Clearly define the space and the mappings between spaces involved.

  Write a program that reads a list of concepts from text file

Write a program that reads a list of concepts/strings from the LIST.txt text file (one concept per line), stores them into an array of strings and then prints.

  Describe briefly how input devices are tested

Explain why a safety circuit or other EMERGENCY STOP device is important.

  Explain in your word the concept of parallelism transparency

Name two advantages of a microkernal over a monolithic kernel. Explain in your own words the concept of parallelism transparency.

  What do you mean by an entity

How is it possible to get more information from the equal amount of data though using a database approach as opposed to a file approach.

  Solve program using divide and conquer algorithm

Bellow is a C program counting steps. Please see if this program can be solved using either 1. Iteration 2. Recursion 3. Divide and Conquer Algorithm or 4. Greedy Algorithm. If there are any questions please let me know

  Define the terms attributes sampling and variables sampling

Audit Sampling: Types of Audit Samples. You have been assigned to the audit of Phillip's Inc., a chain of convenience stores.

  How des operating on a general plaintext input

find out whether or not the assertion is true and if it is, prove that it is. If it is not, prove that it is not.

  Describing the car structure

Write down a definition statement which describes a Car structure variable initialized along with the following information: Make: Ford Model: Mustang.

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