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]
2 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]2 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
Evaluate n/6 + 2 when n=12
WINSTONCH [101]
12/6 is 2

2 +2 is 4

The overall answer is 4
3 0
3 years ago
Read 2 more answers
Can you show me the graph for f(x) = 1/2 x + 2
frez [133]

Here is the graph with your line in it.

4 0
3 years ago
Read 2 more answers
A professional baseball diamond is a square. The distance from base to base is 90 ft. To the nearest foot, how far does a catche
mamaluj [8]

BSE is square.

Let side be s

  • s=90ft

Diagonal be d

\\ \tt\longmapsto s=\dfrac{d}{\sqrt{2}}

\\ \tt\longmapsto d=s\sqrt{2}

\\ \tt\longmapsto d=90\sqrt{2}

\\ \tt\longmapsto d=127ft

3 0
2 years ago
Read 2 more answers
A company hauls its 1 cubic foot boxes in the truck as shown.
Alenkinab [10]

Answer:

96

Step-by-step explanation:

3*4*8=96

4 0
2 years ago
Read 2 more answers
12. What is the value of x ?
Firlakuza [10]

Answer:

If that dot in the middle is the middle of the circle, then that should mean the center is 5 away from both of those lines. Therefore, I believe x would 9/2 or 4.5

4 0
2 years ago
Other questions:
  • Divide 28 in the ratio of 3:1
    14·2 answers
  • What property is illustrated by the statement 7+(4+4)=(7+4)+4
    7·1 answer
  • Which construction is partially represented by the diagram on the baseball field? Explain the next set of instructions to correc
    5·1 answer
  • 2. Twice a certain number is doubled. The resulting number is four times the original number.
    10·1 answer
  • WHATS THE PRODUCT PLZZZ
    13·2 answers
  • Which expressions are equivalent?
    9·1 answer
  • What is the value of the expression 7−3 ?
    5·1 answer
  • Find the area of this unusual shape
    14·1 answer
  • Which of the following is a correct interpretation of the expression - 3 - 5?
    5·1 answer
  • Find the value of x. Leave your answer in simplest radical form.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!