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
Simora [160]
4 years ago
5

The area of a rectangle is the rectangle's length times its width.

Computers and Technology
1 answer:
aliya0001 [1]4 years ago
4 0

Answer:

Following are program to this question:

#include <iostream> //defining header file  

using namespace std;  

int main() //defining main method

{

   double len1,len2,wid1,wid2,area1,area2; //defining double variable

   cout << "Enter first rectangle length: "; //print message

   cin >> len1;//input first rectangle length value

   cout << "Enter first rectangle width: ";//print message

   cin >> wid1; //input first rectangle width value

   area1 = len1*wid1; //calculate area and holds its value  

   cout << "Enter second rectangle length: ";//print message

   cin >> len2; //input second rectangle length value

   cout << "Enter second rectangle width: ";//print message

   cin >> wid2; //input second rectangle width value

   area2 = len2*wid2; //calculate area and holds its value  

   if(area1 > area2) //check condition area1 value is greater then area2

   {

    cout << "First rectangle area value is greater";//print message

   }

   else if(area2 > area1)//check condition area2 value is greater then area1

   {

       cout << "Second rectangle area value is greater";//print message

   }

   else //else block

   {

       cout << "both rectangle area is same";//print message

   }

   return 0;

}

Output:

Enter first rectangle length: 3

Enter first rectangle width: 5

Enter second rectangle length: 5

Enter second rectangle width: 3

both rectangle area is same

Explanation:

The description of the above program can be described as follows:

  • In the given code, the double variable is declared, which is "len1, len2, wid1, wid2, area1, and area2". In the next line, a message is a print, that accepts "len1 and wid1" value in the next line, the area variable is used that calculates area1.
  • In the next step, the "len2 and wid2"  variable is used, that accepts values and calculates its area, and in the next line, the conditional statement is used that checks its value.
  • In the if the block it uses both area1 and area2 value, that checks area1 is greater then area2, it is will print first rectangle area is greater.  
  • Otherwise, it will go to else if block, that checks area2 is greater then area1, it is will print second rectangle area is greater.  In the else section, it will print both equal areas.

You might be interested in
Look at the slide.
svetlana [45]

Answer:

c

Explanation:

5 0
3 years ago
Read 2 more answers
Which agency motors the sale and registration of vehicles and vessels within the state
gogolik [260]

An agency which monitors the sale and registration of vehicles and vessels within the state is the department of highway safety and motor vehicles.

<h3>What is the department of highway safety and motor vehicles?</h3>

The department of highway safety and motor vehicles can be defined as a cabinet agency that is established and saddled with the responsibility of monitoring the sales and registration of automobile vehicles and vessels within the state of Florida in the United States of America.

In 1969, the defunct department of public safety and the department of motor vehicles were merged together under Governor Claude Kirk, as a single agency, which became known as the department of highway safety and motor vehicles

Read more on department of highway safety here: brainly.com/question/4805408

#SPJ1

Complete Question:

Which agency monitors the sale and registration of vehicles and vessels within the state?

6 0
2 years ago
Which IEEE standards define Wi-Fi technology?
Ratling [72]

Answer:

802.11 standards

4 0
4 years ago
Which is not a category of business or industry covered under OSHA standards? A. Construction B. General Industry C. Maritime D.
ale4655 [162]
D IS THE CORRECT ANSWER
3 0
3 years ago
Dan wants to use some of his friend's printed photos of sea creatures for a school multimedia project. Which input device is bes
lora16 [44]

Answer:

OC graphics tablet

Explanation: A oc graphics tablet are very expensive and are mainly used in high tech computers for better graphics.

5 0
3 years ago
Other questions:
  • For any element in keysList with a value greater than 60, print the corresponding value in itemsList, followed by a semicolon (n
    14·2 answers
  • Candace opened an email from a person she didn't know and clicked on a pop-up in the email that installed a virus on her compute
    8·2 answers
  • Your crt monitor flickers. what should you do
    6·1 answer
  • The Leader Motive Profile (LMP) includes a: a. high need for power. b. low need for achievement. c. moderate need for power. d.
    6·1 answer
  • in your own experience,imagine if someone gained access to any of your social media accounts they could changed your account nam
    11·1 answer
  • A(n) ____ is a list of authorization rights attached to an object - in other words, who can access that device or application an
    13·1 answer
  • A question to determine your ability to use the reference materials effectively. Your boss has determined that you will be using
    9·1 answer
  • For the second one just answer what game engines are please, you don't have to explain.
    8·1 answer
  • Part of the operating system core is responsible for controlling security, managing the file system, and providing a platform fo
    6·1 answer
  • Think about how you view your emails—either the email service you use yourself or an email service you would choose to use. Desc
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!