GetAFreelancer.com
 
Find projectsSearch
Sign Up | Log in | Top Rated Users | Browse projects | Post Project | RSS feeds | Articles
 

counting the number of times each character occurs in a .txt file

   Click here to post similar project

counting the number of times each character occurs in a .txt file is project number 235145 posted at GetAFreelancer.com. Click here to post your own project.

Closed
(Selected Service Provider anuiz)
Status: Closed
Budget: $30-250
Created: 03/08/2008 at 21:03 EST
Bidding Ends: 03/09/2008 at 21:03 EDT
Project Creator: cseale03 View PM Post PM
Buyer Rating: 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(6 reviews)
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.
If you use Linux and cannot open the word document, then go to http://i129.photobucket.com/albums/p226/caseale/outputfile.jpg
The picture of how the final output should look is there.
Additional files submitted:
output_format.doc
data1.txt
Report violation
Job Type:
  • C/C++
Database: (I don't know)
Operating system: MS Windows
Bid count: 6
Average bid: $ 30

 

Related project
 
Nonpublic project #303332 Featured Nonpublic
login to view
 

FREE Trial project for new buyers!

 

View Project Message Board     Post Message on Project Message Board
Messages Posted: 0

If you are the project creator or one of the bidders Log in as project creator or bidder for more options

Bid on This Project

Service Providers PMB Bid Delivery Within Time of Bid Provider Rating
diy286
View PM Post PM
$ 30 0 days 03-08-2008 23:14 9.91/109.91/109.91/109.91/109.91/109.91/109.91/109.91/109.91/109.91/10
(43 reviews)
Dear sir, I am very interested in your project, Please see PMB for more details. Thanks. Best Regards.
BoXoft
View PM Post PM
$ 30 1 day 03-08-2008 21:44 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(9 reviews)
I can do it well. Please check the PM.
anuiz
View PM Post PM
$ 30 1 day 03-08-2008 21:36 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(5 reviews)
I can do this in minutes and 'm happy to help you.
sanjoy2prosenjit
View PM Post PM
$ 30 1 day 03-08-2008 23:09 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(2 reviews)
Hello, it is a easy project. According to your requirement, I will use two function and name space std. I am sure i can do this project asap, as i an expert in c,c++. You can give me the project. Thanks.
SimStim
View PM Post PM
$ 30 0 days 03-08-2008 22:30 5.50/105.50/105.50/105.50/105.50/105.50/105.50/105.50/105.50/105.50/10
(2 reviews)
Well, my definition of Vector is a mono-dimensional array. So, if you could specify what exactly is not allowed, you can consider it done.
sharanrulez
View PM Post PM
$ 30 0 days 03-08-2008 22:57 (No Feedback Yet)
Sir, I'm a computer science engineer and can get u the job done perfectly in a few minutes for $20.
Bid on This Project

 

[ Secure Forms ] [ Website Design ] [ View All Projects ]

What is GetAFreelancer.com? ( Read about the company )

GetAFreelancer.com helps webmasters, web designers, programmers, software developers and business owners to develop their projects. Our mission is to find the best possible freelance workers at the best possible price. If you never tried to contract work to another part of the world you have your chance today. Sign up free! It's easy, fun and very affordable to outsource your project with our site. Our escrow feature is developed to protect both buyers and sellers. Outsource projects and save a lot of money. Getting affordable freelance work, freelance programming and custom web design done for your website has never been easier.

Outsourcing is the process of subcontracting network operations and support to an organization outside your own company. Try it free today! Outsourcing is hiring an outside organization to perform services such as information processing and applications development. We have thousands of satisfied clients around the world. Would you like to outsource your next project? Would you like to make money as a freelancer? Click Sign Up to start! GetAFreelancer.com is one of the largest sites of its kind. We have earned a good reputation and you can trust us. Bookmark our homepage to make sure you don't forget about our website next time you need to develop an IT project for yourself or your company.

Find Webmaster Resources and Webmaster Forum. Take a look at Search Engine Submission.