subject
Engineering, 12.02.2020 18:57 jazmaine1217

Compute change A cashier distributes change using the maximum number of five dollar bills, followed by one dollar bills. Given amountToChange, assign numFives and numOnes with the number of five dollar and one dollar bills distributed. Hint: Use / and mod, and a rounding function. numFives and numOnes should be integer values. Ex: If amountToChange is 19, then numFives is 3 and numOnes is 4. Function Save Reset MATLAB DocumentationOpens in new tab function [numFives, numOnes] = ComputeChange(amountToChange) % amountToChange: Amount of change in dollars % Assign numFives with the number of five dollar bills distributed numFives = 0; % Assign numOnes with number of one dollar bills distributed numOnes = 0; end 1 2 3 4 5 6 7 8 9 10 Code to call your function

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
question
Engineering, 04.07.2019 18:10
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
question
Engineering, 04.07.2019 18:10
Ajournal bearing has a journal diameter of 3.250 in with a unilateral tolerance of 20.003 in. the bushing bore has a diameter of 3.256 in and a unilateral tolerance of 0.004 in. the bushing is 2.8 in long and supports a 700-lbf load. the journal speed is 900 rev/min. find the minimum oil film thickness and the maximum film pressure for both sae 20 and sae 20w-30 lubricants, for the tightest assembly if the operating film temperature is 160°f. a computer code is appropriate for solving this problem.
Answers: 3
question
Engineering, 04.07.2019 18:10
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
You know the right answer?
Compute change A cashier distributes change using the maximum number of five dollar bills, followed...
Questions
question
Biology, 22.06.2019 19:20
Questions on the website: 13722361