Compute the number of words

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

Project-

1- Rewrite your C++ program in Project 1 to compute the number of words, average length and lengths of the words in the text file words.txt - the input file. Each line in the input file contains exactly one word. The words in the input file are sorted lexicographically in dictionary style. Use an array histogram_words of constant length to compute and store the lengths of the words in the input file. Write the computed statistics into another text file words_statistics.txt - the output file. The output file will contain a line (or lines) at the beginning of the file explaining the output. This is followed by the computed word length statistics.

2- Amend your program to compute the total number of letters and the probability of letters [a - z] in the input file. Use an array histogram_letters of constant length to compute and store the probability of letters in the input file. Write the computed statistics into the output file following the word length statistics. Compare the computed letter probabilities to published data on the Web.

3- The C++ program will be comprised of a main function and a function words_statistics that computes and outputs the computed statistics. The program will include all necessary checks and assertions.

4- Submit a printed report including the full, complete, and documented C++ program and a print-out of the output file. Use formatting instructions to make the layout neat and easy to read.

Attachment:- words.rar

Reference no: EM131189342

Questions Cloud

The firms product market is considered stable : Julie Smith, an analyst with ABC Company, has collected the following data about the firm: The firm’s product market is considered stable, and the firm expects no growth, and all earnings are paid out as dividends. Calculate the firm’s earning per sh..
Discuss the logistical implications : Discuss the logistical implications associated with the increased emphasis on the convenience associated with a family's shopping experience.
How many calories did she take in from snacks : How many calories did she take in from snacks?
Maximum price the investor should pay for the stock today : An investor plans to buy a common stock and hold it for two years. The investor expects to receive $1.5 in dividend a year and $26 from the sales of the stock at the end of year 2. If the investor wants a 15% return (compound annually), the maximum p..
Compute the number of words : Rewrite your C++ program in Project 1 to compute the number of words, average length and lengths of the words in the text file words.txt - the input file
What is the firms cost of debt : Company A's 10 percent coupon rate, quarterly payment, $1,000 par value bond, which matures in 10 years, currently sells at a price of $950. The company's tax rate is 38 percent. Based on the nominal interest rate, what is the firm's cost of debt?
How a customer service representative craft his or her job : How might a customer service representative who works at the call center for consumer electronics company craft his or her job?
Firm to achieve targeted weighted average cost of capital : Central Systems, Inc. desires a weighted average cost of capital of 7 percent. The firm has an after-tax cost of debt of 5 percent and a cost of equity of 10 percent. What debt-equity ratio is needed for the firm to achieve its targeted weighted aver..
Describe the steps in the risk management process : Briefly describe the steps in the risk management process that should be followed by the risk manager of City Bus.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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