Find Jobs
Hire Freelancers

C language— To check a Hamming code for a single-bit error, and to report and correct the error

$10-30 USD

已完成
已发布大约 8 年前

$10-30 USD

货到付款
Objective: To check a Hamming code for a single-bit error, and to report and correct the error (if any). Inputs: The maximum length of a Hamming code The parity of the check bits (even=0, odd=1) The Hamming code Outputs: The erroneous bit (if any) The corrected Hamming code (if there was an error) Specification: The program checks a Hamming code for a single-bit error based on choosing from a menu of choices, where each choice calls the appropriate procedure, where the choices are: 1) Enter parameters 2) Check Hamming code 3) Quit program To use the Math library, use: “#include <math.h>” to access various functions, such as pow(base, exp), log(number), etc. To perform the XOR function, use the operator “^”. To use the String library, use: “#include <string.h>” to access various functions, such as strlen(string) which returns an integer representing the length of a string of characters. Skeleton code already posted, do not change the skeleton code Output: Error detection/correction: --------------------------- 1) Enter parameters 2) Check Hamming code 3) Quit Enter selection: 1 Enter the maximum length: 12 Enter the parity (0=even, 1=odd): 0 Error detection/correction: --------------------------- 1) Enter parameters 2) Check Hamming code 3) Quit Enter selection: 2 Enter the Hamming code: 1000110 There is an error in bit: 6 The corrected Hamming code is: 1100110 Error detection/correction: --------------------------- 1) Enter parameters 2) Check Hamming code 3) Quit Enter selection: 1 Enter the maximum length: 21 Enter the parity (0=even, 1=odd): 1 Error detection/correction: --------------------------- 1) Enter parameters 2) Check Hamming code 3) Quit Enter selection: 2 Enter the Hamming code: 1000110 There is an error in bit: 1 The corrected Hamming code is: 1000111 Error detection/correction: --------------------------- 1) Enter parameters 2) Check Hamming code 3) Quit Enter selection: 2 Enter the Hamming code: 1000111 There is no bit error Error detection/correction: --------------------------- 1) Enter parameters 2) Check Hamming code 3) Quit Enter selection: 3
项目 ID: 10043851

关于此项目

3提案
远程项目
活跃8 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
It is easy assignment, can be done in few hours.
$23 USD 在1天之内
4.9 (946条评论)
7.1
7.1
3威客以平均价$32 USD来参与此工作竞价
用户头像
Hello, Before you select a part time developer from here, take a look at fugacode.com. If you like what you see, contact us. That's all. "Why hire freelancers? when you can hire professional developers for the same cost" Regards, FUGACODE Team
$24 USD 在1天之内
4.8 (20条评论)
6.3
6.3
用户头像
Hi. i have a lot of experience in networking. I can easily help you with this project in given time. we can have a chat about it. thanks.
$50 USD 在1天之内
4.8 (38条评论)
4.9
4.9

关于客户

UNITED STATES的国旗
northridge, United States
5.0
11
付款方式已验证
会员自11月 10, 2015起

客户认证

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