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...
icon
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
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
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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…
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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY