English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-11-27 19:21:15 · 3 answers · asked by Anonymous in Education & Reference Homework Help

yes, the exact code.

2006-11-28 19:17:24 · update #1

3 answers

Hi there;

There are many ways to use java to toss in a CRC. R you asking for the exact code?
Mwa-hahhahaha not so fast my friend.
But I can steer you in a direction if you want. :)
Check out the Sun Developer Network and good luck to you. :D

2006-11-27 19:43:06 · answer #1 · answered by snowelprd 3 · 0 0

Tyr this public type CalculateAgain { /** * This on your question: i could desire to jot down a application the place a guy or woman gets one million penny on the 1st day, and on the * 2d day, the quantity of pennies recieved is doubled to 2 pennies (totaling to 3 pennies that day), and on * the 0.33 day he gets 6 pennies (using fact the quantity is doubled) and has a entire of 9 pennies. * * i could desire to stay with this development till the pennies attain extra advantageous than $a hundred.00 in entire (or 10,000 pennies). * * From then , i could desire to discover the days it took to realize over $a hundred.00. * * Java is particularly complicated, and it could be very much favorite in case you could answer this question and doubtless provide * me some help into answering it. Incluir aqui­ l. a. descripcion del metodo. * * @param args */ public static void substantial(String[] args) { double totalPennies = 0; double totalDollars = 0; for (double i = 0;; i++) { totalPennies = Math.pow(3.0, i); totalDollars = totalPennies / a hundred.0; equipment.out.println("day: " + (i + one million) + " entire pennies: " + totalPennies + " entire money: " + totalDollars); if (totalDollars >= a hundred) { equipment.out.println("I have been given extra then a hundred Dolars"); break; } } } } And this public type Calculate { /** * * that's for the unique question * Write a Java application to compute the variety of days for right here scheme. The recipient gets a penny on * day one million and the quantity is doubled on next days. that's on day 2 the quantity won is two, on day 3 4 * pennies, day 4 8 pennies etc. The recipient accumulates the quantity won. Write a application to compute * what share days will it take for the recipient to amass extra advantageous than a hundred money. Incluir aqui­ l. a. descripcion * del metodo. * * @param args */ public static void substantial(String[] args) { double totalPennies = 0; double totalDollars = 0; for(double i = 0 ;;i++){ totalPennies = Math.pow( 2.0, i); totalDollars = totalPennies / a hundred.0; equipment.out.println("day: " + (i + one million) + " entire pennies: " + totalPennies + " entire money: " + totalDollars); if(totalDollars >= a hundred){ equipment.out.println("I have been given extra then a hundred Dolars"); break; } } } } desire remedy your question

2016-12-29 14:40:23 · answer #2 · answered by mandeville 3 · 0 0

i don't know how to use it.

2006-12-02 00:50:27 · answer #3 · answered by mirchi girl 3 · 0 0

fedest.com, questions and answers