Find Jobs
Hire Freelancers

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

$30-40 USD

Ukończony
Opublikowano około 21 lat temu

$30-40 USD

Płatne przy odbiorze
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.
Identyfikator projektu: 2910018

Informację o projekcie

11 ofert
Zdalny projekt
Aktywny 21 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
Przyznano:
Awatar Użytkownika
See private message.
$7 USD w 14 dni
3,9 (24 opinii)
2,8
2,8
11 freelancerzy składają oferty o średniej wysokości $20 USD dla tej pracy
Awatar Użytkownika
See private message.
$29,75 USD w 14 dni
4,5 (144 opinii)
6,0
6,0
Awatar Użytkownika
See private message.
$17 USD w 14 dni
4,9 (138 opinii)
5,6
5,6
Awatar Użytkownika
See private message.
$25,50 USD w 14 dni
4,8 (34 opinii)
4,4
4,4
Awatar Użytkownika
See private message.
$11,05 USD w 14 dni
4,2 (111 opinii)
4,4
4,4
Awatar Użytkownika
See private message.
$34 USD w 14 dni
5,0 (17 opinii)
4,0
4,0
Awatar Użytkownika
See private message.
$21,25 USD w 14 dni
5,0 (17 opinii)
3,8
3,8
Awatar Użytkownika
See private message.
$22,10 USD w 14 dni
4,9 (23 opinii)
3,5
3,5
Awatar Użytkownika
See private message.
$29,75 USD w 14 dni
5,0 (7 opinii)
2,8
2,8
Awatar Użytkownika
See private message.
$11,05 USD w 14 dni
5,0 (5 opinii)
2,7
2,7
Awatar Użytkownika
See private message.
$11,05 USD w 14 dni
0,0 (2 opinii)
0,0
0,0

O kliencie

Flaga SOUTH AFRICA
South Africa
4,9
32
Członek od lut 24, 2003

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.