Write a c program to find the count of words

Assignment Help Computer Engineering
Reference no: EM132196185

Write a C program to find the count of words and optionally the longest and or shortest words in a string input by the user or coming from a file.

If there is no filename the user would enter the string right after running the command. You must use getopt to parse the command line.

Usage: words [l] [s] [filename]

The l flag means to find the longest and the s option means to find the shortest. You may have both or one of the flags. Output should be well formatted and easy to read.

The source file should have your name & PantherID included in it and it should have the affirmation of originality.

Code should be nicely indented and commented.
Create a simple Makefile to compile your program into an executable called words.

You should submit the source code and your Makefile. The Makefile should be called Makefile with no extension. I should be able to type make at the command line to compile your program. Do not include any other files or folders in the zipfile. This applies even if you are a Mac user.

Reference no: EM132196185

Questions Cloud

Create a 2-d array that are populated by random numbers : Write a C++ program that creates a 2-dimensional array of 10x5 elements that are populated by random numbers between 0 and 49.
Women in pre-modern christian societies like : What were the lives like for women in Pre-Modern Christian Societies like?
Find the maximum of an integral data set : The program will first ask the user to input the number of data values in the set and finally should display a pointer that points to the maximum value.
Write a c program that detects and reports on areas : You should preprocess your data to eliminate noise in following manner: for every negative value you encounter, average the (maximum of) 8 squares around it.
Write a c program to find the count of words : Write a C program to find the count of words and optionally the longest and or shortest words in a string input by the user or coming from a file.
Explain washington legacy to independence : Analyze the reasons why Congress selected Washington as commander-in-chief. Explain Washington's legacy to independence.
Write a c program that fills a two dimensional array element : Write a C program that fills a two dimensional array element with the character 'O' (capital Oh) when the sum of the row and column index.
Make a program to prints out the even integers : Write a c++ program that prints out the even integers between 2 and 100.
Review given problem on health care professionals : Meaningful use was designed through standards governing the manner in which health care records are utilized by health care professionals.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Define what is the difference between an insider attack

How would we determine what assets we have, what needs to be protected, and how to protect them

  How can you make sure that the proper indexes have been put

As an analyst, how can you make sure that the proper indexes have been put in place so that users are not waiting for weeks to receive the answers to their questions?

  Identify topics you did not understand or successfully

describe how you improved your knowledge skills abilities and yourself in this session through this course.evaluate the

  Find suitable black-box test data for each of given function

Find suitable black-box test data for each of the function that returns the largest of its three parameters, which are floating-point numbers.

  How you motivate team members to meet projects objectives

Obviously, the project team will not be in good spirits. How will you motivate team members to meet the project's objectives?

  What would be the new power level in milliwatts

What would be the new power level in milliwatts and dBms if you double the power four times. How does this impact the network?

  Briefly describe the action of the examine on instruction

Briefly describe the action of the Examine OFF instruction.

  Display the sum of each row

Display the sum of each row. Compare this to the value obtained using the sum command Using a while loop, add all of the numbers in the array.

  Provide an overview of how computing devices are used

Provide an overview of how computing devices are used in crimes of today and how these crimes can affect a companys data and information.

  Find out the retail price for each product

A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product 2, $4.50; product 3, $9.98; product 4, $4.49; product 5, $6.87.

  Describe how it applies to the realm of data communication

Write one to two paragraphs on each topic below, and describe how it applies to the realm of data communication. Also discuss what type of damage these computer infections can do to data in a computer.

  Write a program that asks the user for a password

Write a program that asks the user for a password and verifies that it meets the stated criteria.

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