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
Is it 7^12 not so sure ._.
Alekssandra [29.7K]
You are correct, it is.
6 0
3 years ago
Choose the correct sum of the polynomials (6x3 − 8x − 5) + (3x3 + 6x + 2). 9x3 − 2x − 3 3x3 + 2x + 3 3x3 − 2x − 3 9x3 + 14x + 3
harina [27]
Add the   x^3:- 6 x3 + 3x3 = 9x3
              x's:- -8x + 6x = - 2x
               -5 + 2 = -3

the first choice is the correct one
7 0
3 years ago
What are 3 types of check endorsements used to deposit checks into a bank account?
loris [4]
Blank endorsement, restrictive endorsement, and special endorsement 
7 0
4 years ago
Soft-drink cans are filled by an automated filling machine. The mean fill volume is 12.1 fluid ounces, and the standard deviatio
erastovalidia [21]

Answer:

Probability is 0.97725

Step-by-step explanation:

Given: Mean volume =12.1 ounces  ,standard deviation=0.05

  and 10 volumes are selected i.e no of observation or samples.

To find : calculate probability for fluid  less than the 12 ounces.i.e P(X<12) with normal distribution probability .

Solution:

Given that data is independent normal random variables , which depends upon mean ,variance and the Standard Z-score .

Hence we have ,

Mean=12.1

Variance =square of (standard deviation).

Normal distribution is given by ,

N(mean,variance)

As there are 10 cans with mean 12.1 and variance=(0.05)^2=0.025.

Normal distribution probability is given by sum of independent normal random variables.

Using the notation as P(X-Y>0)

I.e. P(X>Y)

finding the probability of X greater than Y i.e.(12.1>12) ounces .

with same standard deviation we get,

X-Y    ⇒N(12.1-12,0.0025)⇒N(0.1,0.0025).

=P(X-Y)

=P(X-Y>0)

=P(Z>\frac{(0-0.1)}{\sqrt{0.0025} })

=P(Z>-2)

=P(Z<2).

=0.97725.

Using the Z- table refer the normal probability Z-table.

7 0
3 years ago
Simplify to create an equivalent expression 8(10 - 6q) + 3(7q - 2 )
svetoff [14.1K]

Answer:  

74-27q

Step-by-step explanation:

8(10 - 6q) + 3(7q - 2)

use the distributive property to get rid of the parenthesis

(8*10) - (8*6q) + (3*7q) - (3*2)

80 - 48q + 21q - 6

combine like terms

(80 - 6) - 48q + 21q

74 - 27q  :)

8 0
3 years ago
Other questions:
  • Lines cand dare perpendicular. If the slope of line c is -4, what is the slope of<br> line d?
    12·1 answer
  • Find the markup and the cost of the following item. Round answers to the nearest cent.
    9·1 answer
  • What's 36 divided by 36
    5·2 answers
  • Evaluate each expression for the given value of the variable. 4(d + 7); d = 2
    12·1 answer
  • The dinosaur's tail bones are at the solution point to the system of equations below.
    6·1 answer
  • What is the surface area of this rectangular rectangular prism (pic attached)​
    9·1 answer
  • -3n + 4 + 8n = 79 =<br><br> 4n + 18 = 38 =
    12·2 answers
  • A ______ function is a specific type of function that represents the relationship between two variables, usually x and y. The gr
    10·1 answer
  • Use the rational zeroes theorem to write the
    12·1 answer
  • The function h(x)=x² +5 maps the domain given by the set {-2, -1, 0, 1, 2}. Which of the following sets
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!