Write the program with indentation and formatting style

Assignment Help C/C++ Programming
Reference no: EM131132089

Problem: Write a C++ program named acronym.cpp. (You may want to wait until after Thursday's closed lab to work on this problem)

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.

Your program is required to have at least one user-define function. This function takes one string as input and returns the acronym corresponding to that string.

Download the data file from the course web page, and place the file in the project directory. Or, you can copy it into your project directory with command:

cp ~cen/data/Acronym.dat codelite-workspace-name/project-name/

Documentation and program indentation and formatting

• Write the program with indentation and formatting style as discussed in class, and given in the program requirement:

https://www.cs.mtsu.edu/~cen/2170/private/ola/programrequirements.pdf

• Write documentation for your programs as discussed in class and given in the program requirement.

Electronically submit the two programs in D2L Dropbox. You are only required to submit the two source files: perfect.cpp and acronym.cpp.

Reference no: EM131132089

Questions Cloud

Leone corporation had the following transactions during : Mar. 2 Issued 5,000 shares of $5 par value common stock to attorneys in payment of a bill for $30,000 for services provided in helping the company to incorporate.
Many economists and accountants argue that expensing : Many economists and accountants argue that expensing of options is not necessary because the dilutive impact of options is accounted for by the increased number of shares. Do you agree with them?
List the archaeological evidence : List the archaeological evidence for the connections between Osiris and the fact that the Egyptians mummified their dead.
What obstacles might you anticipate : Post an analysis of what you would have done to turn a case of short-term thinking into strategic thinking and management, and what you would need to do to get others to be willing to follow your lead on this shift in thinking and managing. What o..
Write the program with indentation and formatting style : Write the program with indentation and formatting style as discussed in class, and given in the program requirement. Write documentation for your programs as discussed in class and given in the program requirement.
What basis can hr leadership provide a logical rationale : Write specific criteria (4-5) that could be used to assess potential opportunities that warrant change in the HR Operating Plan brought to HR by the CEO and provide rationale for your assessment criteria selection, e.g., alignment with the busines..
Prepare the entry for the issuance under the following : The stock had a par value of $5 per share and was issued to attorneys for services during incorporation valued at $52,000.
Evaluate the components of the course project exercise : State one important takeaway you learned from the organization that you examined for your Course Project.  Evaluate the components of the Course Project exercise. Explain whether you feel this Course Project would be applicable in the real world for ..
What effect would the fact that the price of carlisle stock : Ignoring any brokerage fees or dividends, what profit or loss will Ed make if he buys the option and the lowest price of Carlisle stock during the 90 days is $46, $44, $40, and $35? What effect would the fact that the price of Carlisle's stock slowly..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a text adventure game that uses pointers

Create a text adventure game that uses pointers. You have a rich, eccentric Uncle Billy who is soon to be deceased.

  Compcets of office apps

Cell Reference is the location of a cell. Cells are located in columns marked by letters, and rows are marked by numbers. Example to reference a cell in column D row 10 you would reference it as D10.

  Using an appropriatenbspcnbspsyntax write the code required

using an appropriatenbspcnbspsyntax write the code required to analyse and display the data as per the problem

  Event model for marketing purposes

Many web sites make vigorous (over) use of many of the events in the dynamic HTML event model for marketing purposes. In some cases, one URL call may open 10 or more other Windows.

  What problem arises as the lengths of the time slices

What problem arises as the lengths of the time slices in a multiprogramming system are made shorter and shorter?

  Write function to find whether number is perfect number

Write down the function perfect which determines whether number is perfect number or not. This function must receive number and return true if number is perfect.

  Write a function named totamt

Write a function named totamt() that uses four parameters named quarters, dimes, nickels, and pennies, which represent the number of each of these coins in a piggybank.

  Write a function int frequency

Write a function int frequency (int theArray [ ], int n, int x) that counts the number of times the item x appears among the first n elements of theArray and returns that count as the frequency of x in theArray. Use integers for everything!

  Prepare a test plan for the test of option code field

If the customer did not make any room reservation options, the front desk clerks should enter "none"; the field should not be blank. The valid option codes are four-character alphabetic codes and should be matched against a list of valid codes. Pr..

  Program to output value of tenth component of array

Write a C++ statements to perform the following: Set value of fourth component of array alpha to three times  value of eight component minus 57.

  Information about different automobile parts

While entering the information about different automobile parts in the application, the database administrator enters the prices of some parts incorrectly. The prices are swapped between various parts.

  Write a program that prints minimax and maximin of a matrix

The optimal strategies are possible when these two values are equal. Write a program that prints the minimax and the maximin of a given matrix.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd