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
An Otto cycle engine is analyzed using the air standard method. Given the conditions at state 1, compression ratio (r), and pres
My name is Ann [436]

Answer:

A)  222.58 kJ / kg

B)  0.8897 M^3/ kg

c)  0.7737 m^3/kg

D)  746.542 k

E)  536.017 kj/kg

efficiency = 58% ( approximately )

Explanation:

Given Data :

Gas constant (R) =  0.287 kJ/ kg.K

T1 = 310 k

P1 ( Kpa ) = 100

r = 11.5 ( compression ratio )

rp = 1.95 ( pressure ratio )

A ) specific internal energy at state 1

 = Cv*T1 =  0.718 * 310 = 222.58 kJ / kg

B) Relative specific volume at state 1

= P1*V1 = R*T1 ( ideal gas equation )

V1 = R*T1 / P1 = (0.287* 10^3*310 ) / 100 * 10^3

V1 = 88.97 / 100 = 0.8897 M^3/ kg

C ) relative specific volume at state 2

Applying  r ( compression ratio) = V1 / V2

11.5 = 0.8897 / V2

V2 = 0.8897 / 11.5 = 0.7737 m^3/kg

D) The temperature (k) at state 2

since the process is an Isentropic process we will apply the p-v-t relation

\frac{T1}{T2} = (\frac{V1}{V2}^{n-1}  ) = (\frac{P2}{P1} )^{\frac{n-1}{n} }

hence T2 = 9^{1.4-1} * 310 = 2.4082 * 310 = 746.542 k

e) specific internal energy at state 2

= Cv*T2 = 0.718  * 746.542 = 536.017 kj/kg

efficiency = output /input = 390.3511 / 667.5448 ≈ 58%

attached is a free hand diagram of an Otto cycle is attached below

3 0
4 years ago
What is the function rule for the line? f(x)=−32x−2f(x)=−23x−2f(x)=32x−2f(x)=−32x+2A coordinate grid with x and y axis ranging f
murzikaleks [220]

Answer:

f(x)=23x−2

Explanation:

still trying to figure that out

7 0
3 years ago
This search compares the target value with the middle element in the collection, then ignores the half of the collection in whic
love history [14]

Answer:

d) Binary

Explanation:

Binary search is a search algorithm that finds the position of a value in an ordered array. It compares the value with the element in the middle of the array, if they are not equal, half in which the value cannot be eliminated and the search continues in the remaining half until the value is found.

7 0
3 years ago
A 50-lbm iron casting, initially at 700o F, is quenched in a tank filled with 2121 lbm of oil, initially at 80o F. The iron cast
insens350 [35]

Answer:

a) The final equilibrium temperature is 83.23°F

b) The entropy production within the system is 1.9 Btu/°R

Explanation:

See attached workings

8 0
3 years ago
What is the force in kN of work done is 1.2 ms moves through 120m​
Semmy [17]

Answer:

\frac{1.2}{120}

0.01

5 0
2 years ago
Other questions:
  • A cylindrical tank is required to contain a gage pressure 520 kPa . The tank is to be made of A516 grade 60 steel with a maximum
    6·1 answer
  • Using any of the bilinear transform, matched pole-zero, or impulse invariance techniques in converting a continuous-time system
    14·2 answers
  • You are to assess the biomechanics of a male’s arm using his bicep to hold a 20 kg object in his hand. The upper arm is perpendi
    5·1 answer
  • OSHA does not approve individual states to have their own safety and health program.
    15·2 answers
  • Shear plane angle and shear strain: In an orthogonal cutting operation, the tool has a rake angle = 16°. The chip thickness befo
    7·1 answer
  • A. Derive linear density expressions for BCC [110] and [111] directions in terms of the atomic radius R.
    7·1 answer
  • (1) Estimate the specific volume in cm3 /g for carbon dioxide at 310 K and (a) 8 bar (b) 75 bar by the virial equation and compa
    10·1 answer
  • What can you add to a seatbelt ??<br> HELP ASAP
    15·1 answer
  • Which step in the engineering design process likely broke down in the following scenario?
    14·1 answer
  • T
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!