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
-Dominant- [34]
2 years ago
5

Design a program that calculates the area and circumstance of rectangle?​

Engineering
1 answer:
Phantasy [73]2 years ago
4 0
Let “w” and “L” be the width and length of the rectangle. “p” and “a” are perimeter and area
For python,
w=int(input(“width”))
l=int(input(“length”))
a= w*l
p=2*w+2*l
print(str(a), str(p)
You might be interested in
What do you think of this schematic diagram?​
Sholpan [36]

Explanation:

A schematic diagram is a picture that represents the components of a process, device, or other object using abstract, often standardized symbols and lines. ... Schematic diagrams do not include details that are not necessary for comprehending the information that the diagram was intended to convey.

5 0
3 years ago
Write the implementation (.cpp file) of the Player class from the previous exercise. Again, the class contains:
hoa [83]

Answer:

//Define the header file

#ifndef PLAYER_H

#define PLAYER_H

//header file.

#include <string>

//Use the standard namespace.

using namespace std;

//Define the class Player.

class Player

{

//Declare the required data members.

string name;

int score;

public:

//Declare the required

//member functions.

void setName(string par_name);

void setScore(int par_score);

string getName();

int getScore();    

}

//End the definition

//of the header file.

#endif

Player.cpp:

//Include the "Player.h" header file,

#include "Player.h"

//Define the setName() function.

void Player::setName(string par_name)

{

name = par_name;

}

//Define the setScore() function.

void Player::setScore(int par_score)

{

score = par_score;

}

//Define the getName() function.

string Player::getName()

{

return name;

}

//Define the getScore() function.

int Player::getScore()

{

return score;

}

7 0
3 years ago
A residential heat pump has a coefficient of performance of 1.49 How much heating effect, in kJ/h, will result when 4 kW is supp
AfilCa [17]

Answer:

21.456 kJ/h

Explanation:

See the figure attached. In this case  

W_{cycle} = 4 kW

Q_{out} = \text{heating effect}

Coefficient of performance in heat pump is defined by

COP = \frac{Q_{out}}{W_{cycle}}

Q_{out} =COP*W_{cycle}

Q_{out} =1.49*4 \, W

Q_{out} = 5.96 \, W

Now it is necessary to change units, remember that Watt (W) is defined as J/s

Q_{out} = 5.96 \frac{J}{s} \frac{3600s}{1 h} \frac{1 kJ}{1000 J}

Q_{out} = 21.456 \frac{kJ}{h}

3 0
3 years ago
You plan to install an active, liquid-based solar heating system for hot water. There are four candidate collector systems. Your
olchik [2.2K]

Solution:

The given formula,

x=F_{R} U_{L} \times \frac{P l}{F R_{1}} \times\left(T_{r e f}-\bar{T}_{a}\right) \Delta t \times \frac{A_{c}}{L}

y=F_{R}(\tau \alpha)_{n} x \frac{F_{R}^{\prime}}{F_{R}} \times \frac{(\bar{\tau} d)}{(T d)_{n}} \times \bar{H}_{T} N \times \frac{A C}{L}

\frac{x}{y}=\frac{ u_{L} \times\left(T_{x t}-\bar{T}_{a}\right) \times \Delta t}{\left(\tau_{x}\right)_{h} \times\left(\frac{\bar{\tau}_{d}}{\left.| \tau_{d}\right)_{n}}\right) \times \bar{H}+N}

From the table,

1) \(\quad x=2 \cdot 87, \quad y=0.96\)\\\(\frac{x}{y}=\frac{2187}{0.96}\)22895\\\\2) \(x=3 \cdot 466 \cdot y=6 \cdot 998\)\\\(\frac{x}{y}=\frac{3 \cdot 466}{0.898}\)\(=3 \cdot 4729\)

3\(x=3 \cdot 229, y=1 \cdot 08\)\\\(\frac{x}{x}=\frac{3 \cdot 229}{1 \cdot 08}\)\\=2.9898\)\\\\4) \(x=6.525, y=1.094\)\\\(\frac{x}{y}=\frac{5.625}{1.094}\)\\=5.0502

8 0
3 years ago
How is me depressed or am me not? (but with a yoda voice)
Murrr4er [49]

Answer:

but the way is the way but the WAY is not the way

Explanation:

(yoda voice)

5 0
3 years ago
Read 2 more answers
Other questions:
  • The Fibonacci sequence 1, 1, 2, 3, 5, 8, 13, 21…… starts with two 1s, and each term afterward is the sum of its two predecessors
    8·2 answers
  • A satellite orbits the Earth every 2 hours at an average distance from the Earth's centre of 8000km. (i) What is the average ang
    7·1 answer
  • Data becomes information when it is__________ in some way and made___________
    5·1 answer
  • What are the atomic binding force and energy? how do they relate to materials strength and thermal stability.
    5·1 answer
  • Which of these are factors of 121?
    13·2 answers
  • True or False: The differential lock in an AWD-equipped vehicle can be used at any time.
    10·2 answers
  • New ventures that are based on strategic value, such as valuable technology, are attractive while those with low or no strategic
    12·2 answers
  • What's the relationship between energy and time<br>​
    11·1 answer
  • What is the benefit of theories? they are easily disproven they are written by famous people they were applying every circumstan
    9·1 answer
  • The __________________ refers to the main screen of the computer.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!