Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have this assignment, it needs to be in java, with 4-5 differnt separated sections. I have no idea how to go about it... I

I have this assignment, it needs to be in java, with 4-5 differnt separated sections. I have no idea how to go about it...

I partially already asked this question, but it came back in a format I didnt understand.. Thank you for any help.

image text in transcribed

Should come out looking similar to this...

image text in transcribed

You will write a program to keep up with a Coffee shop and some of the available drinks (The Coffee shop can be real or not) using Object-Oriented Programming (OOP). The important aspect of object-oriented programming is modular development and testing of reusable software modules. You love coffee and you have a head for money and programming and have decided to open a coffee shop. To save money you will write your own program to keep up with your drinks and shop. You will need the five classes discussed below You will have a Drink class, with class attributes of a drink name, a description, and a cost. Make sure these variables are safe (inaccessible from outside of this class) **about the description: The description should be about what the drink is flavors, and/or size. A Test_Drink class, that is a Junit test class for the Drink class. This should contain at least 7 test methods, that tests the methods of the Drink class - You will need a CoffeeShop class, with class attributes of your Shops name, an Array (default size of 10) of Drink's sold at the CoffeeShop, and a counter to keep track of how many items are in the array - - A Test CoffeeShop class, that is a Junit test class for the CoffeeShop class. This should contain at least 6 test methods that tests the methods of the CoffeeShop class Your P1Driver has a class attribute of a CoffeeShop (there should be no variable for a Drink object in this class). All the data for the CoffeeShop and Drink classes are to be hard coded (Do Not ask the user for that data) - Your program will need to Include the programming standards found in Blackboard. The Junit tests for the two classes should pass. The hardcoded data for the CoffeeShop and Drink classes should be in the P1Driver and passed to the appropriate methods of the other classes. - - Print a welcoming message Print the name of your CoffeeShop and all the Drink's (you must have at least 5 different kinds of Drink's for the CoffeeShopl, including the Drink name description, and cost (be sure to have different costs, don't make them all $3.00 or something dumb like that) Calculate and print the average cost of a Drink sold at the CoffeeShop. Be sure that this average cost looks like a normal monetary amount (i.e.: $4.00 and not $4.00425) Print a Good-Bye message or Thank you

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

More Books

Students also viewed these Databases questions

Question

HOW MANY TOTAL WORLD WAR?

Answered: 1 week ago

Question

Discuss the scope of financial management.

Answered: 1 week ago

Question

Discuss the goals of financial management.

Answered: 1 week ago

Question

1. Describe the factors that lead to productive conflict

Answered: 1 week ago