Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

"For ATL PROG Only" accounts_receivable A common business

 
ATLPROG's Avatar
  • Answered by:ATLPROG
  • Computer Software Engineer
  • Positive Feedback: 99.8 %
  • Accepted Answers: 7386
Verified Expert
in Programming

Recent Feedback

Positive
nice
Positive
ATL Prog is the man! Great support.
Positive
A++++++ with JAVA again!! Thanks for the great help and service!
Positive
Very helpful yet again
Positive
This is just what I needed and ATLPROG completed it quickly.
Positive
Very fast, excellent and the best in this field. Recommended!
Positive
So Smart and have Great Knowledge
Positive
Thanks man. Compared to what I had coded up, I started out good, but then took...
Positive
I cant afford much more than I have already paid, but let me know if you want...
Positive
Thanks again and again

Customer Question

"For ATL PROG Only"
accounts_receivable
A common business application is an ‘Accounts Receivable' (AR) system. Companies use an AR system to bill their customers on sales of their products. In this assignment question you will develop the functionality of a simple Accounts Receivable system. You will develop classes for a BillofSales, Customer, Item, and Product. The requirement for each of these classes is given below.
BillOfSales
+ Customer customer
+ ArrayList items
. public BillOfSales(Customer c)
. public void add( String productDescription, double productPrice, int productQuantity)
. public double calcAmountDue()
. public String toString()
Customer
+ String name, street, city, state, zipcode
. Customer(String name, String street, String city, String state, String zipcode)
. public String toString()
Item
+ Product product
+ int quantity
. public Item( Product product, item quantity)
. double calcTotalPrice()
. public String toString()
Product
+ String description
+ double price
. public Product( String description, double price)
. String getDescription();
. double getPrice();

In the above, a prefix of a plus (+) indicates a field and a prefix of a dot (.) indicates a method.
You have been provided a test class BillOfSalesTst which has a static test method. For convenience, you do not need to create an instance of BillOfSalesTst. Just right-click and execute the test method. Your output should look like the following:
BILL OF SALES
John Q. Public
123 Elm Steet
Pleasantville, PA 15213

Description Unit Price Num Total
TV 299.99 1 299.99

DVD 9.99 7 69.93
Speakers 49.99 2 99.98
Amount due: 469.90

Guidelines
The following suggestions will help you in developing this assignment. The actual algorithmic complexity of this assignment is not high. There are two interesting parts: hooking up the various classes together (the so called ‘plumbing' of the system) and formatting the output.
For hooking up the classes, it will be helpful to draw a picture of the four classes, their fields and methods using index cards, along the lines of the discussion on CRC cards given in the textbook (pg. 426). For formatting the output, read the documentation for the method String.format on the official Java documentation at: http://download.oracle.com/javase/6/docs/api/java/lang/String.html#format%28java.lang.String,%20java.lang.Object...%29
For guidance, the sample output used above was produced with the format string, "%-25s %8s %5s %10s\n". The header was produced in the toString method of BillOfSales class with

String.format("%-25s %8s %5s %10s\n", "Description", "Unit Price", "Num", "Total");
Create a new project in BlueJ by clicking on the menu option Project > New project. This will create a folder with the project name (see below). All BlueJ project-related files for this project will be stored in this folder. Create new classes by clicking on the [New Class] button. All Java class files that you create (.java files) will be stored in the BlueJ project folder. The project folder will contain other files as well. After completing and testing your assignment, zip the entire BlueJ folder and submit it. Since your Instructor will need all files in the project folder, make sure you zip the entire folder. For this assignment the names of the BlueJ project, Java class files, and the zip file you submit are given below:
BlueJ project: accounts_receivable
Java classes: BillOfSales.java, Customer.java, Item.java, Product.java
Submit: accounts_receivable.zip

 

Optional Information:
Language (or Software): Other
Browser (if necessary): IE

Already Tried:
Java

Submitted: 389 days and 6 hours ago.
Category: Programming
Value: $45
Status: CLOSED

Accepted Answer

Picture
Expert:  ATLPROG replied389 days and 6 hours ago.


ATLPROG :

hi

ATLPROG :

Will work on it

ATLPROG :

how many hoursuntil deadline ?

JACUSTOMER-iwp3m5rx- :

I dont know if you can manage this one.

JACUSTOMER-iwp3m5rx- :

only three hours left.

JACUSTOMER-iwp3m5rx- :

i gave the question yesterday

JACUSTOMER-iwp3m5rx- :

but i thought may be you will be busy with the other question

ATLPROG :

I can handle it if given on time

JACUSTOMER-iwp3m5rx- :

ya but can you do it in three hours.

ATLPROG :

let em see if I can do it in 3 hrs

JACUSTOMER-iwp3m5rx- :

okay let me know in 15 minutes

ATLPROG :

no GUI on this one ?

JACUSTOMER-iwp3m5rx- :

what about the other question?

ATLPROG :

give me 30 on other

JACUSTOMER-iwp3m5rx- :

ok..

ATLPROG :

is this GUI ?

ATLPROG :

or non-GUI ?

JACUSTOMER-iwp3m5rx- :

its a BlueJay project..

ATLPROG :

ok

ATLPROG :

It says that BillOfSalesTst is provided

ATLPROG :

do you have any BlueJ project that you can upload

JACUSTOMER-iwp3m5rx- :

Hold on

ATLPROG :

Can you please go to www.wikisend.com and upload your file ? Once you do that you will get a page that has the "File ID" and "Download Link". Copy the "Download Link" or "File ID" and please paste it in your reply here.

JACUSTOMER-iwp3m5rx- :

You have been provided a test class BillOfSalesTst which has a static test method. For convenience, you do not need to create an instance of BillOfSalesTst. Just right-click and execute the test method. Your output should look like the following:

BILL OF SALES

John Q. Public
123 Elm Steet
Pleasantville, PA 15213

Description Unit Price Num Total
TV 299.99 1 299.99

DVD
9.99 7 69.93
Speakers 49.99 2 99.98

Amount due: 469.90

ATLPROG :

i dont see BillOfSalesTxt

ATLPROG :

do you have code for that?

ATLPROG :

There should be BillOfSalesTst.java which is provided to you

JACUSTOMER-iwp3m5rx- :

This is the code in this file

JACUSTOMER-iwp3m5rx- :

public class BillOfSalesTst{ public static void test() { Customer c1 = new Customer("John Q. Public", "123 Elm Steet", "Pleasantville", "PA", "15213"); BillOfSales bos = new BillOfSales( c1 ); bos.add( "TV", 299.99, 1); bos.add( "DVD", 9.99, 7); bos.add( "Speakers", 49.99, 2); System.out.println( bos ); }}

ATLPROG :

ok got it

ATLPROG :

I have the first part ready

ATLPROG :

let me send you that

JACUSTOMER-iwp3m5rx- :

ok

ATLPROG :

As its a big task i will provide answer in parts and the final part will have the complete BlueJ Project

JACUSTOMER-iwp3m5rx- :

okay thats fine but i want the other answer first

ATLPROG :

Other meaning the Ticket one?

JACUSTOMER-iwp3m5rx- :

yes

JACUSTOMER-iwp3m5rx- :

how many parts are you going to split this into\

ATLPROG :

One for each class

JACUSTOMER-iwp3m5rx- :

i dont think it is that big of a task..

JACUSTOMER-iwp3m5rx- :

how about two files in one shot

JACUSTOMER-iwp3m5rx- :

there are four classes

JACUSTOMER-iwp3m5rx- :

so two classes each.

ATLPROG :

Sorry but the urgency was too high..like other one will be able to send only 1 file per part

JACUSTOMER-iwp3m5rx- :

Okay if thats the case

JACUSTOMER-iwp3m5rx- :

then the answer should be correct

JACUSTOMER-iwp3m5rx- :

last time one of your answers was not correct

JACUSTOMER-iwp3m5rx- :

i got no grade for that

ATLPROG :

Which one

ATLPROG :

can you give me the details

JACUSTOMER-iwp3m5rx- :

the ones which had multiple questions

JACUSTOMER-iwp3m5rx- :

yes or no

ATLPROG :

do you know which one was wrong in that?

JACUSTOMER-iwp3m5rx- :

The instructor told me all are wrong

JACUSTOMER-iwp3m5rx- :

but the other question you answered saved me]

ATLPROG :

i am not sure why they were incorrect as per me they were correct

ATLPROG :

well for this one its easy to test

JACUSTOMER-iwp3m5rx- :

ok no problem

ATLPROG :

as the test class has been provided

ATLPROG :

we just need to use that to test :)_

JACUSTOMER-iwp3m5rx- :

okay..

JACUSTOMER-iwp3m5rx- :

i am ready to do so

ATLPROG :

lets do the first one first

JACUSTOMER-iwp3m5rx- :

you mean which one

ATLPROG :

Ticket one

JACUSTOMER-iwp3m5rx- :

okay

ATLPROG :

k

JACUSTOMER-iwp3m5rx- :

whats happening..

ATLPROG :

can you Fit F5 in the browser window of previous question

ATLPROG :

i have switched it to QA mode

ATLPROG :

just refresh the previous question's browser window and hit accept

JACUSTOMER-iwp3m5rx- :

i did that also

JACUSTOMER-iwp3m5rx- :

there is a promp box saying leave this page or stay on the page

ATLPROG :

do this

ATLPROG :

copy following URL and paste it i a new browser window

ATLPROG :

http://www.justanswer.com/computer-programming/6ko9r-atlprog-week-ha-tickets-on-completion.html

ATLPROG :

I am waiting for you create question for DiscountTicket

ATLPROG :

You can use http://www.justanswer.com/computer/expert-atlprog/ to do so

ATLPROG :

Please feel free to ask me another question (by starting question with "For ATLProg Only") , if you’re a subscriber, you can do so at no additional cost beyond your monthly payment.

ATLPROG :

Hi

ATLPROG :

Let me know when you are ready

JACUSTOMER-iwp3m5rx- :

i am ready

ATLPROG :

Here is product.java

ATLPROG :

Answer Link

ATLPROG :

Next will be Item.java

JACUSTOMER-iwp3m5rx- :

k

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 99.8 %
Accepts: 7386
Answered: 4/25/2012

Experience: MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

Ask this Expert a Question >
 
Tweet

6 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
Microsoft Visual Basic 2010 Programming Exercise 5/16/2013
I am programming and auto reply macro and Outlook 10 that is 5/16/2013
Hello. I really need help with C Programming. I need a program 5/15/2013
I need to make the submit button bigger 5/15/2013
"For Jatechexpert" Part 1Programming Exercise 2—Calories 5/14/2013
INSTRUCTIONS: VERY IMPORTANT, THIS IS TO BE DONE USING MICROSOFT 5/13/2013
I have a JavaScript programming question. I have a form and 5/13/2013
Need a java programming to fulfill the following requirements: 1. 5/13/2013
I. Overview: Welcome to the CIT216 Practice Final 5/13/2013
Please help with this project https://www.dropbox.com/s/vs 5/12/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

JustAnswer in the News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
184 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us | Our Network
© 2003-2013 JustAnswer LLC
  • Pearl.com
  • JustAnswer UK
  • JustAnswer Germany
  • JustAnswer Spanish
  • JustAnswer Japan