1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Valentin [98]
3 years ago
14

The area of a rectangle is the rectangle’s length times its width. Write a program that asks for the length and width of two rec

tangles. The program should tell the user which rectangle has the greater area, or if the areas are the same.

Mathematics
1 answer:
Mnenie [13.5K]3 years ago
7 0

Answer:

Using c++

Check the image for colors.

Step-by-step explanation:

#include <iostream>

using namespace std;

int main()

{

   float length1,length2,width1,width2,area1,area2;

   

   cout<<"length of Rectangle 1\n";

   cin>>length1;

   cout<<"\nwidth of Rectangle 1\n";

   cin>>width1;

   cout<<"\nlenght of Rectangle 2\n";

   cin>>length2;

   cout<<"\nwidth of Rectangle 2\n";

   cin>>width2;

   

   area1=length1*width1;

   area2=length2*width2;

   

   if (area1<area2)

   {cout << "\nRectangle 2 has greater area";}

   else {

               if (area1>area2)

                  {cout << "\nRectangle 1 has greater area";}

               else {cout << "\nAreas are the same";}

         }

   

   return 0;

}

You might be interested in
Anybody can help ?? 6-3d=5(2-d)
TEA [102]

Answer:

d = 4

Step-by-step explanation:

6-3d=10-d

-2d=4

divide d by -2

the answer is 4.

5 0
3 years ago
Read 2 more answers
Here is a polygon. The side lengths are: AB= 18 units, BC= 12 units, CD= 6 units, and DA= 24 units.
dezoksy [38]

Answer:Given : Polygon side lengths are: AB= 18 units, BC= 12 units, CD= 6 units, and DA= 24 units.  

polygon ABCD is dilated using center A and scale factor  1/2

polygon ABCD is dilated using center D and scale factor  1/3

To Find :

side lengths of dilated polygon EFGH

EF= ____, FG= ____, GH= ____, HE=

side lengths of dilated polygon IJKL?

IJ= ____, JK= ____, KL= ____, LI= ____

Solution:

AB= 18 units, BC= 12 units, CD= 6 units, and DA= 24 units.  

EF=  AB/2  = 18/2 = 9

FG = BC/2 = 12/2 = 6

GH = CD/2 = 6/2 = 3

HI = DA/2 = 24/2 = 12

IJ= AB/3 = 18/3 = 6

JK = BC/3 = 12/3 = 4

KL= CD/3 = 6/3 = 2

LI =  DA/3 = 24/3 = 8

polygon  EFGH is Dilated from polygon ABCD

Hence polygon  EFGH ≈ polygon ABCD

polygon  IJKL is Dilated from polygon ABCD

Hence polygon   IJKL ≈ polygon ABCD

As polygon ABCD   ≈  polygon   IJKL  & polygon  EFGH

=>   polygon  EFGH ≈ polygon   IJKL

Learn More:

brainly.in/question/32190290

Triangle STV was dilated with the origin as the center of dilation to ...

brainly.in/question/17620960

Suppose figure A underwent a dilation to produce figure B. Are ...

brainly.in/question/26054879

Step-by-step explanation:

6 0
3 years ago
Answer Asap!
Dmitry_Shevchenko [17]

Answer:

a) RTP

b) MN

c) x=7

Step-by-step explanation:

hope this helps

5 0
2 years ago
Chris uses 324 tiles to cover the top of his computer desk. Of the tiles, 3 are red and the rest are blue. How many tiles are bl
Reptile [31]
This is pretty easy wouldnt it be 321.

324-3=321
6 0
2 years ago
Read 2 more answers
the game of monopoly is played on a square board with 10 spaces per side (so 40 in total). a player starts at the space marked "
lions [1.4K]

Answer:

23

Step-by-step explanation:

5 0
3 years ago
Other questions:
  • Which of the following best describes the graph below?
    9·2 answers
  • A random sample of 160 car purchases are selected and categorized by age. The results are listed below. The age distribution of
    6·1 answer
  • Expand (4x+3y)^5....
    15·1 answer
  • The shorter leg of a 30°-60°-90° triangle is 7.4 meters long. Find the perimeter.
    8·1 answer
  • What is 7-1-299-689+478*84588
    8·2 answers
  • Jill earned $40 from a carpool plus $9 per hour (h) babysitting this week. Which of the following expressions best represents Ji
    14·2 answers
  • Jordan wants to play a basketball game at a carnival. The game costs the player $ 5 $5dollar sign, 5 to play, and the player get
    14·1 answer
  • HELP I NEED HELP ASAP
    5·1 answer
  • Silvia wants to mix a 20% apple juice drink with pure apple juice to make 4 L of a juice drink that is 80% apple juice. How much
    9·1 answer
  • Considering the following expression, identify what the constant(s) are<br> 4x2 + 8x + 16
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!