Prompt the user for the category and name of the item

Assignment Help Management Information Sys
Reference no: EM132101910

Pop's Pie Shop wants you to help computerize its ever-changing menu. Here's an example of the delicious items that Pop's has to offer:

Here is what we are starting with today:

Savory:

Savory Mince & Cheese

Pork & Peach

BBQ C

urried Lamb & Spinach

Chicken & Kumara

Smoked Salmon, Leek & Potato

Thai Butternut Curry (vegan)

Sausage Roll

Spinach & Cheese

Roll Beef Pasty

Sweet Pie by the slice:

Banoffee

Blueberry Apple (vegan)

Buttermilk & Raspberry

Chocolate Chess

Chocolate Raspberry Cream

Coconut Cream

Dutch Apple

Lemon Meringue

Mock Turtle (vegan)

Sweet Treats:

Anzac Biscuit

Caramel Blondie

Cherry Pecan Brownie

Chocolate Peppermint Cookie

Lamington

Lemon Coconut Cake

Mellowpuff

Yo Yo

As you can see, there are three categories in the menu each containing food items. A single, basic food item has a name, a designation if it's suitable for vegan or other special diets, and a category (Savory, Sweet Pie, or Sweet Treat).

In addition, Pop's pies are so "pop"ular (get it?) that he would like a field to indicate if a Food Item is available or not, so that he can update the menu when an item is sold out. What data types comprise the fields in a FoodItem class?

The other class that needs to be designed represents the menu of the day at Pop's Pie Shop. The name of the Java class is Menu. The important characteristics of a Menu for Pop's application are the three collections of FoodItems and the date. The menu to be displayed to customers is a list of all the available food items in each category, so the Menu class needs a method that will return a string representation of the current menu that includes the date.

The PieShop class contains the main method and is responsible for reading in the text file that contains the list of food items for the menu. The name of the file is to be read as a command line argument.

(Failure to use command line arguments will result in a severe point penalty.) The food items are listed in the text file one item per line. The line is formatted with the name, menu category, special diet information, and availability all separated by a colon (:). For example:

Savory Mince & Cheese : savory : none : y

Blueberry Apple : sweet pie : vegan : y

Mellowpuff : sweet treat : none : n

The program will create FoodItem objects from the data in the text files and populate the day's menu with those FoodItems that are available. (Failure to create these objects in your program will greatly reduce the number of points that you earn for the project.)

Once this has been done, the program will display today's menu with a header, the current date, and the three categories of FoodItems listed separately. After displaying the menu for the day, the program will provide the following options:

1 - Update an existing item on the menu

2 - Save the menu

3 - Close the program

For the first option, the program will prompt the user for the category and name of the item. If the item is included in the menu, then provide the option to change it from available to unavailable or from unavailable to available. Option 2 will save the current menu, including any changes made via option 1, to a file named menu.out.

Please use Drjava for this program. As long as the program runs correctly, extra work doesn't need to be added. Please make it as elementary as possible. I'd just love to see your programming code from mine to learn more. Thank you so much!

Reference no: EM132101910

Questions Cloud

Concession stands at sporting events : A national food service runs concession stands at sporting events. Its marketing research department has found that at a price
Create a key using the key exchange : Create a key using the key exchange. They agree upon prime modulo p. and Hellman y, p and primitive root g Bob privately choose integers.
Write the corresponding policy statement : Is it necessary to include standards, baselines, guidelines or procedures in this policy document? Explain your answer.
Create a style rule for the figure element : Each of the popup boxes has been placed within a figure box. Initially, these popup boxes should be clipped so that only the number is shown.
Prompt the user for the category and name of the item : Prompt the user for the category and name of the item. If the item is included in the menu, then provide the option to change.
Which smartphone would you buy if you primarily care : Which smartphone would you buy if you primarily care about battery life and run this app all the time (both smartphones have the same battery)?
Create a new java application that has the given method : Write a method reverseChar() to print a sentence in reverse order. Use a Stack to reverse each character.
Calculate the minimum clock rate that must be achieved : Calculate the minimum clock rate that must be achieved, assuming that the time spent on I/O is negligible.
Describe the disadvantages associated with this design : A popular word processor previously contained an anthropomorphic character to assist users as they worked in the program.

Reviews

Write a Review

Management Information Sys Questions & Answers

  Find appropriate cases on the web

Find appropriate cases on the Web

  What are the reporting options available in sap erp

What are the reporting options available in SAP ERP? How do they differ from one another? How do they differ from the reporting options available in SAP BW?

  Find techniques hacker would use to steal organization data

You have been asked to help secure the information system and users against hacking attempts. Complete the following: Take this opportunity to list 2 different approaches and techniques a hacker would use to steal the organization's data

  Advantages of single customer service center

List the advantages of a single customer service center for RR Communications

  Iso 9000 and the supply chaindescribe iso 9000 and its role

iso 9000 and the supply chaindescribe iso 9000 and its role in supply chains. search the internet for an example of a

  Why does information security use a top-down approach

Describe the risk assessment process and how to design response plans. Why does information security use a top-down approach?

  Security controls that relate to these issues

Using NIST Special Publication 800-53 select at least 4 security controls that relate to these issues and describe how these controls enhance the security posture or facilitates the secure implementation of these requirements

  Discuss how it facilitates the budgeting process

Develop a technology roadmap for your organization. Be sure to describe how you would apply each of the activities listed in your textbook to your organization Explain why information management is such an important part of an organization's succes..

  How would you summarize this article to articulate security

You are the newly hired IT Security Manager of a medium size business of 400 employees. You have 6 personnel in your security department. Your CIO just asked you for a 3 page summary of your Security Strategy for the company. How would you summ..

  Explain role of the mis department

Role of the MIS Department - discuss what information each of the employees you listed need in his or her job?

  Security needs of the companys users and resources

A 500-person utility company with 2 locations requires a secure and efficient directory infrastructure to support the authentication and security needs of the company's users and resources

  Evaluate the corporate operations and functions

Evaluate the corporate operations and functions according to their needs and requirements and setup a plan mentioning most critical to less critical operations to run your corporate function properly to satisfy its customers. Coming up with a com..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd