+ 1

How do I work this out????

i. create a readable file that has a total of 100 words. The program should start by counting all the words in a given file and display the output i.e. there are 100 words in this file. ii. The program will pick any 20 words from a file add the words to array and apply a sorting algorithm in ascending or descending order and perform the following functions; a. Write the 20 sorted words to a file, b. A words are to be stored in an array and sorted using a bubble sort. c. A sorted list of words will be saved to a file, and displayed to the user to view iii. The user should be able to enter a word and be able to search for the word in sorted array. iv. Implement your program with a GUI v. Your programming method should be Object Oriented i.e. good programming practices such as separation of classes that performs tasks of sorting words from classes that runs your code. vi. Apply OO principles such as abstraction, inheritance, polymorphism and encapsulation .

20th May 2022, 9:22 AM
SgeniusÂź
3 Answers
+ 2
Go through it step by step, break it down into smaller problems. If you want to revise the basics, check on the sololearn Java course.
20th May 2022, 9:58 AM
Lisa
Lisa - avatar
+ 1
I would also recommend this be done in the IntelliJ IDE since it seems like you need be working with different file and it wants you to use a GUI (Graphical User Interface). Also, make sure that your classes aren't in the same files because that would be bad practice. For help on OOP principles, you can watch this video: https://youtu.be/SiBw7os-_zI And like Lisa , please make sure you're not trying to tackle everything at once. Write some pseudocode first to help with break down the problems.
20th May 2022, 10:40 AM
Justice
Justice - avatar
0
SgeniusÂź , you can write your code first here on Sololearn Playground without GUI and ask here for help if you need with the link to your code.
20th May 2022, 11:08 AM
JaScript
JaScript - avatar