ample Output 2 Enter length of rectanglet: 2 Enter width of rectangle116 Enter length of rectangle: 2 Enter width of rectangle2:10 Area of rectangle is 12.00 Area of rectangle2 is 20.00 Area of rectangle could either be less than or equal to area of rectangle
ample Output 2 Enter length of rectanglet: 2 Enter width of rectangle116 Enter length of rectangle: 2 Enter width of rectangle2:10 Area of rectangle is 12.00 Area of rectangle2 is 20.00 Area of rectangle could either be less than or equal to area of rectangle
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Sample Output 2 Enter length of rectanglet: 2 Enter width of rectangle116 Enter length of rectangle: 2 Enter width of rectangle2:10 Area of rectangle is 12.00 Area of rectangle2 is 20.00 Area of rectangle could either be less than or equal to area of rectangle
![12:17
Log in to ranger using your class account (refer to previous labs if you
have questions about how to log in.)
2 Create a source file called cla6.py using the file editor in idle3 (refer to
CLA3 - Introduction to IDLE for how use IDLE from ranger)
1 Follow these instructions:
at a ranger prompt type: idle3 &
• To write a new Python program in IDLE, open a new script window:
Click File on the menu bar, then click New Window (alternately you
can press Ctri+N).
. Write a python program that meets the given problem
specification.
Problem Specification
. The program should calculate the area of two rectangles, display
the areas as output, and also tell the user which rectangie has
greater area.
· To do this:
• read input from the user; length and width of rectangle1.
(NOTE: Use variable names - length1 and width1; these
should be floating point values; use input prompts as
shown in sample output below.)
. read input from user, length and width of rectangle2.(NOTE:
Use variable names - length2 and width2; these should
be floating point values; use input prompts as shown in
sample output below.)
calculate areat = length1 times width1
• calculate area2 = length 2 times width2
· Display areat and area2 (NOTE: area should be displayed
to two decimal places; use print statements as shown in
sample output below.)
if areat is greater than area 2 the program should display
"Area of rectangle1 is greater than area of rectangle2.
(NOTE: quotes are excluded from the output; your output
will not be bold.)
• otherwise the program should display "Area of rectangle1
could either be less than or equal to area of rectangle2."
(NOTE: quotes are excluded from the output; your output
will not be bold.)
Refer to the sample output below to craft your program
output:
Sample Outputt
Enter length of rectanglet: 10
Enter width of rectanglet: 20
Enter length of rectanglez: 5
Enter width of rectangle2: 5
Area of rectangiet is 200.00
Area of rectangiet is greater than area of rectangiez.
Sample Output 2
Enter length of rectangiet: 2
Enter width of rectanglet:6
Enter length of rectangle: 2
Enter width of rectanglez: 10
Area of rectanglet is 12.00
Area of rectangiez is 20.00
Area of rectanglet could either be less than or equal te area of rectanglez.
ics.mtsu.edu](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6ee4c3f3-bbfc-4034-bf75-7c0052eee8ef%2F74720e1d-d48e-4f8b-a358-b6d886bb34a0%2Fqr7oj8g_processed.jpeg&w=3840&q=75)
Transcribed Image Text:12:17
Log in to ranger using your class account (refer to previous labs if you
have questions about how to log in.)
2 Create a source file called cla6.py using the file editor in idle3 (refer to
CLA3 - Introduction to IDLE for how use IDLE from ranger)
1 Follow these instructions:
at a ranger prompt type: idle3 &
• To write a new Python program in IDLE, open a new script window:
Click File on the menu bar, then click New Window (alternately you
can press Ctri+N).
. Write a python program that meets the given problem
specification.
Problem Specification
. The program should calculate the area of two rectangles, display
the areas as output, and also tell the user which rectangie has
greater area.
· To do this:
• read input from the user; length and width of rectangle1.
(NOTE: Use variable names - length1 and width1; these
should be floating point values; use input prompts as
shown in sample output below.)
. read input from user, length and width of rectangle2.(NOTE:
Use variable names - length2 and width2; these should
be floating point values; use input prompts as shown in
sample output below.)
calculate areat = length1 times width1
• calculate area2 = length 2 times width2
· Display areat and area2 (NOTE: area should be displayed
to two decimal places; use print statements as shown in
sample output below.)
if areat is greater than area 2 the program should display
"Area of rectangle1 is greater than area of rectangle2.
(NOTE: quotes are excluded from the output; your output
will not be bold.)
• otherwise the program should display "Area of rectangle1
could either be less than or equal to area of rectangle2."
(NOTE: quotes are excluded from the output; your output
will not be bold.)
Refer to the sample output below to craft your program
output:
Sample Outputt
Enter length of rectanglet: 10
Enter width of rectanglet: 20
Enter length of rectanglez: 5
Enter width of rectangle2: 5
Area of rectangiet is 200.00
Area of rectangiet is greater than area of rectangiez.
Sample Output 2
Enter length of rectangiet: 2
Enter width of rectanglet:6
Enter length of rectangle: 2
Enter width of rectanglez: 10
Area of rectanglet is 12.00
Area of rectangiez is 20.00
Area of rectanglet could either be less than or equal te area of rectanglez.
ics.mtsu.edu
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY