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, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 18:10
Which from the following instrument is commonly used to detect the high pitch butzing sound in bearings? [clo4] a)-digital ultrasonic meter b)-infrared camera c)-spectroscopic d)-vibrometer
Answers: 2
question
Engineering, 04.07.2019 19:10
10 kg of co2 is initially contained at 400 kpa and 300 k. the gas constant for carbon dioxide is 189 j/lkg k) and has a specific heat ratio, k, of 1.289. isentropic expansion then occurs until the pressure is 200 kpa. a) determine the initial volume of co2 in m. b) determine the final temperature in k. c) determine the work done by the system during the expansion kl.
Answers: 2
question
Engineering, 06.07.2019 03:20
What is the maximum height from which a mass of 30 kg can fall on to a flange on the lower end of a vertical rod of length 1.0 m and diameter 20 mm, the upper end being rigidly fixed, if the stress in the rod is not to exceed 80 mpa? the tensile modulus of the rod is 200 gpa.
Answers: 3
You know the right answer?
Compute changeA cashier distributes change using the maximum number of five dollar bills, followed b...
Questions
question
Computers and Technology, 22.08.2019 04:10
question
Computers and Technology, 22.08.2019 04:10
Questions on the website: 13722363