Question
Write a C application to replace a set of Proper Nouns with its abbreviations and write the output to another file. The first occurrence must
Write a C application to replace a set of Proper Nouns with its abbreviations and write the output to another file. The first occurrence must be retained but abbreviation should be added inside a bracket. You can maintain a dictionary is maintained for the look-up purpose. The following example illustrate the requirement. Let us say that we have a document named text-input.txt with the following content: The World Health Organization is a specialized agency of the United Nations that is concerned with international public health. In 1947 the World Health Organization established an epidemiological information service via telex, and by 1950 a mass tuberculosis inoculation drive using the Bacillus CalmetteGuerin vaccine was under way. Deputy Minister of Health for the Union of Soviet Socialist Republics, called on the World Health Assembly to undertake a global initiative to eradicate smallpox. United Nation manages World Health Organization. Union of Soviet Socialist Republics has a regional office of World Health organization. Abbrevation.txt for look may have the following content: World Health Organization, WHO United Nations, UN World Health Assembly, WHA Bacillus CalmetteGuerin, BCG Union of Soviet Socialist Republics, USSR Output Exptected: The World Health Organization (WHO) is a specialized agency of the United Nations (UN) that is concerned with international public health. In 1947 the WHO established an epidemiological information service via telex, and by 1950 a mass tuberculosis inoculation drive using the Bacillus CalmetteGuerin (BCG) vaccine was under way. Deputy Minister of Health for the Union of Soviet Socialist Republics (USSR), called on the World Health Assembly (WHA) to undertake a global initiative to eradicate smallpox. UN manages WHO. USSR has a regional office of World Health organization.
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