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
cluponka [151]
1 year ago
10

Exercise 6.4.8: Sum Two Number

Engineering
1 answer:
kaheart [24]1 year ago
3 0

Below is the program with function that takes two arguments and returns their sum.

Coding part:

def add_num(a1,b1): /*function for addition*/

  sum=a1+b1

  return sum /*return value*/

num1z1=33  /*variable declaration*/

num2z2=78

print("The sum is",add_num(num1z1,num2z2)) /*call the function*/

What is Function?

A function is a piece of code that performs a specific task. It is callable and reusable multiple times. You can pass data to a function, and it can return data to you. Many programming languages include built-in functions that can be found in their libraries, but you can also write your own.

To learn more about Function, visit: brainly.com/question/17216645

#SPJ1

You might be interested in
Pumped-storage hydroelectricity is a type of hydroelectric energy storage used by electric power systems for load balancing. The
NikAS [45]

Answer:

A) energy loss E = pgQtH

Where p = density in kg/m3

g = gravity acceleration in m/s2

Q = flow rate in m3/s

t = time taken for flow in sec

H = height of flow in m

B) power required to run pump;

P = pgQH

Explanation:

Detailed explanation and calculation is shown in the image below

5 0
3 years ago
1. A team of students have designed a battery-powered cooler, which promises to keep beverages at a high-drinkability temperatur
Anit [1.1K]

Answer:

Minimum electrical power required = 3.784 Watts

Minimum battery size needed = 3.03 Amp-hr

Explanation:

Temperature of the beverages, T_L = 36^0 F = 275.372 K

Outside temperature, T_H = 100^0F = 310.928 K

rate of insulation, Q = 100 Btu/h

To get the minimum electrical power required, use the relation below:

\frac{T_L}{T_H - T_L} = \frac{Q}{W} \\W = \frac{Q(T_H - T_L)}{T_L}\\W = \frac{100(310.928 - 275.372)}{275.372}\\W = 12.91 Btu/h\\1 Btu/h = 0.293071 W\\W = 12.91 * 0.293071\\W_{min} = 3.784 Watt

V = 5 V

Power = IV

W_{min} = I_{min} V\\3.784 = 5I_{min}\\I_{min} = \frac{3.784}{5} \\I_{min} = 0.7568 A

If the cooler is supposed to work for 4 hours, t = 4 hours

I_{min} = 0.7568 * 4\\I_{min} = 3.03 Amp-hr

Minimum battery size needed = 3.03 Amp-hr

6 0
3 years ago
An amplifier which needs a high input resistance and a high output resistance is : Select one: a. A voltage amplifier b. None of
True [87]

Answer:

None of these

Explanation:

There are different types of amplifiers, and each has different characteristics.

  • Voltage amplifier needs high input and low output  resistance.
  • Current amplifier needs Low Input and High Output  resistance.
  • Trans-conductance amplifier Low Input and High Output resistance.
  • Trans-Resistance amplifier requires High Input and Low output  resistance.

Therefore, the correct answer is "None of these "

3 0
3 years ago
Can you prove that the two bleu areas are the same without numbers please?
Svet_ta [14]

Answer:

\small{\boxed{\tt{\colorbox{green}{✓Verified\:answer}}}}\:

Just draw a line from point D join to point E

The triangle formed DME will be congruent to AMC

6 0
3 years ago
What are the functions of each computer program
Ludmilka [50]
A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing. ... Different programming languages name them differently, for example, functions, methods, sub-routines, procedures, etc.
4 0
3 years ago
Other questions:
  • Which term defines the amount of mechanical work an engine can do per unit of heat energy it uses?
    5·1 answer
  • What is the composition, in atom percent, of an alloy that consists of 4.5 wt% Pb and 95.5 wt% Sn?
    13·1 answer
  • A Si sample contains 1016 cm-3 In acceptor atoms and a certain number of shallow donors, the In acceptor level is 0.16 eV above
    5·2 answers
  • The news media often report an earthquake's magnitude on the Richter scale. Which of the following items are characteristics of
    14·1 answer
  • Given a program with execution times broken down shown below. Assume that techniques can only be applied to accelerate the integ
    12·1 answer
  • How does refrigeration preserve food and dead bodies​
    12·2 answers
  • Two metallic terminals protrude from a device. The terminal on the left is the positive reference for a voltage called vx (the o
    9·2 answers
  • Engineers need to be open-ended when dealing with their designs. Why?
    11·1 answer
  • Determine the wattmeter reading when it is connected to resistor load.​
    11·1 answer
  • A steel rod, which is free to move, has a length of 200 mm and a diameter of 20 mm at a temperature of 15oC. If the rod is heate
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!