Project Detail

counting occurrences of characters from a .txt file  

counting occurrences of characters from a .txt file is project number 235123
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status: Cancelled

Selected Providers: -

Budget: $30-250

Created: 03/08/2008 at 18:45 EST

Bid Count: 2

Average Bid:
$ 32

03/09/2008 at 18:45 EDT

Project Creator: cseale03
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (6 reviews)

Bid On This Project
 

Description

This project will “analyze” the input data (a file of characters) and count the number of each character in the file.

You have one input file, data.txt. Make sure that your file has a newline character after the last (visible) character entered in each file. The file will be attached to this project bid.

Each file contains text. You do not know how many characters appear in each file, but any character listed in the ASCII table is possible. (You can ignore space characters.)
At the end of the file, your program should show the 5 most common characters in the file, and the count and percentages of those 5 characters. This output should be formatted in columns, as shown in the sample output below. Also, list the “printing” characters which were never used in the file. (“Printing characters” are numbered from 33 to 126 in the ASCII table. You should ignore other characters.)This project requires you to use at least 2 functions in addition to the main() function.

If you could use “casting” variables from char to int (“int(ch)”) or from int to char (“char(x)” that would be great!

you can only use:
if statements, loops, nested loops, functions,arrays, and switch statements.
CANNOT USE STRINGS,VECTORS,ETC.

the headers should only be #include<iostream>, #include<fstream>, using namespace std; Then your 2 function declarations. Then the main(). Then the 2 function definitions.

The way the output should look is attached and the txt file is also.



Additional files submitted:
output format.docx
data1.txt

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

30

4 days

03-08-2008 19:02 EST

Sir We ready to start this job thanks

help

 

33

1 day

03-08-2008 18:53 EST

Pls check PM, thanks

help


    Bid on this Project