Question
Please help me to code it using JAVA, I promise to like it ! A_to-do_list_application. Keep_track_of_things_to_do, cross_things_off. Possible_features_include different_views_showing_all_items, or_just_completed_items, or_only_outstanding_items, or_lists_sorted_in_different_ways. Make_at_least_1_package: ui Make_at_least_one_class_named
A_to-do_list_application. Keep_track_of_things_to_do, cross_things_off. Possible_features_include different_views_showing_all_items, or_just_completed_items, or_only_outstanding_items, or_lists_sorted_in_different_ways.
- Make_at_least_1_package: ui
- Make_at_least_one_class_named appropriately_for_your_application
- Make_a_main_method_that_gets_things_going
- Construct_an_object (Note: this_should_probably_happen_within_your_main_method)
- Declare_a_field_and_use_it (not_necessarily_at_the_same_time!)
- Pass_a_parameter
- Use_a_local_variable
- Return_a_value_and_use_it
- Use_a_condition, AND_a_loop
- Make_a_call_graph_from_your_main_method
- Draw_the_flowchart_for_a_method_with_a_condition_or_a_loop
- Get_user_input, and_reflect_it_back_to_the user
- Use_the_debugger
If_you are_making a_To _Do _list_application, you_might_make_the_main_interaction_loop_that_asks: "what_would_you_like_to_do [1] add_a_to_do_list_item, [2] cross_off_an_item [3] show_all_the_items"
if_the_user_types_in "1", they_would_be_asked "Enter_the_item_text", and_then_the_text_would_be_saved.
if_the_user_types_in "2", they could_be shown_a_list_of_items_from_the_todo_list (you'll_want_to_make_a_list_of_some_kind!), with_individual_numbers, and_asked "which_item_would_you_like_to_cross_off". The_user_would_then_enter_the_number_of_the_item, and_that_item_would_be_moved_from_the_todo_list_to_the_crossedoff_list (two_lists!!)
if_the_user_types "3", the_list_of_items_would_be_printed, along_with_their_status (crossed_off, or_to_do)
All this_can_happen_in_just_one_class
DATA_ABSTRACTION: The_class_might_be Item (the_thing_to_do), and_it_may_have_some_fields_like_name , status (done/not_done), and dueDate.
Instead_of_just_calling_everything_from_Main, in_the_ui_package, make_a_new_package_called "model", (move_your_Item_class_into_there), and_make_a_second_class "ToDoList". From_your_ui/Main.main construct_the_new ToDoList, and_get_the_program_going_from_there. Put_all_the_code_that_was_once_in Main.main into_a_new_method (ToDoList.run()), and_move_all_the_helper_methods_from_the original_class_into_your ToDoList class.
TEST_THE_DATA_ABSTRACTION: You_would_also_include_a_class "TestToDoList" that_tests_the ToDoList class methods, and_a TestItem class, that_has_tests_of_the Item methods, ensuring_they_are_behaving_properly.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started