FindArena > Find Arena > Money

 
Thread Tools Display Modes
  #1 ()
dubaimady : i tried to do that but i got an exception check my code :
ArrayList <Integer> myArray = new ArrayList<Integer>();
myArray.set(x, myArray.get(x) - 1);
i also tried this (x, x - 1);
and this(x , tempNum);
note : tempNum = myArray.get(x) - 1
i tried everything but i still get an exception ...
any help?!
IMPORTANT best answer if you EXPLAIN YOUR CODE !!!

  Reply With Quote
  #2 ()
FriendAbigail : You have to use the Object wrapper for int, which is Integer. You gain an Object when you use 'new'

public class ArrayListTest {

public static void main( String[] args ) {
ArrayList<Integer> al = new ArrayList<Integer>();
al.add( new Integer( 22 ) );
al.set( 0, new Integer( al.get( 0 ) - 1 ) );
System.out.println(al.get(0));
}
}
  Reply With Quote
more..
  #3 ()
uttentulp : Write the program in Java (without a graphical user interface) and have it calculate the payment amount for 3 mortgage loans:

- 7 year at 5.35%
- 15 year at 5.5%
- 30 year at 5.75%

Use an array for the different loans. Display the mortgage payment amount for each loan.

Here is code I have so far


*
*
*/

package changerequest_2;

/**
*
*
*/
import java.lang.Math;
import java.text.DecimalFormat;

class change request 2 {

public static void main(String[]atgs){
//Declare variables
int loanAmt = 200000;//Principal loan amount
int [] loanTerm = {84, 180, 360};//Loan term for 7 years, 15 years, and 30 years
double[] intRate = {5.35, 5.50, 5.75};//Interest rares for 7 years, 15 years, and 30 years
int monthNum = 85;
int montNum2 = 181;
int monthNum3 = 361;
int loanNum = 0;
int line = 0;
double monthlyPay = 0;//Display monthly payment calculation
double newLoanBal = 200000;//Loan balance
double monIntPaid = 0;//Interest paid
double newIntRate = 0;//Monthly interest rate
double monPrinPay;//Monthly principal payment
DecimalFormat money = new DecimalFormat(“$ 0.00?);//Display mortgage amount in decimal
DecimalFormat interest = new DecimalFormat(“0.00%”);//Display inteest rate amount in decimal

//Display message
System.out.println();
System.out.println(“change request 2?);
System.out.println();
System.out.println(“This program will calculate three separare mortgage payments for a $ “);
System.out.println(“with the following loan terms and interest rates”);
System.out.println(“7 years @5.35%”);
System.out.println(“15 years @5.50%”);
System.out.println(“30 years @5.75%”);
System.out.println();
System.out.println(“Following the math calculation of the payments, the program display the”);
System.out.println(“mortgage payments, interest paid, and loan balance for the terms of the”);
System.out.println(“three different loans”);
System.out.println();
  Reply With Quote
  #4 ()
boottantajork : Should i
dr cash $160
cr account receivable $160
?
  Reply With Quote
  #5 ()
bwrlrsc827 : DR Cash 120
DR Accounts Receivable 40
CR Revenues 160
  Reply With Quote
  #6 ()
BabFibShooria : The following data are taken from the comparative balance sheets of Girard Billiards Club, which prepares its financial statements using the accrual basis of accounting.





Fees are billed to members based upon their use of the club’s facilities. Unearned fees arise from the sale of gift certificates, which members can apply to their future use of club facilities. The 2010 income statement for the club showed that fees revenue of $153,000 was earned during the year.


Instructions


(Hint: You will probably find it helpful to use T accounts to analyze these data.)


(a) Prepare journal entries for each of the following events that took place during 2010.


(1) Fees receivable from 2009 were all collected.


(2) Gift certificates outstanding at the end of 2009 were all redeemed.


(3) An additional $35,000 worth of gift certificates were sold during 2010. A portion of these was used by the recipients during the year; the remainder was still outstanding at the end of 2010.


(4) Fees for 2010 for services provided to members were billed to members.


(5) Fees receivable for 2010 (i.e., those billed in item [4] above) were partially collected.


(b) Determine the amount of cash received by the club, with respect to fees, during 2010.
The following data are taken from the comparative balance sheets of Girard Billiards Club, which prepares its financial statements using the accrual basis of accounting.
Fees are billed to members based upon their use of the club’s facilities. Unearned fees arise from the sale of gift certificates, which members can apply to their future use of club facilities. The 2010 income statement for the club showed that fees revenue of $153,000 was earned during the year.
Instructions
(Hint: You will probably find it helpful to use T accounts to analyze these data.)
(a) Prepare journal entries for each of the following events that took place during 2010.
(1) Fees receivable from 2009 were all collected.
(2) Gift certificates outstanding at the end of 2009 were all redeemed.
(3) An additional $35,000 worth of gift certificates were sold during 2010. A portion of these was used by the recipients during the year; the remainder was still outstanding at the end of 2010.
(4) Fees for 2010 for services provided to members were billed to members.
(5) Fees receivable for 2010 (i.e., those billed in item [4] above) were partially collected.
(b) Determine the amount of cash received by the club, with respect to fees, during 2010.
  Reply With Quote
  #7 ()
StoomyTog : hi i wanna start my own rug buisness and i want your guys opinion whether or not i should do this. I am not a drug junkie or will do any drugs in the future. please dont put in your answers saying its "its hard you have to kill people and their are police" well ii dont care i would kil for money. i am 17 years old and i just wanted to make some cash. ive always been poor and dont have money for colledge or unniversity and thats why i wana start this. I am very good at chemistry and was able to produce really good meth not top class but pretty good and still working on it. I have not given to anyone but i will soon start selling since i have alot of connections with people to start this buisness.i was wondering should i do this buisness? and or just create a new chemically enhancing drug to put in the streets. because i was thinking of combining the chemicals of diffrent drugs and combining them into one top class drug that will be effective since i have been working on it. or should i just stick with making the drugs like heroin or cocaine and meth on the street? any ways just leave your comments down below. and one more thing should i move to mexico since ive heard there are alot of oppurtunities for drugs there or just move in a ghetto town where there are bad police and alot of drug addicts? thanks for your answers :]
  Reply With Quote
  #8 ()
roabdioma : title
expoter

category
bussiness

descripation
we are one of the leading exporter/Commodities SELLER based in Pakistan. We deal in the following items,
Fertilizer Urea 46% Prilled / Granular ,
Caustic Soda ,
Safety Match Box,
Leather Jackets,Gloves,Garments,Man-Women,Children garments Manufacturer
Rice,
Yellow Corn,
Soybeans ,
Wheat ,
Tobacco, Cigarette,
Cement Portland,
Fresh Fruits,
Edible Salt,
Edible Oil,
Spices,
Soap (Washing & Bath)
Sugar ICUMSA 45,
Palm Oil(CPO+RBD)

We are Petrolium CONSULTANT and can arrange petrolium products supply from the direct oil refineries for our reliable
clients/Buyers.
Petrolium Product
  Reply With Quote