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 John Your Own Question

John
John , Engineer
Category: Homework
Satisfied Customers: 798
Experience:  Bachelors Degree
27270878
Type Your Homework Question Here...
John is online now
A new question is answered every 9 seconds

Write a program that reads bank account information contained

Customer Question

Write a program that reads bank account information contained in a text file, determines the monthly fee for each account and calculates the total amount of money deposited in all the accounts.
Submitted: 2 years ago.
Category: Homework
Expert:  procoder replied 2 years ago.
Hi, can you upload the full problem statement and what you have already tried to http://ge.tt (include the download link in your reply)?
Customer: replied 2 years ago.

Attachment: 2013-09-13_010035_capstone_1_lab_instructions.docx


 


I have it uploaded.

Expert:  procoder replied 2 years ago.
Please also attach the AcctInfo.txt file. When do you need this by?
Expert:  John replied 2 years ago.
hi

I am John

i will help you to do this

please send AcctInfo.txt file
Customer: replied 2 years ago.
Hi John I sent you the text file in a word document last night
Expert:  John replied 2 years ago.
hi

do you have .txt file
Customer: replied 2 years ago.
One moment please, how do I log back in from my computer I am currently responding From my phone
Expert:  John replied 2 years ago.
hi

if you have it, send it

i will check after some time

can you wait until tomorrow morning for this
Customer: replied 2 years ago.

Hi John are you still with me. I am on my computer now?


 

Customer: replied 2 years ago.

Hi John


 


 

Expert:  John replied 2 years ago.
hi

please post the file what you have
Customer: replied 2 years ago.
Ok give me like 15 minutes in a car now. For some reason your company website will allow a .txt file to be uploaded. What I will do is copy and paste it to a word document
Expert:  John replied 2 years ago.
hi

ok
Customer: replied 2 years ago.

Attachment: 2013-09-14_023126_acctinfo.docx


 


Please let me know if you are able to see the attach file


 

Expert:  John replied 2 years ago.
hi

ok got it

i will give it by tomorrow morning
Customer: replied 2 years ago.

Not a problem

Expert:  John replied 2 years ago.
hi

ok then Good night
Expert:  John replied 2 years ago.
hi

The answer link is below

http://ge.tt/1psLjAs/v/0

hope this helps

if anything more, inform me before rating this answer
Customer: replied 2 years ago.
I am not home now do mind if I compile the code in a few hours, when I am back home
Expert:  John replied 2 years ago.
hi

ok no problem
Customer: replied 2 years ago.

Hi John,


 


I received the following error message:


AcctInfo-1.java:5: error: class AcctInfo is public, should be declared in a file named AcctInfo.java
public class AcctInfo {
^
1 error


 


Please advise

Expert:  John replied 2 years ago.
hi

Replace this line

public class AcctInfo {

with

class AcctInfo {


hope this helps


Customer: replied 2 years ago.

What IDE compiler are you using maybe that will help.

Expert:  John replied 2 years ago.
hi

jdk

which compiler you are using

you have any problem with the code
Customer: replied 2 years ago.

Jgrasp -- I am not able to get it to compile

Expert:  John replied 2 years ago.
hi

what is the problem coming
Customer: replied 2 years ago.

Were you able to get it to compile

Expert:  John replied 2 years ago.
hi

i don't have it
i have to install it

can you wait until that
Expert:  John replied 2 years ago.
hi

do you have any other compiler
Customer: replied 2 years ago.
Installing another now
Expert:  John replied 2 years ago.
hi

i have Eclipse and netbeans also
Expert:  John replied 2 years ago.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
John, Engineer
Category: Homework
Satisfied Customers: 798
Experience: Bachelors Degree
John and 7 other Homework Specialists are ready to help you
Customer: replied 2 years ago.
Hi John I have a follow question in regards XXXXX XXXXX output that you help me with. Please let me know when you are available. I would like to work with you on ther homework questions that I will have in the future and I understand that there will be a cost associated with it.
Expert:  John replied 2 years ago.
hi

Welcome back

post the questions here
Customer: replied 2 years ago.

Attachment: 2013-09-18_220206_doc1.docx

With the program that you was helping me with. I need the end result to look like what I have attached


 

Customer: replied 2 years ago.

Exception in thread "main" java.io.FileNotFoundException: AcctInfo.txt (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.util.Scanner.<init>(Scanner.java:656)


 


I am still getting this error message

Expert:  John replied 2 years ago.
hi

This error comes because the file AcctInfo.txt is not there

so you put the AcctInfo.txt (which is in the below link) int the same folder where your program .java file exists. Then you compile and run , you will get the same output as you need

http://ge.tt/3ZsEzBs/v/0
Customer: replied 2 years ago.
Thanks a million. How do I request your help for another question so that you get credit for it. I would like to work with you on it
Expert:  John replied 2 years ago.
hi

you post the question here

Customer: replied 2 years ago.

My question is with the above attachement, how do I write the program?


 

Expert:  John replied 2 years ago.
hi

please post the Attachment
Customer: replied 2 years ago.


 


Attachment

Expert:  John replied 2 years ago.
hi

i didn't get it

you just post like below

Attachment: 2013-09-18_220206_doc1.docx

Customer: replied 2 years ago.

Write a program that simulates customers waiting in line at a grocery store. Your program must use a Queue to represent the customer objects waiting in line.
A Customer class is provided for you (download from Moodle). You must use that class, without alternations, for the creation of your Customer objects. You must analyze the class and use the provided methods to achieve the desired functionality of the program.
The program should simulate 60 minutes of activity at the store. Each iteration of your program should represent one minute. At each iteration (minute), your program should do the following:
• Check to see if new customers are added to the queue. There is a 25% chance that new customers show up (need to be added to the queue) every minute. This does not mean you should add a customer every four iterations, but rather each iteration should have its own 25% chance.
• Update the customer object currently being serviced (if one exists). This will be the customer object at the front of the queue. If the customer has been completely serviced, remove them from the queue.
During execution, your program should output the following information:
• When a new customer is added to the queue, output, “New customer added! Queue length is now X” where X is the size of the queue after the new customer has been added.
• When a customer has been completely serviced, output, “Customer serviced and removed from the queue. Quest length is now X” where X is the size of the queue after the customer has been removed.
• At the end of each iteration (minute), output, “---------------------------------------------------“ to visually identify the passing of time.
When your simulation ends, your program should also output the following information:
Total number of customers serviced
Maximum line length during the simulation

Expert:  John replied 2 years ago.
hi

let me check this

when is due this
Customer: replied 2 years ago.

Sept. 26

Expert:  John replied 2 years ago.
hi

ok then
i will inform you tomorrow after checking this
Customer: replied 2 years ago.

ok thanks

Expert:  John replied 2 years ago.
hi

see you
Expert:  John replied 2 years ago.
hi

will be ready by 25th
Customer: replied 2 years ago.
Not a problem. Thank you!
Expert:  John replied 2 years ago.
hi

ok then
Customer: replied 2 years ago.
Hi John, wanted to follow up you in regards XXXXX XXXXX Today is the 25th.
Expert:  John replied 2 years ago.
hi

ok
Customer: replied 2 years ago.
Do you have the code available it is due today?
Expert:  John replied 2 years ago.
hi

not yet finished

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
< Previous | Next >
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • LogicPro

    LogicPro

    Engineer

    Satisfied Customers:

    4925
    Expert in Java C++ C C# VB Javascript Design SQL HTML
< Last | Next >
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    4925
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4538
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3138
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2602
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    2126
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1887
    Bachelors Degree and CPA with Accounting work experience
  • http://ww2.justanswer.com/uploads/avremote/photoa.jpg Seanna's Avatar

    Seanna

    Tutor

    Satisfied Customers:

    1781
    3,000+ satisfied customers, all topics, A+ work