subject
Engineering, 29.02.2020 02:48 yasdallasj

Compute changeA 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 [numFives, numOnes] = ComputeChange(amountToChange)% amountToChange: Amount of change in dollars% Assign numFives with the number of five dollar bills distributednumFives = 0;% Assign numOnes with number of one dollar bills distributednumOnes = 0;end

ansver
Answers: 1

Another question on Engineering

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
question
Engineering, 04.07.2019 19:10
Agas contained within a piston-cylinder assembly e end nation about same energy states, 1 and 2, where pi 10 bar, v undergoes two processes, a and b, between the sam 0.1 m3, ui-400 kj and p2 1 bar, v2 1.0 m2, u2 200 kj: process a: process from 1 to 2 during which the pressure- volume relation is pv constant process b: constant-volume process from state 1 to a pressure of 2 bar, followed by a linear pressure-volume process to +20 0 state 2 kinetic and potential energy effects can be ignored. for each of the processes a and b, (a) sketch the process on p-v coordinates, (b) evaluate the work, in kj, and (c) evaluate process the heat transfer, in kj
Answers: 2
question
Engineering, 04.07.2019 19:20
Heat transfer by is the fastest mode of heat transfer that requires no intervening medium. a)-conduction b)-convection c)-radiation d)-conduction and convection
Answers: 1
question
Engineering, 06.07.2019 03:30
Acubic shaped box has a side length of 1.0 ft and a mass of 10 lbm is sliding on a frictionless horizontal surface towards a 30 upward incline. the horizontal velocity of the box is 20 ft/s. determine how far up the incline the box will travel (report center of mass distance along the inclined surface, not vertical distance)
Answers: 1
You know the right answer?
Compute changeA cashier distributes change using the maximum number of five dollar bills, followed b...
Questions
question
Engineering, 10.11.2020 23:30
question
Mathematics, 10.11.2020 23:30
question
SAT, 10.11.2020 23:30
question
Mathematics, 10.11.2020 23:30
question
Social Studies, 10.11.2020 23:30
question
Mathematics, 10.11.2020 23:30
question
French, 10.11.2020 23:30
Questions on the website: 13722361