How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Ingo U Your Own Question

Ingo U
Ingo U, Software Engineer
Category: Homework
Satisfied Customers: 755
Experience:  Over 25 years experience in software development. Expert in Microsoft .Net, C#, C++, VB, SQL
44076068
Type Your Homework Question Here...
Ingo U is online now
A new question is answered every 9 seconds

Following is a small java assignment please do it in java

Customer Question

Following is a small java assignment please do it in java (if not too hard also in javascript)
Read the following data from a file:
Executive,Mr,Moshe,Roth,250000
Supervisor,Mr,Chaim,Stark,150000
Supervisor,Mr,Moshe,Spira,160000
Manager,Mr,Yehuda,Gold,120000
Manager,Mrs,Miriam,Weiss,120000
Employee,Mr,Shlomo,Green,65000
Employee,Mrs,Ester,Silver,75000
Employee,Mr,Yakov,Weiser,70000
Put all the records in to appropriate objects
Put all the objects in to a data structure
Loop through the data structure and print out (on screen)
Title,First Name, Last Name, Bonus (in currency format)
The bonus being the following rules:
Executive – 20% of salary
Supervisor – 10% of salary
Manager – 8% of salary
Employee – 5% of salary
Ex. Mr,Moshe,Roth,$50,000.00
Submitted: 10 months ago.
Category: Homework
Expert:  Ingo U replied 10 months ago.

Hi,

I should be able to do this for you in Java. Any particular toolset you are using? Running on windows?

Thanks,

Ingo U

Customer: replied 10 months ago.
i wanna take your code and put it into eclipse ide
Expert:  Ingo U replied 10 months ago.

Well I don't have eclipse installed, but if I give you the java source code, you should be able to just create a new project inside eclipse, open up my code file in notepad and just copy&paste the code over into the eclipse window.

Later today OK?

Expert:  Ingo U replied 10 months ago.

Hi,

please have a look:

http://wikisend.com/download/590522/Bonus.zip

Let me know if you need anything else.

Ingo U

Expert:  Ingo U replied 10 months ago.

Hi,
just following up, were you able to use my solution?
Please feel free to post any additional questions, comments or concerns you may have regarding this issue.

If you're not yet satisfied with the result, please let me know what is missing.
I will do my best to make it right for you.

Otherwise, please don't forget to rate my service - I don't get paid for my work until your rating is received.

Regards,
Ingo U

Customer: replied 10 months ago.
its not working in eclipse i got this error
Exception in thread "main" java.io.FileNotFoundException: salaries.txt (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at java.io.FileReader.(FileReader.java:58)
at Bonus.main(Bonus.java:15)
Expert:  Ingo U replied 10 months ago.

Hi,

that must mean the salaries.txt file is not in the eclipse debug working directory. I don't know the specific directory structure for eclipse projects offhand, but often there is a "bin" or "debug" subfolder where the executable code goes, and sometimes where the debugging happens. Try copying the salaries.txt file to different places (folders) under the project tree.

Expert:  Ingo U replied 10 months ago.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.