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
Solve: |v + 8| − 5 = 2
AveGali [126]

Answer:

v¹= -15, v²= -1

Step-by-step explanation:

there's 2 solutions to this

3 0
3 years ago
Read 2 more answers
Find the geometric sum: 40 + 20 + 10 + … + 0.078125
sveticcg [70]
S=40+20+10+\cdots+0.078125
S=40\left(1+\dfrac12+\dfrac14+\cdots+\dfrac1{512}\right)
S=40\left(1+2^{-1}+2^{-2}+\cdots+2^{-9}\right)

2^{-1}S=40\left(2^{-1}+2^{-2}+2^{-3}+\cdots+2^{-10}\right)

\implies S-2^{-1}S=40\left(1-2^{-10}\right)
\implies\dfrac12S=40\left(1-\dfrac1{1024}\right)
\implies S=80\left(1-\dfrac1{1024}\right)=\dfrac{5115}{64}=79.921875
4 0
3 years ago
A function g is defined by g:x→3−2sinx,for 0◦ ≤x≤A◦,where A is a constant.
Crank
<span>hmmm: g maps x onto 3-2sin(x) for all x from 0 to A degrees g(x) = 3-2sin(x) the inverse would have to be arcsin (3-x)/2, which only has a radian output between -pi and pi i believe. but this is just from memory</span>
6 0
4 years ago
Can someone please help
irina1246 [14]

Answer:

134.04 cm³ (rounded to tenths)

Step-by-step explanation:

The radius(r) is 4 cm

The height(h) is 8 cm

Using the equation and plugging in the values, you get

\frac{\pi *4^{2}*8 }{3} = 134.0412866

3 0
3 years ago
What is the median of 7, 12, 13, 40, 88, 95, 95 HURRY!!
bija089 [108]
To find the median you have to put all the numbers in order from smallest to largest and find the one that's in the middle.
All of the numbers listed are already in order, and the one that lies in the middle is 40. So the answer is 40.
4 0
3 years ago
Other questions:
  • 3. A scuba diver was exploring a reef 32.12 m below sea level. The diver ascended to the surface at a rate of 8.8 m/min.
    7·2 answers
  • How do you find the derivative of f(x)=cos(x)f(x)=cos(x) ?
    8·1 answer
  • What is the first step when solving this equation? 5(4x – 1.5x) + 12 = 4x – 2
    13·2 answers
  • What is the angle of angle x
    5·1 answer
  • Simplify<br><br> -4 (y +1) -2
    14·1 answer
  • Which is an equivalent scale factor of Mr. Barrow's height to the height of the power pole?
    13·1 answer
  • The perimeter of a rectangular garden is 62 feet( remember, perimeter= 2l + 2w where l is the length and w is the width). The le
    9·1 answer
  • Between which two consecutive years did Kleya's income increase the most?
    6·1 answer
  • If the mean, median, and mode are all
    5·1 answer
  • On December 1, Jasmin Ernst organized Ernst Consulting. On December 3, the owner contributed $85,360 in assets in exchange for i
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!