Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Make the following code according to the instructions within it. The main part you should remember to incorporate in you code is: You are required

Make the following code according to the instructions within it. The main part you should remember to incorporate in you code is: You are required to write a value-returning function to convert one line of characters into its corresponding acronym. This function needs to be called within a loop that reads lines of characters from the data file one line at a time, and performs the acronym conversion. You code should also have the arrow that connects the string and acronym. Post a screenshot of your source file and output as well.

image text in transcribed

Here is the Acronym.dat file:

image text in transcribed

Problem 2: Write a C++ program named acronym.cpp. The acronym for a given string is formed by combining the first letters from a series of words, as in this example: "self contained underwater breathing apparatus" > "SCUBA". Your program generates and displays the acronyms for each of the strings in a data file named Acronym.dat". The output of your program should be of the following format: Self contained underwater breathing apparatus SCUBA White anglo saxon protestant WASP North Atlantic Treaty Organization NATO The strings in the data file may have mixed upper and lower letters. You may assume that no hyphen and underscore, and no punctuation marks is present in the data file. The acronyms generated should all be in upper case letters. You are required to write a value-returning function to convert one line of characters into its corresponding acronym. This function needs to be called within a loop that reads lines of characters from the data file one line at a time, and performs the acronym conversion. Acronym - Notepad File Edit Format View Help Self contained underwater breathing apparatus White anglo saxon protestant North Atlantic Treaty Organization Defense Advanced Research Projects Agency Laugh Out Loud By the way Best Friends Forever I Love You In my humble opinion Oh my god Wicked Evil Grin Wish you were here National Science Foundation National Institute Health

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

3. Describe the communicative power of group affiliations

Answered: 1 week ago