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
3. Kasey Marsenburg is a financial consultant for ABC Finance.
avanturin [10]

Answer:

Step-by-step explanation:

100-65=35%

3 0
3 years ago
Can anyone answer this question about angles!
TiliK225 [7]

Isosceles triangle, angle P = angle Q.

3x + 10 = x + 52

2x = 42

x = 21

Congruent angles are both x+52=73 degrees.  Triangle angles add to 180 so

y = 180 - 73 - 73 = 34 degrees

Answer: 34

7 0
3 years ago
Write an inequality to represent the phrase: The sum of a number an 6 is no less than 31
Leviafan [203]
The inequality that represents this phrase is n+6 > 31.
5 0
3 years ago
SOMONE HELP ME I HAVE <br> TO DO THIS AFTER SCHOOL PLS ASAP!!!
Scrat [10]

Answer:

1 no

2 I don't know

3 no

4 yes

5 2.5 is the slope

6 -0.5

7 no slope

Step-by-step explanation:

1 no because the y overlaps

2 not sure

3 it over laps

4 it never overlaps

5 y=2.5x-3

6 y=-0.5x+1

7 no slope it's just x=-2

for the 5-7 you can type that into demos and get more info

y=mx+b

m is the slope and b is y intercept

3 0
3 years ago
Which equation is a point slope form equation for line AB ?
kap26 [50]

Answer:

y-5=\frac{3}{4}(x-6)

Step-by-step explanation:

we know that

The equation of a line in point slope form is equal to

y-y1=m(x-x1)

step 1

Find the slope m

we have the points

A(-2,-1),B(6,5)

The formula to calculate the slope between two points is equal to

m=\frac{y2-y1}{x2-x1}

substitute the values

m=\frac{5+1}{6+2}

m=\frac{6}{8}

simplify

m=\frac{3}{4}

step 2

Find the equation of the line

we have

(x1,y1)=(6,5)

m=\frac{3}{4}

substitute

y-y1=m(x-x1)

y-5=\frac{3}{4}(x-6)

3 0
3 years ago
Other questions:
  • a large bench is 7 1/6 feet long. it is 17 inches longer than the shorter bench. how many inches long is the shorter bench
    12·2 answers
  • What is the value of x?<br><br><br><br> Please helpppp
    10·2 answers
  • When finding scale factor do you multiply?
    14·1 answer
  • Who gon help me wit math
    13·1 answer
  • Select the ordered pairs that are solutions to the inequality 2x-3y greater than or less than 2
    6·1 answer
  • Answer this please ​
    6·2 answers
  • 9. a - 2a +5<br> pls help i’m kinda dumb
    12·2 answers
  • Find the value of x.<br><br> 75°<br> 36°
    15·2 answers
  • Will give brainleist Write an equation in slope intercept form. (Remember you need to find the “b,” using (x,y)
    10·1 answer
  • 2. The distance between Belmont and
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!