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, 03.07.2019 14:10
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
question
Engineering, 04.07.2019 18:10
Determine whether or not it is possible to compress air adiabatically from k to 140 kpa and 400 k. what is the entropy change during this process?
Answers: 3
question
Engineering, 04.07.2019 18:10
Calculate the bore of a cylinder that has a stroke of 18 inches and an extension time of 6 seconds at a flow rate of 4 gal/min.
Answers: 3
question
Engineering, 04.07.2019 18:20
Air flows over a heated plate àt a velocity of 50m/s. the local skin factor coefficient at a point on a plate is 0.004. estimate the local heat transfer coefficient at this point.the following property data for air are given: density = 0.88kg/m3 , viscosity 2.286 x 10 ^-5 kgm/s , k = 0.035w/mk ,cp = 1.001kj/kgk. use colburn reynolds analogy.
Answers: 1
You know the right answer?
Compute change A cashier distributes change using the maximum number of five dollar bills, followed...
Questions
question
Mathematics, 02.09.2019 12:00
question
Computers and Technology, 02.09.2019 12:00