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
Galina-37 [17]
3 years ago
8

If you need to write a function that will compute the cost of some candy, where each piece costs 25 cents, which would be an app

ropriate function declaration?
(A) int calculateCost(char name);
(B) char calculateCost(int count);
(C) int calculateCost int count;
(D) int calculateCost(int count);
Engineering
1 answer:
masya89 [10]3 years ago
6 0
The best answer would be

D. Int calculateCost(int count);
You might be interested in
Consider the circuit below where R1 = R4 = 5 Ohms, R2 = R3 = 10 Ohms, Vs1 = 9V, and Vs2 = 6V. Use superposition to solve for the
VladimirAG [237]

Answer:

The value of v2 in each case is:

A) V2=3v for only Vs1

B) V2=2v for only Vs2

C) V2=5v for both Vs1 and Vs2

Explanation:

In the attached graphic we draw the currents in the circuit. If we consider only one of the batteries, we can consider the other shorted.

Also, what the problem asks is the value V2 in each case, where:

V_2=I_2R_2=V_{ab}

If we use superposition, we passivate a battery and consider the circuit affected only by the other battery.

In the first case we can use an equivalent resistance between R2 and R3:

V_{ab}'=I_1'R_{2||3}=I_1'\cdot(\frac{1}{R_2}+\frac{1}{R_3})^{-1}

And

V_{S1}-I_1'R_1-I_1'R_4-I_1'R_{2||3}=0 \rightarrow I_1'=0.6A

V_{ab}'=I_1'R_{2||3}=3V=V_{2}'

In the second case we can use an equivalent resistance between R2 and (R1+R4):

V_{ab}''=I_3'R_{2||1-4}=I_3'\cdot(\frac{1}{R_2}+\frac{1}{R_1+R_4})^{-1}

And

V_{S2}-I_3'R_3-I_3'R_{2||1-4}=0 \rightarrow I_3'=0.4A

V_{ab}''=I_3'R_{2||1-4}=2V

If we consider both batteries:

V_2=I_2R_2=V_{ab}=V_{ab}'+V_{ab}''=5V

7 0
3 years ago
The specific volume of mercury is .00007 m^3/Kg. What is its density in lbm/ft^3?
aalyn [17]

Answer:

891.027 lbm/ft³

Explanation:

See it in the pic

5 0
3 years ago
Carbon resistors often come as a brown cylinder with colored bands. These colored bands can be read to determine the manufacture
alexandr1967 [171]

Answer:

a) 4.7 kΩ, +/- 5%

b) 2.0 MΩ, +/- 20%

Explanation:

a) If the resistor has the following combination of color bands:

1) Yellow = 1st digit = 4

2) Violet = 2nd digit = 7

3) Red = multiplier = 10e2

4) Gold = tolerance = +/- 5%

this means that the resistor has 4700 Ω (or 4.7 kΩ), with 5% tolerance.

b) Repeating the process for the following combination of color bands:

1)  Red = 1st digit = 2

2) Black = 2nd digit = 0

3) Green = multiplier = 10e5

4) Nothing = tolerance = +/- 20%

This combination represents to a resistor of 2*10⁶ Ω (or 2.0 MΩ), with +/- 20% tolerance.

7 0
3 years ago
If something is 50fficient, how many joules of wasted energy will there be if 750j of energy is put in?’
Sedbober [7]

Efficiency is the minimum use of energy to accomplish the task. The wasted energy will be 375 J when 750 J of energy is given.

<h3>What is wasted energy?</h3>

Wasted energy is energy that is not useful when the transformation in the system occurs.

Total energy = 750 J

The efficiency of the system = 50 %

Output work (OW) is calculated as:

Efficiency = output work ÷ input work × 100%

750 × 50 = 100 OW

OW = 375 J

Wasted energy = Total energy - output work

= 750 - 375

= 375 J

Therefore, the machine is 50 % inefficient and has wasted energy of 375 J.

Learn more about wasted energy here:

brainly.com/question/16177264

#SPJ4

8 0
2 years ago
Where can you find free air pods that look real
Tema [17]
You can find air pods that look real on letgo. or you can go to wish.com but if you want a good pair jus get the real ones
7 0
3 years ago
Other questions:
  • What's mutual inductance​
    8·1 answer
  • The rate of energy transfer by work is called power. a)-True b)-False
    15·1 answer
  • *6–24. The beam is used to support a dead load of 400 lb&gt;ft, a live load of 2 k&gt;ft, and a concentrated live load of 8 k. D
    13·1 answer
  • Find the sum and product of each of these pairs of numbers. Express your answers as a base 3 expansion. Hint: We can just add an
    5·1 answer
  • A decorative fountain was built so that water will rise to a hieght of 8 feet above the exit of the pipe. the pipe is 3/4 diamet
    5·1 answer
  • : A pneumatic "cannon" is a device that launches a low mass projectile from a cylindrical tube using pressurized air stored upst
    6·1 answer
  • A random sample of 5 hinges is selected from a steady stream of product from a punch press, and the a. b. proportion nonconformi
    12·1 answer
  • What organization which fire codes
    13·2 answers
  • What are the 2 reasons an alignment should be done?
    13·1 answer
  • Sometimes we need to create heat, such as in circuit breakers and rear window
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!