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 global array of structures

Create a global array of structures with the following data. Each structure should store the data (Employee Table - Name, age, salary information) . Array size must be at least 10

  Repetition structure that includes a nested

Create your own While-End (or For-End) repetition structure that includes a nested if-then selection structure. You decide the theme. You should provide both the pseudocode and the flowchart of your example. Be sure to provide an overview of what ..

  What is the output of this c code

What is the output of this C code -

  Write and test c program which outputs waveform

Write and test a C program which outputs waveform which switches from 10.0 kHz with a 50% duty cycle to 25.0 kHz with a 5% duty cycle every 5 seconds.

  Develop a time delay procedure

Develop a time delay procedure for the 2.0 GHz Pentium 4 that waits for 80s.

  Ansi-c program complete assignment as follows in the

complete assignment as follows in the

  How to call a function from main

Call a function from main(), passing one value to it. Return TWO values, both the square of the number and the number to the power of three.

  C++ program that reads in two positive integers

Write a C++ program that reads in two positive integers that are 20 or fewer digits in length and outputs the sum of the two numbers.

  Write a program in c which accepts 4 number

Write a program in C which accepts 4 numbers  from the user and stores them in an array. Using the pointer mathematics it traverses the array and get the sub of all the elements. Use only one pointer variable

  Write a lexical analyzer which reads a c- program

Write a lexical analyzer which reads a C- program, strips off comments (denoted by /* comments */), and generates four symbol tablets.

  Function that will accept the three sides of a triangle

Create a function that will accept the three sides of a triangle (a, b, c) as scalar values, calculate the angles that correspond to these sides (alpha, beta, gamma), and return these angles to the function call in the script file.

  Write a c program that copies the contents of one file

write a c program that copiest the contents of one file to a destination file. This program works by first prompting the user for the name of the source file and destination file.

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