Calculate the area of a rectangle and displays it

Assignment Help Python Programming
Reference no: EM13883656

Write a python program that calculates the area of a rectangle and displays it.

For this purpose:

Ask the user for length of the rectangle using the input function

Convert length to int using the int function: length = int(length)

Ask the user for width using the input function

Convert width to int using the int function: width = int(width)

Save their product (length * width) in a variable named area

Display the variables length, width and area on screen using the print function

Reference no: EM13883656

Questions Cloud

What are some internal control measures : What are some internal control measures that could prevent a hacker from altering data in your company database?
What is the principle of lime soda process : 1. What is the principle of Lime Soda process? Give their functions with chemical reactions. 2. Write notes on Reserve osmosis and Ultra filtration.
Discussed the importance of communication : Discussed the importance of communication. One of the goals of GCU is to help you to effectively communicate throughout your life. Access and review the "Communication Tool." Why is it important to communicate effectively with others? How will effect..
Advantageous to use a cloud database (daas) : Why would a small company with 400 employees find it advantageous to use a cloud database (DaaS)?
Calculate the area of a rectangle and displays it : Write a python program that calculates the area of a rectangle and displays it - Display the variables length, width and area on screen using the print function
Identify and describe the analytical tools in olap. : Identify and describe the analytical tools in OLAP.
Locate to share unique and creative sales ideas : Your task for this discussion question is to use any sources you can locate to share unique and creative sales ideas from professional or college sports. When presenting your favorite sales promotions, please describe the promotion and share why you ..
Calculate the sinking fund payment required for the fence : Calculate the sinking fund payment required for the fence post molding machine
How has anheuser busch used data warehousing : How has Anheuser Busch used data warehousing and data mining successfully?

Reviews

Write a Review

Python Programming Questions & Answers

  Development on windows and linux systems

develop a simple, data-intensive application in Python - Data Analysis of a Document Tracker

  Disabled individuals open jars and containers

What variables are you going to need and what will be their datatype and how would you break this problem into numerous smaller units?

  Tower of hanoi game

Tower of Hanoi game that you can let a player to move discs between the towers using a mouse - Each move consists of taking the upper disk from one of the pegs and sliding it onto another rod, on top of the other disks that may already be present o..

  A string is valid windows filename.

writing a function in python that verifies whether a string is valid windows filename.

  Write python program isosceles tri equilateral tri rectangle

Write python program Isosceles Tri Equilateral Tri Rectangle, Write another "driver" script called project1.py which imports the polygon.py module, reads an input file of polygonal data and writes another file of areas and perimeters.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  Question 1 research 5-8 species within one family of birds

question 1 research 5-8 species within one family of birds. be sure to use primary or very good secondary literature

  Aussie best car abcdeclares that based on its yearly sales

aussie best car abcdeclares that based on its yearly sales it will award a bonus as follows. the bonus will be equally

  Specializes in solving the equations ax=b by doolittle''s dec

Write a  program that specializes in solving the equations Ax=b by Doolittle's decomposition method, where a is the HIbber matrix of arbitrary size nxn

  Most popular name would be the one with the biggest number

the program will ask you to insert the year that the user is interested in, then ask the gender that the user is interested in, and print out the most popular names corresponding to the year and gender. FYI, the number on the right represents how man..

  Python errors

python errors, please correct them that are located in this program,

  What prompted the authors to try and address

What is the question that this study is trying to answer and what prompted the authors to try and address this question?

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