79% Zain JO 4G 11:32 PM Reader View Available Write a program that finds the number of times a specific word appears in

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

79% Zain JO 4G 11:32 PM Reader View Available Write a program that finds the number of times a specific word appears in

Post by answerhappygod »

79 Zain Jo 4g 11 32 Pm Reader View Available Write A Program That Finds The Number Of Times A Specific Word Appears In 1
79 Zain Jo 4g 11 32 Pm Reader View Available Write A Program That Finds The Number Of Times A Specific Word Appears In 1 (62.81 KiB) Viewed 23 times
79 Zain Jo 4g 11 32 Pm Reader View Available Write A Program That Finds The Number Of Times A Specific Word Appears In 2
79 Zain Jo 4g 11 32 Pm Reader View Available Write A Program That Finds The Number Of Times A Specific Word Appears In 2 (29.2 KiB) Viewed 23 times
79% Zain JO 4G 11:32 PM Reader View Available Write a program that finds the number of times a specific word appears in a text file. The program should accept the following inputs from the user: • The word that you are looking for. The word length should be 3 or more otherwise the program should print Too short. The word should not have a space character. • The name of the file that contains the text • The type of the search o o for case senstive search • 1 for case insensitive search For any other input the program should output Invalid Note that the word should be preceded and succeeded by spaces. Note: Assume for all sample test cases that thecontent of F1.txt is: C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C programming language, or "C with Classes". The language has expanded significantly over time, and modern C++ now has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation. It is almost always implemented as a compiled language, and many vendors provide c++ compilers, including the Free Software Foundation, LLVM, Microsoft, Intel, Oracle, and IBM, so it is available on many platforms.

Zain JO 4G @ 79% 11:32 PM Not Secure-cpe-pc.ju.edu.jo 1/0 Program Input: • A single line that takes in the word that you are searching for • A single line that takes in the name of the file that contains the text • A single line that takes in the type of the search Program Output: • A single line that outputs either the number of occurences of the word in the textfile. Sample Testcase 0: Input: C++ F1.txt 1 Output: 3
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply