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
Find the slope of the line graphed below.
AleksandrR [38]

Answer:

2 is the slope i think

Step-by-step explanation:

6 0
2 years ago
Read 2 more answers
What are the coordinates of the hole in the graph of the function f(x) ?
Vinvika [58]
ANSWER

(3, \infty )

EXPLANATION

The given function is

f(x) = \frac{ {x}^{2} - 9}{x - 3}

When we plug in x=3 into this function, we obtain,

f(3) = \frac{0}{0}

This means that the function is discontinuous at x=3.

We need to simplify the function to obtain,

f(x) = \frac{(x - 3)(x + 3)}{(x - 3)}

This implies that,

f(x) = x + 3

The graph this function is a straight line that is continuous everywhere.

To graph

f(x) = \frac{ {x}^{2} - 9}{x - 3}
we draw the graph of

f(x) = x + 3
and leave a hole at x=3.

See diagram in attachment.

Hence the coordinates of hole is

(3, \infty )

6 0
3 years ago
Pls help! 16 points:)
kenny6666 [7]

Answer: 52 degrees

Step-by-step explanation:

most likley like if correct

7 0
2 years ago
Read 2 more answers
What is the solution to this inequality? x - 8 &gt; -3 A. X&gt;-11 B. X&lt;-11 C. X&lt;5 D. X&gt;5
erik [133]

Answer

D. X>5

Step by step explanation

x - 8 > -3

Here we have to find the value of x.

Add 8 on both sides, we get

x - 8 + 8 > -3 + 8

x > 5

Thank you.

4 0
3 years ago
What is ratio? I <br><br><br><br><br><br> I will mark Brainiest
Advocard [28]

Answer:

ratio is line from center to end of the circle

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • What is 1944 divided by 2/3
    9·2 answers
  • What is the shape of the cross section of the figure that is perpendicular to the rectangular base but does not pass through the
    15·1 answer
  • Simplify square root of 2 over cube root of 2.
    11·2 answers
  • The angles in a triangle are such that one angle is 120 degrees more than the smallest angle, while the third angle is 3 times a
    8·1 answer
  • Need help solving this.
    9·1 answer
  • Fund Raising. Suppose you have signed up for a bike-a-thon to raise money for charity. One person is sponsoring you at a rate of
    10·1 answer
  • If 24 is 60% of a value, what is the total value
    6·1 answer
  • The equation of the line is​
    7·1 answer
  • 3 2/5 es una fracción propia impropia o mixta
    13·1 answer
  • Find all possible values of each expression if you know that 3 &lt; a &lt; 4<br><br>--&gt; -a
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!