Question

is due in 2 hours so i had to repost, sorry. Create an application that allows...

is due in 2 hours so i had to repost, sorry.

Create an application that allows you to manage a task list that’s stored in a database. using java and netbeans

Console:

Task List

COMMAND MENU

view - View pending tasks

history -View completed tasks

add -Add a task

complete -Complete a task

delete -Delete a task

exit -Exit program

Command: view

1. Buy toothbrush

2. Do homework

Command: complete

Number: 2

Command: add

Description: Pay bills

Command: view

1. Buy toothbrush

2. Pay bills

Command: history

1. Get bike fixed (DONE!)

2. Call your mom (DONE!

)3. Do homework (DONE!)

Command: exitBye!

Specifications

there is adatabase file (task_list.sqlite) that contains a table that stores the tasks.

Create a class named Task that you can use to store the data for a task.

Create a class named TaskDB that contains the data access methods necessary for this application.

The method for viewing tasks should only display pending tasks.

The method for completing a task should only mark a task as completed, not delete it from the database.

The method for viewing the history should only display completed tasks.

The method for deleting a task should only allow a completed task to be deleted.

Use prepared statements.Make sure to close the database connection, prepared statement, and result set after each database operation.

For a new task, make sure the user enters a non-empty string.

If the application encounters any exceptions, it should display them on the console.

Use packages to organize the classes for this application.

/////////////////////////////////////////////////////////////////////////////////////////////

Hints

Before you can mark a task as completed, you need to retrieve all pending tasks so you can get the task id for the selected task. Similarly, before you can delete a task, you need to retrieve all completed tasks so you can get the task id for the selected task.

Because the TaskID column in the Task table is generated automatically, you don’t include it in the column list when you add a row to the table. Also, the value of the Completed column for a new row should be 0.

https://gofile.io/?c=RsoU7E

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
is due in 2 hours so i had to repost, sorry. Create an application that allows...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • Problem 1) Banking Application Consider the application domain of a banking application where you have customers...

    Problem 1) Banking Application Consider the application domain of a banking application where you have customers who have one or more accounts of type Checking or Saving. Some of the customers may also have one or more loans that they have taken from the bank. Each loan has a borrowed amount and current balance amount. Loan may be either outstanding or paid off. Questions 1. Create a Conceptual model (List Entities and note Relationships, 2- 3 Relationships only) (3 Pts)...

  • Create an application programming interface (API) using stored procedures that allows an EMR system developer to...

    Create an application programming interface (API) using stored procedures that allows an EMR system developer to work with the database without having to write SQL statements Add user authentication so that only authorized users can access the database Add some form of role-based access control to limit the functions that a user can perform. You should implement at least one use case to demonstrate this capability. For example, you may allow a physician to delete a prescription order, but not...

  • Question 2: Your task is to create a GUI application that allows a user to create a group of Hero objects s (think Lord of the Your group may be a small band of two or three Heroes or it may cons...

    Question 2: Your task is to create a GUI application that allows a user to create a group of Hero objects s (think Lord of the Your group may be a small band of two or three Heroes or it may consist of Rines or the Marvel Cinenatic Universe here) You have been given the compiled version of the dlass encapsulating a Hero and you have also been given the specification. Your job is to create a GUI application that...

  • what is the solution for this Java project? Create the an application that can use different...

    what is the solution for this Java project? Create the an application that can use different types of Linked List to manage either Checking Account or Saving Account. The application should allow users can select the type of Linked List to work on. After finishing one, users can select to work with other type of Linked List until they want to exit Singly Linked List Singly Linked List with Iterator Java Linked List with Iterator 1. 2. 3. You can...

  • in java : Create Java Application you are to create a project using our designated IDE...

    in java : Create Java Application you are to create a project using our designated IDE (which you must download to your laptop). Create the code to fulfill the requirements below. Demonstrate as stipulated below. Create a Main Application Class called AddressBookApplication (a counsole application / command line application). It should Contain a Class called Menu that contains the following methods which print out to standard output a corresponding prompt asking for related information which will be used to update...

  • Need help working through CLion: Description: For this assignment you will create a program to manage...

    Need help working through CLion: Description: For this assignment you will create a program to manage phone contacts. Your program will allow the user to add new phone contacts, display a list of all contacts, search for a specific contact by name, delete a specific contact. Your program should provide the user with a console or command line choice menu about possible actions that they can perform. The choices should be the following: 1. Display list of all contacts. 2....

  • need help Create or edit the SQL statements required to accomplish the following tasks. All columns...

    need help Create or edit the SQL statements required to accomplish the following tasks. All columns should have a column name, feel free to create appropriate aliases Use screen shots to ca evidence that each task is completed; include the SQL records before and after statements are executed, as appropriate. Include all work, even if you get errors. Paste your screen shots into a single PowerPoint file pture statements output from the statements, and views of the object explorer when...

  • Hello. can anyone solve this. i am having hard time with this. please post a solution...

    Hello. can anyone solve this. i am having hard time with this. please post a solution ASAP a) Create a class named Student. Data fields for Student class include an integer Student ID, a String name, and a double CGPA. Methods include a constructor that requires values for all data fields, as well as get and set methods for each of the data fields. b) Create an application that allows a user to enter values for an array of 15...

  • use workbench please Task 1: Create a database and name it practical2DB. (2 marks) Task 2:...

    use workbench please Task 1: Create a database and name it practical2DB. (2 marks) Task 2: Create all the four tables according to the relational scheme in Figure 1. (8 marks) Task 3: Insert 5 records to into each table. (5 marks) Task 4: Write a query to list alphabetically ordered names, addresses, and IDs of all the customers whose postcode is in (40150, 40400, 47500). (10 marks) Task 5: Delete 1 record from Products table using their primary keys....

  • In this assignment you will combine HTML, PHP, and SQL in order to create a web...

    In this assignment you will combine HTML, PHP, and SQL in order to create a web form that allows a manager to add films to the sakila database. You will also create a method to allow the manager to view a list of all films along with their related information, and a list of actors in the movies. Task 1 Create an initial HTML page titled manager.html with 2 buttons. The first button will be labeled “View Films”, and the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT