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]
2 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]2 years ago
6 0
The best answer would be

D. Int calculateCost(int count);
You might be interested in
1. A pipeline constructed of carbon steel failed after 3 years of operation. On examination it was found that the wall thickness
jek_recluse [69]

Answer:

check the explanation

Explanation:

1.

Thickness Loss = t =\frac{t_{o}-t_{i}}{2} = \frac{114.3-102.3}{2} = 2mm

t_{f} = \frac{1}{2}*6 = 3mm

Hence Rate of Corrosion = 6*\frac{1-0.5}{3} = 1mm/year = 0.03 inches per year

2.

As the expected future life is 7 years,

40 carbon steel pipe has to be replaced every 3 years as given in the question,

Cost per unit length is the sum of material cost and installation cost.

Cost of 40 carbon steel = (5 dollars + 16.5 dollars) * 3 = 64.5 dollars

For 80 carbon steel pipe, first calculate the thickness loss,

\frac{114.3-97.2}{2} = 8.55mm

The critical thickness is given to be 3mm, Hence change in thickness is 8.55-3 = 5.5mm

This 80 carbon steel pipe has to be replaced one more time

Hence, Cost per unit length is the sum of material cost and installation cost.

Cost of 80 carbon steel = (8.3 dollars + 16.5 dollars) * 2 = 49.6 dollars

The best is of stainless steel which does not undergo corrosion at all and thus it needs to be replaced only once throughout the plant operation. Its cost = 24.8 dollars + 16.5 dollars = 41.3 dollars

Hence, stainless steel is the recommended pipe to be used.

3 0
3 years ago
Coal fire burning at 1100 k delivers heat energy to a reservoir at 500 k. Find maximum efficiency.
Marizza181 [45]

Answer:

<em>55%</em>

Explanation:

hot reservoir = 1100 K

cold reservoir = 500 K

<em>This is a Carnot system</em>

For a Carnot system, maximum efficicency of the system is given as

Eff = 1 - \frac{Tc}{Th}

where Tc = temperature of cold reservoir = 500K

Th = temperature of hot reservoir = 1100 K

Eff = 1 - \frac{500}{1100}

Eff = 1 - 0.45 = 0.55 or<em> 55%</em>

7 0
2 years ago
Cast iron has about how much carbon content?
Aliun [14]

Answer:

c

Explanation:

7 0
2 years ago
There is a dispute between the multiple parties storing financial transaction data on a blockchain over the validity of a transa
spayn [35]

Answer:

dgjkkkkkkkfdcvv

Explanation:

hjklllgfddsssssyjjjkkkk

p.s sorry

5 0
2 years ago
Pedro holds a heavy science book over his head for 10 minutes. Petro is doing work during that time. True or False
algol [13]

Answer:

True because he is working his arms to lift and hold the weight

Explanation:

4 0
3 years ago
Other questions:
  • You are comparing distillation column designs at 1 atm and 3 atm total pressure for a particular separation. You have the same f
    5·1 answer
  • What is an ip<br> Number
    12·1 answer
  • Some engineers have developed a device that provides lighting to rural areas with no access to grid electricity. The device is i
    13·1 answer
  • a vehicle is in her repair with a complaint at for heating output during testing and diagnosing air is found to be trapped in th
    15·1 answer
  • A common rule of thumb for controller discretization is to have "6 samples per rise time" in order to achieve a reasonable appro
    9·1 answer
  • 1. How does manufacturing help strengthen<br> the economy?
    15·1 answer
  • Convection ovens operate on the principle of inducing forced convection inside the oven chamber with a fan. A small cake is to b
    6·1 answer
  • 5. The pin support at A allows _______. Select the one that applies. (a) displacement in the x direction (b) rotation about its
    15·1 answer
  • WARNING:<br><br> when people put links in the answer it is a virus DO NOT DOWNLOAD IT
    15·2 answers
  • A) If a given directional antenna can receive 15 times the power of an isotropic antenna, what is
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!