Find Jobs
Hire Freelancers

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

$30-40 USD

Ολοκληρώθηκε
Αναρτήθηκε περίπου 21 χρόνια πριν

$30-40 USD

Πληρωμή κατά την παράδοση
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.
Ταυτότητα εργασίας: 2910018

Σχετικά με την εργασία

11 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 21 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
Βραβεύτηκε στον/στην:
Avatar Χρήστη
See private message.
$7 USD σε 14 ημέρες
3,9 (24 αξιολογήσεις)
2,8
2,8
11 freelancers δίνουν μια μέση προσφορά $20 USD για αυτή τη δουλειά
Avatar Χρήστη
See private message.
$29,75 USD σε 14 ημέρες
4,5 (144 αξιολογήσεις)
6,0
6,0
Avatar Χρήστη
See private message.
$17 USD σε 14 ημέρες
4,9 (138 αξιολογήσεις)
5,6
5,6
Avatar Χρήστη
See private message.
$25,50 USD σε 14 ημέρες
4,8 (34 αξιολογήσεις)
4,4
4,4
Avatar Χρήστη
See private message.
$11,05 USD σε 14 ημέρες
4,2 (111 αξιολογήσεις)
4,4
4,4
Avatar Χρήστη
See private message.
$34 USD σε 14 ημέρες
5,0 (17 αξιολογήσεις)
4,0
4,0
Avatar Χρήστη
See private message.
$21,25 USD σε 14 ημέρες
5,0 (17 αξιολογήσεις)
3,8
3,8
Avatar Χρήστη
See private message.
$22,10 USD σε 14 ημέρες
4,9 (23 αξιολογήσεις)
3,5
3,5
Avatar Χρήστη
See private message.
$29,75 USD σε 14 ημέρες
5,0 (7 αξιολογήσεις)
2,8
2,8
Avatar Χρήστη
See private message.
$11,05 USD σε 14 ημέρες
5,0 (5 αξιολογήσεις)
2,7
2,7
Avatar Χρήστη
See private message.
$11,05 USD σε 14 ημέρες
0,0 (2 αξιολογήσεις)
0,0
0,0

Σχετικά με τον πελάτη

Σημαία της SOUTH AFRICA
South Africa
4,9
32
Μέλος από Φεβ 24, 2003

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.