Question: Please no copy and paste from other websites please (Java) In java All displayed prompts and results should be well formatted. The assignment is based
In java All displayed prompts and results should be well formatted. The assignment is based on the following Programming Exercise in the book: Programming Projects Chapter 5 Defining Classes II Programming Exercises Page 339 I. Hot Dog Stands This assignment requires the following enhancements: There must be at least 2 java source code files: HotDogStandMainClass.java Contains the main HotDogStandMainClass. HotDogStandClass.java Contains the HotDogStandClass. Inventory Control The hotdog stand class will have an inventory of hot dogs that the class must be able to track. The class must have methods to set, access, add to, and subtract sales from the inventory. A hot dog stand class constructor must set the default initial inventory to 25 hotdogs. Accounting The hot dog class must keep track of the total hotdogs sold since its object instantiation. Buy(int I) method Instead of a sold method (as in the book) the hotdog class must have a buy method that has an parameter that indicates the number of dogs that wants to buy. The hotdog class should he intelligent enough to sell only hotdogs that are in inventory. If the buy is more than the inventory, the class should state the hotdogs in inventory and ask if the remaining (not 0) hotdogs in inventory is sufficient for the buyer. If there is a buy when there are 0 hotdogs in inventory, the class should state that it is out of hotdogs to the buyer. Develop a method called toString() for the hotdog stands class that displays a String object all the Hotdog stand object member values and states in a well formatted manner. The main class must include driver code that tests all the logic paths of the hot stand class. Do not use JPanel or interactive prompts, unit test the hot class by coding in test scenarios in the main program which will act as a driver. LAB 01 Reminder Read in the Assignment - Labs section for this course on Canvas live item named Required Programming Best Practices document to receive full credit. If you don't w ant to deal with hotdogs, you may choose another item to vendor, such as pizza, coffee, custard, Buffalo wings, pretzels, baklava, hamburgers, brats, chili cups, turkey legs, snow cones, energy drinks... etc. Your class names must should reflect what it is you want to sell
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
