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
A store uses the expression –2p + 50 to model the number of backpacks it sells per day, where the price, p, can be anywhere from
Rus_ich [418]
Revenue = price * number of backpacks
number of backpacks = -2p + 50

p = 9 ; -2(9) + 50 = -18 + 50 = 32
revenue = 9 * 32 = 288

p = 12 ; -2(12) + 50 = -24 + 50 = 26
revenue = 12 * 26 = 312

<u>p = 12.50 ; -2(12.50) + 50 = -25 + 50 = 25</u>
<u>revenue = 12.50 * 25 = 312.50</u>   GIVES THE MAXIMUM REVENUE

p = 15 ; -2(15) + 50 = -30 + 50 = 20
revenue = 15 * 20 = 300
8 0
3 years ago
Read 2 more answers
Which is equal to (3 + 4) - 50
VladimirAG [237]

Answer:

-43

hope this helps

have a good day :)

Step-by-step explanation:

3+4=7

7-50=-43

8 0
3 years ago
Read 2 more answers
Witch number produces a rational number when multiplied by 0.25
Oxana [17]

Is there like a question on paper with choices? It’s kind of confusing when you need to multiply yourself, and it seems like there would be a A, B, C, D on this.

6 0
3 years ago
Vick makes jewelry. She uses 42 beads for each necklace that she makes,and she has 500 beads. How many necklaces can she make? E
torisob [31]
He can make about 12 brackets
7 0
3 years ago
Read 2 more answers
OP = a
loris [4]

Answer:

please make me brainliset

3 0
2 years ago
Other questions:
  • Write a fraction less than 1 with a demoninator of 6 that is greater than 3/4?
    14·1 answer
  • Joseph put a 30% down payment on a house. What fraction of a down payment did Joseph put on a house?
    13·1 answer
  • How do you solve...0=-5t^2+20t+1
    14·1 answer
  • The slope of the line is?
    10·2 answers
  • Taylor has saved $99 for a tablet. That is 45% of the cost of the tablet. How much does the tablet cost?
    12·2 answers
  • steve repairs elevators. when he is called to a job he uses the stairwell to go to the floor which the elevator is located. in t
    12·1 answer
  • To which subset of the real numbers does -18 belongs ( irrational, rational, integer, natural, real numbers, whole)
    14·1 answer
  • The graph of y=tan{1/4(x-pi/2)}+2 is shown. What is the period of the function?
    15·1 answer
  • A rectangle has vertices (r,t) , (r,s) and (t,t). find the fourth vertex
    6·1 answer
  • State the point of intersection
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!