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
Creation of reproductive cells (gametes) requires...​
creativ13 [48]

Answer: a sperm and an egg

Step-by-step explanation:

3 0
3 years ago
Find the length of GI in the triangle below. Show your work.
love history [14]

Answer:

<u>The length of GI is 90.06 units</u>

Step-by-step explanation:

1. Let's review the information given to us to answer the question correctly:

GH = 60 units

HI = 42 units

∠H = 123°

2. Using the Law of Cosines, we can find the length of GI, this way:

GI² = GH² + HI² - 2 * GH * HI * cos ∠H

Replacing with the real values:

GI² = 60² + 42² - 2 * 60 * 42 * cos ∠123°

GI² = 3,600 + 1,764 - 2 * 60 * 42 * -0.545

GI² = 3,600 + 1,764 - 2 * 60 * 42 * -0.545

GI² = 3,600 + 1,764 + 2,746.8

GI² = 8,110.8

<u>GI = √ 8,110.8 = 90.06 units</u>

4 0
3 years ago
Read 2 more answers
5 - (-7) = 5+ ___ write as addition
polet [3.4K]

Answer

12 is the answer

8 0
2 years ago
Read 2 more answers
Please help!!!!!!!!!!!! 8 and 9
irina1246 [14]

m<E=45.5 m<F=45.5

this is question 8 can't see question 9

6 0
3 years ago
AB is tangent to circle O at B. What is the length of the radius r
steposvetlana [31]

check the picture below

Diane at your service :)

4 0
3 years ago
Other questions:
  • *PLEASE ANSWER[MULTIPLE CHOICE] FOR BRIANLIEST* (08.01 MC)
    5·1 answer
  • What is 3 hundredths less than 3 tenths. if possible please show your work!
    5·1 answer
  • (Uniform) Suppose X follows a continuous uniform distribution from 3 to 9. (a) Write down the PDF of X. (b) Find P(X ≤ 6). Round
    11·1 answer
  • 5x^3+9x^2+6x+1 times the polynomial x?
    13·1 answer
  • Fixed at 0.25 and 0.5 feet
    13·1 answer
  • Six of King Arthur’s knights are sitting around the Round Table eating peanuts. Since each knight suspected the others of not sh
    15·2 answers
  • Whats 6 X 8???????????????????????
    10·2 answers
  • In the problem above what comes after distribution property?
    13·2 answers
  • if one acute angle of a right triangle measures 47 degrees, what is the measures of the other acute angle
    15·1 answer
  • Does amyone know the answer ??​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!