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

Terminado
Publicado hace alrededor de 8 años

$10-30 USD

Pagado a la entrega
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 del proyecto: 10043851

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 8 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
It is easy assignment, can be done in few hours.
$23 USD en 1 día
4,9 (946 comentarios)
7,1
7,1
3 freelancers están ofertando un promedio de $32 USD por este trabajo
Avatar del usuario
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 en 1 día
4,8 (20 comentarios)
6,3
6,3
Avatar del usuario
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 en 1 día
4,8 (38 comentarios)
4,9
4,9

Sobre este cliente

Bandera de UNITED STATES
northridge, United States
5,0
11
Forma de pago verificada
Miembro desde nov 10, 2015

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.