FindArena > Find Arena > Money

 
Thread Tools Display Modes
  #1 ()
kCrackMan : array declarations :-
Cont int SIZE=5;
int A[SIZE] = {1,2,3,4,5};
int cubes [SIZE];
Write a complete c++ programs that use functions accomplish the following tasks:-
1.
Print the array elements in this style : (printArray)
[1 , 2 , 3 , 4 , 5]

2.
Print the array elements in a reverse order similar to the following: (printReverse)
[ 5 , 4 , 3 , 2 , 1 ]



3.
Prints the factorial of all elements of the A array. The function should take the entire array as a parameter not individual array elements. (printFact)

4.
Fill the cubes array with the cube values of the corresponding elements in the A array. The function should take individual elements from the A array and return its cube value to the main program which places the returned value in the cubes array. Print the cubes array using the printArray function. (getCube)
  Reply With Quote
  #2 ()
child1sm-- : I am currently using the Head First Java book to learn how to write in java. However the very first "practice" source code won't run. I have finally got it to compile after about 5 hours of looking up how to do that but when i try to run it in the command prompt using "java Party" it says "Exception in thread "main" java.lang.NoSuchMethodError: main.

Please Help and any advice is much appreciated

Thank You
here is the code

import java.awt.*;
import java.awt.event.*;
class Party {
public void buildInvite(){
Frame f = new Frame();
Label l = new Label ("Party at Tim's");
Button b = new Button("You bet");
Button c = new Button("Shoot me");
Panel p = new Panel();
p.add(l);
} //more code here....
}
Can you copy the code and show me exactly in the code where that part goes? Thanks, and yeah i guess you can tell i'm very new to this. Once again, thank you.
  Reply With Quote
more..
  #3 ()
unselsbup : firstly you need to post your code, there are many many ways to get that error. Also it may be easier to try (at least when first starting java) to compile your code from within an IDE like eclipse or netbeans instead of the command line.

http://www.eclipse.org/
http://netbeans.org/
  Reply With Quote
  #4 ()
toribhibbleri : aahh,

you don't have main method at all I thought you must have it, include it

public static void main(String[] args) {
//INCLUDE CODE HERE TO INITIALIZE CLASS ETC
}

REMEMBER: All the java programs which must be 'run' should have a main method and that is the entry point into your program. If this class is part of some project or used by some other class then you should run the class which has the main method inside it. You can't run this class unless you have a main method defined here.

Sorry for the previous reply, just misunderstanding
  Reply With Quote
  #5 ()
augmery Parriorkmn : 1.) A company issued 5%, 20-year bonds with a face amount of $80 million. The market yield for bonds of similar risk and maturity is 6%. Interest is paid semiannually. At what price did the bonds sell?

n=
i=

cash flow.....Amount....Present Value
Interest
Principal

2.)
On January 1, a company issued 3%, 20-year bonds with a face amount of $80 million for $69,033,776 to yield 4%. Interest is paid semiannually. What was the straight-line interest expense on the December 31 annual income statement?

3.)
On January 1, a company issued 7%, 15-year bonds with a face amount of $90 million for $82,218,585 to yield 8%. Interest is paid semiannually. What was interest expense at the effective interest rate on June 30, the first interest date?
amount x affective rate= interest expense

4.)
On January 1, a company purchased 3%, 20-year corporate bonds for $69,033,776 as an investment. The bonds have a face amount of $80 million and are priced to yield 4%. Interest is paid semiannually.

Prepare a partial amortization table at the effective interest rate on June 30 and December 31

Prepare the journal entries necessary to record revenue at the effective interest rate on June 30 and December 31.
  Reply With Quote
  #6 ()
Kecysypecrade : 1. First City Bank pays 7% simple interest on its savings account balances, whereas Second City Bank pays 7% compounded annually. If you made a $6,000 deposit in each bank, how much more money would you earn from your Second City Bank account at the end of 9 years?
2. At 6.5 percent interest, how long does it take to quadruple your money?
3. You are scheduled to receive $15,000in two years. When you receive it, you will invest it for six more years at 7.1 percent per year. How much will you have in eight years?
4. Investment X offers to pay you $5,200 per year for eight years, whereas investment Y offers to pay you $7,300 per year for five years. Which of these cash flow streams has the higher present value if the discount rate is 5 percent?
5. First National Bank charges 13.2 percent compounded monthly on its business loans. First United Bank charges 13.5 percent compounded semiannually. As a potential borrower, which bank would you go to for a new loan?
6. You want to have $75,000 in your savings account 12 years from now, and you are prepared to make equal annual deposits into the account at the end of each year. If the account pays 6.8 percent interest, what amount must you deposit each year?
7. What is the future value of $2,600 in 19 years assuming an interest rate of 7.9 percent compounded semiannually?
8. You want to buy a new sports coupe for $83,500, and the finance office at the dealership has quoted you 6.5 percent APR loan for 60 months to buy the new car. What will your monthly payments be?
9. First Simple Bank pays 9 percent simple interest on its investments accounts. If First Complex Bank pays interest on its accounts compounded annually, what rate should the bank set if it wants to match First Simple Bank over an investment horizon of 10 years?
10. You've just joined the investment-banking firm of JP Morgan. They've offered you two different salary arrangements. You can have $75,000 per year for the next two years, or you can have $64,000 per year for the next two years, along with a $20,000 signing bonus today. If the interest rate is 10% compounded monthly, which do you prefer?
11. You have just won the lottery and will receive $1,000,000 in one year. You will receive payments for 30 years, which will increase 3 percent per year. If the appropriate discount rate is 7 percent, what is the present value of your winnings? (Hint: think of the annuity types i.e. growing annuity, perpetuity etc.)
12. You are prepared to make monthly payments of $ 290, beginning at the end of this month, into an account that pays 7 percent interest compounded monthly. How many payments will you have made when your account balance reaches $20,000?
  Reply With Quote
  #7 ()
nztjqvbovxna : Hmm...I can do this guy's homework for him. That would be helpful.

Not.
  Reply With Quote
  #8 ()
Graiccaky : If 10 people (who were extremely proficient in financial modeling, financial analysis etc.) were given the exact set of financial information and asked to create a DCF, is it likely to have 10 different DCFs? What would the differences be? If a portfolio manager was given two different DCFs for the same company over the same years, how might they judge which is more accurate?

Thanks
  Reply With Quote
  #9 ()
buy neopoints : 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
  #10 ()
Veilepype : I doubt they would look too different from one another. If they are all using the same time parameter, probably the main difference would come from discount rate being used. Some choice is involved there, and different industries tend to use different rates. A lot of analysts still use the firm's average weighted (as in debt v. equity) cost of capital. I guess the answer to your second question would depend on how far into the company's records an analyst wanted to go. It shouldn't be that hard to find out how the company has performed in the past vs. the analysis that was used to justify a given investment, OR look at current projects and the analyses done on them.
  Reply With Quote