Find Jobs
Hire Freelancers

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

$10-30 USD

Completed
Posted almost 7 years ago

$10-30 USD

Paid on delivery
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. If necessary (not necessary using mingw.), include the flag "-lm" when you compile, to be able to utilize the math library 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
Project ID: 13665560

About the project

13 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I have good knowledge in below mentioned skills by you. I also have some certifications in Java and c programming. I can share some of demos with you if you want for better understanding. Currently I'm working on a banking project in an IT company using Java, jsp/jsf, hibernate, spring, software architecture and database programming. And most importantly, you will get your project done before the deadline. You can see some of my previous works as well: [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL]
$45 USD in 4 days
4.7 (26 reviews)
4.4
4.4
13 freelancers are bidding on average $40 USD for this job
User Avatar
ready to deliver asap
$35 USD in 3 days
4.9 (71 reviews)
6.3
6.3
User Avatar
Hello. How are you today. I have read and understood the project. I have strong knowledge in Data structures and Algorithms. And I'm expert in Java ,C/C++,C#, Python ,PHP etc. I'm interested this project. So, firstly I want to discuss with you about this project. Then I'll be happy. I wait for your good reply. Thanks.
$40 USD in 1 day
4.9 (88 reviews)
5.7
5.7
User Avatar
I, Jignesh Lakhani completed my masters from IIT Roorkee in Computer Engineering. I am having very good knowledge of C, C++, Java, Algorithm, Data Structure. I am having strong analytical power. I will complete your project before deadline I am looking forward to discussing with you about this job post. Please feel free to contact me. Respectfully, Jignesh
$35 USD in 5 days
5.0 (7 reviews)
4.4
4.4
User Avatar
Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. Here is the reason. Why you should pick me? a) I am a very expert and have the same kind of experience of 5 years. b) I work very hard (16+ hours a day and 7 days a week) and also very fast so... it will be done very soon than most of the other providers c) And most important part is my policy: "I will give you (to my client) life time support (as long as you keep relation with me). And fix any bugs/problem without any cost. So, don't ever worry about me” Please sir, leave a reply ASAP, as I am waiting for your kind reply
$70 USD in 1 day
5.0 (6 reviews)
4.0
4.0
User Avatar
I have a very good experience with C and Java. I'm sure I can finish and deliver this task within deadline
$15 USD in 1 day
5.0 (2 reviews)
1.4
1.4
User Avatar
Dear client we can provide complete solution on your project as we have executed it before. Our commitment lies in honesty, integrity, ethical code of conduct, efficiency and speedy respond, we love to work hard to meet the deadlines and take the project to the next level. Do not hesitate to contact us to discuss your project in details and determine how our skills will positively contribute to you. Let our service makes a positive and lasting impression.
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, Thank you for posting a project here on www.freelancer.com. I have briefly checked the description, and I can deliver as per the requirements however I need us to discuss for more clarity on the details, deadline and budget as well. Please reply via the CHAT button to activate the conversation or the green AWARD button for me to start right away. If this project is no longer available/deleted you can directly hire me via this url= https://www.freelancer.com/u/VirtualBrainInc.html Thanks and welcome.
$60 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello Thank you for taking the time to review our bid! I just checked the description you have provided regarding the project and it would be a pleasure to assist you as well. I am really eager to work on your project with full dedication to give you the best output because I believe in ORIGINAL and QUALITY work since Work is my solo identity. I am highly motivated and professional so can deliver you the work within the desired timeframe Once you agree, I can start at the same time without any delay assuring top quality work. I look forward to hear from you and a long term relationship ahead. Wishing you a great day ahead. Regards, Ahmer Sohail
$18 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$40 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
northridge, United States
4.6
3
Payment method verified
Member since Nov 6, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.