subject
Engineering, 25.10.2019 17:43 rosemary909

Public class calculatepennies { // returns number of pennies if pennies are doubled numdays times public static long doublepennies(long numpennies, int numdays) { long totalpennies; /* your solution goes here */ if(){ } else { totalpennies = doublepennies((numpennies * 2), numdays - 1); } return totalpennies; } // program computes pennies if you have 1 penny today, // 2 pennies after one day, 4 after two days, and so on public static void main (string [] args) { long startingpennies; int userdays; startingpennies = 1; userdays = 10; system. out. println("number of pennies after " + userdays + " days: " + doublepennies(startingpennies, userdays)); } }

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 18:10
Items are similar to the free issue items, but their access is limited. (clo5) a)-bin stock items free issue b)-bin stock controlled issue c)-critical or insurance spares d)-rebuildable spares e)-consumables
Answers: 1
question
Engineering, 04.07.2019 18:20
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:20
Refrigerant-134a enters the compressor of a refrigerator as superheated vapor at 0.14 mpa and -10°c at a rate of 0.05 ka/s and leaves at 0.8 mpa and 50°c. the refrigerant is cooied in the condenser to 0.72 mpa and 26'c. it is then throttled to 0.15 mpa. sketch the t-s diagram for the system and evaluate: 6) the rate of heat removai from the refrigerated space (kw), it) the power input to the compressor (kw), ii) the isentropic efficiency of the compressor (%), and iv) the cop of the refrigerator.
Answers: 2
You know the right answer?
Public class calculatepennies { // returns number of pennies if pennies are doubled numdays times pu...
Questions
question
Mathematics, 06.12.2020 19:50
question
Computers and Technology, 06.12.2020 19:50
question
Mathematics, 06.12.2020 19:50