Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
Write a program that can check the spelling of all words in a text file. It should prompt the user to enter a file name,
Write a program that can check the spelling of all words in a text file. It should prompt the user to enter a file name, and then read each word of that file and check whether it is contained in a word list. A full word list is stored please show output for text ---"
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let programmers write once, run anywhere (WORA), meaning that compiled Java code can run on all platforms that suport Java without the need to recompile. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying computer architecture. The syntax of Java is similar to C and C++, but has fewer low-level facilities than elther of them. The Java runtime provides dynamic capabilities (such as reflection and runtime code modification) that are typically not available in traditional compiled languages. As of 2019, Java was one of the most popular programming launguages in use according to GitHub, particularly for client-server web aplications, with a reported 9 million developers. Java was originally developed by James Gosling at Sun Microsystems. It was released in May 1995 as a core component of Sun Microsystems' Java platform. The original and reference implementation Java compilers, virtual machines, and class libraries were originally released by Sun under proprietary licenses. As of May 2007, in complience with the spacifications of the Java Community Process, Sun had relicensed most of its Java technologies under the GPL-2.0-only license. Oracle offers its own HotSpot Java Virtual Machine, however the official reference implementation is the OpenJDK JVM which is free open-source software and used by most developers and is the default JVM for almost all Linux distributions. As of September 2022, Java 19 is the latest version, while Java 17, 11 and 8 are the current long-term support (LTS) versions.
Question 2. Spell Checker Write a program that can check the speiling of all words in a text flle. It should prompt the user to enter a file name, and then read each word of that file and check whether it is contained in a word list. A full word list is stored in the file words. bxt fyou can downiosd it trom Canvas). You must not make any changes to this file. The program should find out all words that are not contained in the word list. Use the given test file test brt and find the incorrect words then write to a file named results. bxt. Important tips: you need to find a way to deal with the figlish capitalization rules. for example, the word "the" exists in the file wordi.txt but "The" doesn't. See examples below: Speing 2023 Ifrithucter, De, saeed Sample input text fle 3iriut fit - Natrpad File fodi fomat Vew ielp Mary had a I11tle lanb, its fleece was white as snow, And every wheere that Mary went, the lamb was sure to go. He followed her to school one day, that was against the rule. It made the childdren laugh and play, to seee a lamb at school. And so the teacher turned hin out, but still he 1 ingered near. And waitted patiently about, til1 Mary did appaer. And then he ran to her, and laid bles head upon her arn. As if he sald "I"m not afraid, you"11 ketp me froe all hara. " Question 2. Spell Checker Write a program that can check the speiling of all words in a text flle. It should prompt the user to enter a file name, and then read each word of that file and check whether it is contained in a word list. A full word list is stored in the file words. bxt fyou can downiosd it trom Canvas). You must not make any changes to this file. The program should find out all words that are not contained in the word list. Use the given test file test brt and find the incorrect words then write to a file named results. bxt. Important tips: you need to find a way to deal with the figlish capitalization rules. for example, the word "the" exists in the file wordi.txt but "The" doesn't. See examples below: Speing 2023 Ifrithucter, De, saeed Sample input text fle 3iriut fit - Natrpad File fodi fomat Vew ielp Mary had a I11tle lanb, its fleece was white as snow, And every wheere that Mary went, the lamb was sure to go. He followed her to school one day, that was against the rule. It made the childdren laugh and play, to seee a lamb at school. And so the teacher turned hin out, but still he 1 ingered near. And waitted patiently about, til1 Mary did appaer. And then he ran to her, and laid bles head upon her arn. As if he sald "I"m not afraid, you"11 ketp me froe all hara
Write a program that can check the spelling of all words in a text file. It should prompt the user to
enter a file name, and then read each word of that file and check whether it is contained in a word
list. A full word list is stored
please show output for text
---"
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let programmers write once, run anywhere (WORA), meaning that compiled Java code can run on all platforms that suport Java without the need to recompile. Java applications are typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying computer architecture. The syntax of Java is similar to C and C++, but has fewer low-level facilities than elther of them. The Java runtime provides dynamic capabilities (such as reflection and runtime code modification) that are typically not available in traditional compiled languages. As of 2019, Java was one of the most popular programming launguages in use according to GitHub, particularly for client-server web aplications, with a reported 9 million developers. Java was originally developed by James Gosling at Sun Microsystems. It was released in May 1995 as a core component of Sun Microsystems' Java platform. The original and reference implementation Java compilers, virtual machines, and class libraries were originally released by Sun under proprietary licenses. As of May 2007, in complience with the spacifications of the Java Community Process, Sun had relicensed most of its Java technologies under the GPL-2.0-only license. Oracle offers its own HotSpot Java Virtual Machine, however the official reference implementation is the OpenJDK JVM which is free open-source software and used by most developers and is the default JVM for almost all Linux distributions. As of September 2022, Java 19 is the latest version, while Java 17, 11 and 8 are the current long-term support (LTS) versions.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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