Find Jobs
Hire Freelancers

A practical assignment - Reading, displaying,adding & subtracting binary numbers

$30-40 USD

Terminado
Publicado hace alrededor de 21 años

$30-40 USD

Pagado a la entrega
Hi, I am a student, and I desperately seek help with the following program. Write a complete C++ program that will enable you to read, display, add up and subtract binary numbers. The program file should contain a class Binary that stores a binary number as a character string. (consisting of digits 0 and 1) You will need one or more constructors as well as member functions to set a number (assign it to private member), get a number, and add a number to the one stored as a private variable. Functions consisting of one line, should be inline. Use initializer lists, explicit constructors and constant member functions if required. Test your program by entering two binary numbers from the keyboard, adding them, subtracting them and displaying the answer. Adding and subtracting should take place digit by digit. Use functions of the string class to accomplish this. Your function should be able to accommodate number strings of different lengths. Also add the following: · Add functions to overload the += , -=, - and + operators to accomplish the required addition and subtraction. (An answer may be negative after subtracting) · Overload operators << and >> in order to read a binary string from the keyboard and write it to the screen. These functions should be friends of the class. · Add code to the input functions to check the validity of the input strings. A binary number consists of digits 0 and 1. An error message should result if invalid characters are included. Prompt the user to reenter the string until it is correct. Save program as one file ([login to view URL] or [login to view URL]) ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. ## Platform Windows 2000,in all 3.0+ versions of Internet Explorer and Netscape". Actually It just needs to be able to compile through C++ compilers.
ID del proyecto: 2910018

Información sobre el proyecto

11 propuestas
Proyecto remoto
Activo hace 21 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
See private message.
$7 USD en 14 días
3,9 (24 comentarios)
2,8
2,8
11 freelancers están ofertando un promedio de $20 USD por este trabajo
Avatar del usuario
See private message.
$29,75 USD en 14 días
4,5 (144 comentarios)
6,0
6,0
Avatar del usuario
See private message.
$17 USD en 14 días
4,9 (138 comentarios)
5,6
5,6
Avatar del usuario
See private message.
$25,50 USD en 14 días
4,8 (34 comentarios)
4,4
4,4
Avatar del usuario
See private message.
$11,05 USD en 14 días
4,2 (111 comentarios)
4,4
4,4
Avatar del usuario
See private message.
$34 USD en 14 días
5,0 (17 comentarios)
4,0
4,0
Avatar del usuario
See private message.
$21,25 USD en 14 días
5,0 (17 comentarios)
3,8
3,8
Avatar del usuario
See private message.
$22,10 USD en 14 días
4,9 (23 comentarios)
3,5
3,5
Avatar del usuario
See private message.
$29,75 USD en 14 días
5,0 (7 comentarios)
2,8
2,8
Avatar del usuario
See private message.
$11,05 USD en 14 días
5,0 (5 comentarios)
2,7
2,7
Avatar del usuario
See private message.
$11,05 USD en 14 días
0,0 (2 comentarios)
0,0
0,0

Sobre este cliente

Bandera de SOUTH AFRICA
South Africa
4,9
32
Miembro desde feb 24, 2003

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.