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
The body temperature of adults are normally distributed with a mean of 98.6 f and a standard deviation of 0.71f what temperature
irina [24]
It’sa tbh dbheir f the t. t t t d d b. gbfndndn d dndnd. d dnd. f d
7 0
2 years ago
Line segmentAB has vertices A(−3, 4) and B(1, −2) . A dilation, centered at the origin, is applied to AB⎯⎯⎯⎯⎯ . The image has ve
zysi [14]

Answer:

The scale factor is

\frac{1}{3}

Step-by-step explanation:

Line segmentAB has vertices A(−3, 4) and B(1, −2) .

A dilation, centered at the origin, is applied to AB. The image has vertices

A'(-1,4/3) and B′(1/3, −2/3) .

We know the rule for dilation by scale factor of k, is

(x,y)\to(kx,ky)

This means that;

A(-3,4)\to A'(-3k,4k)

But we know, A' has coordinates (-1,4/3)

This means that

- 3k =  - 1

k =  \frac{1}{3}

We could also compare:

4k=4/3

Which gives

k=⅓

5 0
3 years ago
Read 2 more answers
Which value is included in the solution set for the inequality graphed on the number line? –5 –2 0 3
Nady [450]

Answer:

its A

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
<img src="https://tex.z-dn.net/?f=6%20%5Ctimes%20x%20%3D%20%20-%2024" id="TexFormula1" title="6 \times x = - 24" alt="6 \times
Finger [1]
The missing number is 4
8 0
4 years ago
7. A baseball has a radius of 2 inches. What is the volume in cubic inches of
Sever21 [200]

Answer:

33.49

Step-by-step explanation:

Volume of a sphere formula= 4/3πr^3

Radius= 2

Plug the radius into the formula to get your answer.

8 0
3 years ago
Other questions:
  • HELP ME (: 15 pts! I’m stuck
    11·1 answer
  • Geometry. Please help! (will mark brainliest)
    9·2 answers
  • What's the answer to this question?
    7·1 answer
  • Numbers like 10,100,1000 and so on are called
    9·1 answer
  • Eli wants to combine 0.5 gallon of a 10% acid solution with some 35% acid solution to make a 15% acid solution. Which equation c
    8·2 answers
  • Answer please?? 50+40+10=
    6·2 answers
  • 1. Jake drew this rectangle and colored it in this pattern.​
    10·1 answer
  • How many points of intersection do the following lines have y=3x-1 and 2y-6x=-2
    10·1 answer
  • WILL GIVE BRAINLIEST IF ANSWER. PLEASE HELP ITS A 6TH GRADER QUESTION
    14·2 answers
  • WILL GIVE BRAINLIEST
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!