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
2x + 2y = 6<br> 3x − 2y = 29
Mazyrski [523]

Answer:

x = 7

y = -4

Step-by-step explanation:

5x = 35

x=7

14 + 2y = 6

2y = -8

y = -4

7 0
3 years ago
Find the difference. 8.25 - (-1.9) <br> A.8.44 <br> B.6.35 <br> C.10.15 <br> D.-6.35
quester [9]

Answer:

C. 10.15

Step-by-step explanation:

If you left 8.25 and changed the minus sign to a addition sign and the -1.9 to just 1.9 and then add 8.25 + 1.9 together you will then get 10.15 a way to remember this is “leave, change, change,” you leave the first number and change the subtraction and negative number sign. :)

3 0
3 years ago
Read 2 more answers
Please help! determine the measure of the missing angles. show your work.
IrinaVladis [17]

Top triangle: if the know angle measures are 90 and 55 and there are a total of 180, 90 + 55 + a = 180. This means that angle a = 35°

Bottom triangle: if a is 35, the angle connected to it is 35 because they are vertical angles. The angles of this triangle are 35 + 120 + b = 180. Angle b = 25°

5 0
3 years ago
The photo down below will show you what I need help with.​
Irina18 [472]

Answer:

\frac{x+7}{3} (the second option)

Step-by-step explanation:

Hope this helps!

7 0
3 years ago
Determine the probability of having 2 girls and 3 boys in a 5-child family assuming boys and girls are equally likely.
Andrew [12]
The correct answer is 5/16.
5 0
3 years ago
Other questions:
  • Alina is able to swim at a rate of about 2.5 miles per hour. Talia is able to swim at a rate of 1.8 meters per second. Which sta
    5·2 answers
  • Ten minutes after he left his home, Gerald was 40 miles from his grandmother’s house. Then, 22 minutes after he left, he was 34
    11·1 answer
  • What is 302.135 rounded to the nearest tenth?<br> A. 300<br> B. 302.1<br> C. 302.14<br> D. 302.2
    13·1 answer
  • I need help on this
    14·1 answer
  • I NEED HELP ASAP PLEASE HELP ME FILL THIS DOCUMENTATION OUT PLEASE .ILL GIVE U 50 POINTS
    7·1 answer
  • What is the answer to this problem
    14·2 answers
  • PLS HELP! DUE TODAY WILL MARK BRAINLIEST
    5·1 answer
  • Some easy points for you guys!<br><br> ♫ = 3<br><br> ☺ = 4<br><br> ♫ ♫ ☺ = ??
    8·1 answer
  • What is the solution to the equation g(x+2) = 27? (1 point)
    14·2 answers
  • Pa help po free point​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!