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
Tessellations that use only one type of regular polygon are called semi-regular tessellations. A. True B. False
Sauron [17]

The answer is B... False. Tansellations that use only one type of regular polygon are not called semi-regular tessellations

5 0
3 years ago
If you help me i will love you
blagie [28]
You must first normalize this in order to use a Z-score table. To convert what you have into a Z score you must use this formula: (x- mean) /standard deviation. In your case (334-310)/12=2. So now you want the probability that a score is greater than 334, which in turn means you want P(Z>2)=1-P(Z<2)=1-.9772=0.0228=2.28%.
5 0
3 years ago
What is the quotient
mario62 [17]

Answer:

The quotient is 3x - 11 + 60/(x + 5) ⇒ 2nd answer

Step-by-step explanation:

* We will use the long division to solve the problem

- The dividend is 3x² + 4x + 5

- The divisor is x + 5

- The quotient is the answer of the division

- If the divisor not a factor of a dividend, the quotient has

  a remainder

* Lets solve the problem

- At first divide the first term in the dividend by the first term in

 the divisor

∵ 3x² ÷ x = 3x

- Multiply the divisor by 3x

∴ 3x (x + 5) = 3x² + 15x

-Subtract this expression from the dividend

∴ 3x² + 4x + 5 - (3x² + 15x) = 3x² + 4x + 5 - 3x² - 15x = -11x + 5

- Divide the first term -11x in the new dividend by the first

 term x in the divisor

∴ -11x ÷ x = -11

- Multiply the divisor by -11

∴ -11(x + 5) = -11x - 55

-Subtract this expression from the new dividend

∴ -11x + 5 - (-11x - 55) = -11x + 5 + 11x + 55 = 60

∴ The quotient is 3x - 11 with remainder = 60

* The quotient is 3x - 11 + 60/(x + 5)

5 0
3 years ago
Select all tables thaf represent A proportional relationship between x and y.
Whitepunk [10]
A is the answer babygirl.
4 0
3 years ago
What are two numbers that has the product of 40 but has the sum of 13
Maksim231197 [3]

Answer:

8 and 5

Step-by-step explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • A,B,C,D what’s the correct answer
    7·2 answers
  • The beginning balance on a monthly bank statement for ignatius checking account was $124.82, and the ending balance was $659.27.
    7·1 answer
  • Which describes the standard deviation?
    13·2 answers
  • Please help! Will give brainiest! (more than 5 points)
    12·1 answer
  • Click an item in the list or group of pictures at the bottom of the problem and, holding the button down, drag it into the corre
    9·1 answer
  • Given the system of equations: 2x – y = –2 x = 14 2y
    11·1 answer
  • What are the zeros of f (x) = 2x^3– 8x?<br> O {4, -2}<br> O {0, 2}<br> O{-2, 0, 2}<br> O {2, -2}
    9·1 answer
  • I need help or else I fail this homework assignment<br><br><br><br>PLZ
    9·1 answer
  • Mr. Wright has 25 students in his class. More than half of the students
    7·1 answer
  • Increase 170 by 25%<br> Help pls
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!