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 volume. Round to nearest hundredth
AlladinOne [14]

Answer:

2pir^2 + 2pirh

2(pi)(3.2)^2+2pi(3.2)(8)

=225.19

=225.2

8 0
3 years ago
Is 2,925 more than 2,9250
k0ka [10]

Answer: 32,175

Step-by-step explanation:

2,925 + 29,250 = 32,175

hope this helps

plz mark brainleist

3 0
3 years ago
What’s 3x+6y=12 in the form y=mx+b
zhenek [66]
Hey there!

3x+6y=12

Divide both sides by 3 and your equation would now look like:
x+2y= 4
Move the x to the other side
2y= -x+4
Seprate the y by dividing both sides by 2
y= \frac{1}{2}x+2
4 0
3 years ago
Read 2 more answers
Xây dựng khoảng ước lượng đối xứng cho tỷ lệ tổng thể, trình bày bài toán tìm cỡ mẫu tối thiểu trong ước lượng khoảng cho tỷ lệ
Nikolay [14]
So basically you just
7 0
3 years ago
Malia did push-ups and pull-ups in her physical education class. She did 24 push-ups and pull-ups combined, with each push-up ta
Paul [167]

Answer:

12 pull

As 48 seconds + 20 seconds push = 68 seconds

Step-by-step explanation:

Because she did 10 push = 20 seconds = 2 seconds each

12 pull = 48 seconds  = 4 seconds each

= 68 seconds combined.

Workings;

18 seconds found for the first set

We then find a divider of 68 and know that

6 x 3 = 18 seconds push

12 x 3 =36 seconds pull  T= 54

14 left over = 1 x 12 seconds pull

+ 2 seconds push

= 10 push = 20 seconds combined.

= 12 pull = 48 seconds combined.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Point A is the incenter of ΔDEF. What is the length of NA?
    14·2 answers
  • 8a - 4b = 20<br>5a - 8b = 62<br><br>What are the values of a and b?​
    10·1 answer
  • HELP PLZ
    9·1 answer
  • . Consider the leading term of the polynomial function. What is the end behavior of the graph? Describe the end behavior and pro
    14·2 answers
  • a construction company needs to remove 24 tons of dirt from a construction site. They can remove 3/8 tons of dirt each hour. How
    14·1 answer
  • 2/7 x N = 8/5 <br> What is the fraction for N?
    6·2 answers
  • Tell whether the triangles are similar.
    8·1 answer
  • Find the surface area of the figure below:​
    14·2 answers
  • Give an exact value, not a decimal approximation
    11·1 answer
  • Simplify:<br> a) 96 + (-12) – (-5)<br> b) (-75) – (-24) + 10 :(
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!