Find Jobs
Hire Freelancers

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

$30-250 USD

进行中
已发布大约 16 年前

$30-250 USD

货到付款
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 [login to view URL] The picture of how the final output should look is there.
项目 ID: 235145

关于此项目

6提案
远程项目
活跃16 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
I can do this in minutes and 'm happy to help you.
$30 USD 在1天之内
5.0 (3条评论)
2.0
2.0
6威客以平均价$30 USD来参与此工作竞价
用户头像
Dear sir, I am very interested in your project, Please see PMB for more details. Thanks. Best Regards.
$30 USD 在0天之内
5.0 (55条评论)
5.6
5.6
用户头像
I can do it well. Please check the PM.
$30 USD 在1天之内
5.0 (4条评论)
3.0
3.0
用户头像
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.
$30 USD 在0天之内
0.0 (0条评论)
0.0
0.0
用户头像
Sir, I'm a computer science engineer and can get u the job done perfectly in a few minutes for $20.
$30 USD 在0天之内
0.0 (0条评论)
0.0
0.0
用户头像
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.
$30 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Tuscaloosa, United States
5.0
6
会员自3月 8, 2008起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。