Display all items in the list and sorted by reference number

Assignment Help Computer Engineering
Reference no: EM132210197

Write a program in Java that:

1. will prompt user with a menu that contains options to:

a. Add a To-Do Item to a todo list. A To-Do Item contains:

i. An arbitrary reference number (4; 44,004; etc.)

ii. A text description of the item ("Pick up dry cleaning", etc.)

iii. A priority level (1, 2, 3, 4, or 5)

b. View an item in the list (based on its reference number)

c. Delete an item from the list (based on its reference number)

d. Display all items in the list, sorted by reference number

e. Display all items in the list, sorted by priority level

2. Program must be implemented in an object-oriented fashion. You must create 2 classes:

a. A To-Do List class that stores the list itself, and has all the methods in it needed to interact with the list. All methods for adding, deleting, sorting, and viewing the list must be implemented in this class, not in main().

b. A To-Do Item class that contains the reference number, text, and priority, and any other methods as needed.

3. You may use any method you like to actually store the data, but I would humbly suggest that an ArrayList might be a good way.

4. You must use TRY ... CATCH statements to check user input and catch common errors. YOUR PROGRAM SHOULD NOT CRASH BECAUSE OF BAD USER INPUT AT ANY POINT!

Reference no: EM132210197

Questions Cloud

Write a program to implement the 56-bit des algorithm : Write a program to implement the 56-bit DES algorithm (in ECB mode). Use your program with your chosen key to encrypt a message of 80 bytes.
How do values differ from attitudes : How do values differ from attitudes? Name some personal values that are related to purchasing decisions.
How many people to survey : The results from small groups of people are used to portray a general consensus about a population. Do you ever wonder how many people should be included.
Write a program to implement the 56-bit des algorithm : Write a program to implement the 56-bit DES algorithm (in ECB model). Use your program with your chosen key to encrypt a message of 80 bytes.
Display all items in the list and sorted by reference number : Display all items in the list, sorted by reference number. Display all items in the list, sorted by priority level.
Key management theory-principle milestones over time : Based on your readings and research, develop a timeline if key management theory/principle milestones over time
Create a business plan for the organization : Create a business plan for this organization to enter a global market in which they are not already doing business (see section 2 of Table 8.1).
How long a human user can assign dish duties among children : Write a program in java that determines how long a human user can assign dish duties among the children in a family before making a mistake.
Explain supply chain operations reference model : Explain the supply chain operations reference (SCOR) model of the construction company. Ensure that a diagram is included to support your explanation.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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