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

(Java Program) Wings Coffee Shop A local coffee shop sells

 
ATLPROG's Avatar
  • Answered by:ATLPROG
  • Computer Software Engineer
  • Positive Feedback: 99.8 %
  • Accepted Answers: 7331
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

Instructions<br />Wings Coffee Shop <br />A local coffee shop sells a variety of different items shown below to their customers. You are asked to write a Java application that can be used to keep track of these items. Additionally, this program provides a way to print out a listing of the items. Item Name Price Coffee $1.00 Water $2.00 Milk $1.50 Bagel $1.25 Donut $0.75 Your program will create a class, named Item. This class has the following: * A String instance variable to hold the item name * A double instance variable to hold the price * A constructor that takes a String and double to initialize the instance variables * A get and set method for each instance variable Once you have this class created, you write a second class named CoffeeDriver. This class has the following methods: * sortName – this method sorts the array of items by item name and then displays the name and price of all items on the screen * sortPrice – this method sorts the array of items by item price and then displays the name and price of all items on the screen * main - It creates an array of Item objects using the data above to set each Item's information. After initializing the array, prompt the user for how they want to see the list – sorted by name or price. Then call the appropriate method. Be sure your program demonstrates good programming style (appropriate comments, identifier names, indenting, etc). Although it is not required to look this way, your output might look something like the following: Welcome to Wings Coffee Shop. We have a great list items on our menu. Would you like to see these items sorted by name or by price? (n / p): n Item Name Price Bagel $1.25 Water $2.00 Coffee $1.00 Donut $0.75 Milk $1.50

Submitted: 762 days and 16 hours ago.
Category: Programming
Value: $27
Status: CLOSED

Accepted Answer

Picture
Expert:  ATLPROG replied 762 days and 16 hours ago.


ATLPROG :

Hi...I can help you answer this question

ATLPROG :

How soon do you need the answer ?

Customer :

will it work for you if I get it in the next five hours? if not let me know and we might work something out

ATLPROG :

I should be able to answer your question by then

Customer :

okay.

Customer :

I am leaving the chat but I guess I will get an email when the answer is ready?

Customer :

I have never used a chat before so not sure how it works

ATLPROG :

yes

ATLPROG :

you should get a email

Customer :

okay thanks

ATLPROG :

if not then please check back in 2 hours

Customer :

okay

ATLPROG :

I am uploading answer

ATLPROG :

l

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 99.8 %
Accepts: 7331
Answered: 3/10/2011

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

Ask this Expert a Question >
Picture
Expert:  ATLPROG replied 762 days and 13 hours ago.

Link : http://wikisend.com/download/398966/CoffeeDriver.java

let me know if you need changes

Customer replied 762 days and 13 hours ago.

<br />can you please make the code to show the name of the item name and the price in column after compiling. the item name should be the first column and the second one should be price. <br />example of what I am talking about. I hope you understand what I'm trying to say<br />Item Name  Price<br />Bagel         $1.25<br />Water         $2.00<br />Coffee         $1.00<br />Donut         $0.75<br />Milk            $1.50<br /><br /> <br />with a better alignment than what is dispalying here<br /><br />PS: the web site have some sort of bugs because it messes up how I want to show you

Picture
Expert:  ATLPROG replied 762 days and 13 hours ago.

ok....I can do that, give me few minutes

Picture
Expert:  ATLPROG replied 762 days and 12 hours ago.

Try this,,,, http://wikisend.com/download/420718/CoffeeDriver.java

Customer replied 762 days and 12 hours ago.

okay thanks much

Customer replied 762 days and 12 hours ago.

after compiling, the sorting only displays by name (n) only even when you select(price) p it still  displays the sorting in by  n.

Picture
Expert:  ATLPROG replied 762 days and 5 hours ago.

ok...I will take a look. When do you need these changes ?

Customer replied 762 days and 5 hours ago.

if I can get by 12pm EST that will be great.

Picture
Expert:  ATLPROG replied 762 days and 4 hours ago.

Here you go....

http://wikisend.com/download/448358/CoffeeDriver.java

Let me know if it helps

Customer replied 762 days and 4 hours ago.

no, it did not help, it still displays in name

Picture
Expert:  ATLPROG replied 762 days and 4 hours ago.

oops..I agve you wrong link... Try this one .. http://wikisend.com/download/940122/CoffeeDriver.java Sorry.

Customer replied 762 days and 4 hours ago.

graphic
View Full Image
just to make sure. here is the picture to show you after compiling. This is the right way right?

Picture
Expert:  ATLPROG replied 762 days and 3 hours ago.

Yes that is the way this program runs!

 
Tweet

7 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
C ProgrammingDecode LabYour assignment is to write a C 4/9/2013
Reference the following instructions to assist you when completing 4/8/2013
First you will present the pseudo code with all the modules 4/8/2013
NA-112 4/8/2013
The first programming project involves completing a program 4/8/2013
RA-201 4/7/2013
This is my final exam for my c programming class. It is due 4/7/2013
Program Description Your program will display (see the sample 4/6/2013
RA-211 4/3/2013
ra-614 4/2/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

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.
270 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
© 2003-2013 JustAnswer LLC