Question: C++ // NOTE: The ONLY files that should be #included for this assignment are iostream, vector, and string // No other files should be #included

C++

// NOTE: The ONLY files that should be #included for this assignment are

iostream, vector, and string

// No other files should be #included

#include

#include

#include

// NOTE: The ONLY files that should be #included for this assignment are

iostream, vector, and string

// No other files should be #included

using namespace std;

string addbin(string, string);

string addhex(string, string);

int main()

{

cout<<"binary 1101 + 1000 = "<

should get 10101

cout<<"binary 11000 + 1011 = "<

should get 100011

cout<<"binary 11111111 + 1 = "<

should get 100000000

cout<<"binary 101010 + 10 = "<

//you should get 101100

cout<<"hexadecimal A4 + A5 = "<

should get 149

cout<<"hexadecimal 2B + C = "<

should get 37

cout<<"hexadecimal FABC + 789 = "<

//you should get 10245

cout<<"hexadecimal FFFFFF + FF = "<

"FF")<

system("PAUSE");

return 0;

}

string addbin(string bin1, string bin2)

{

//IMPLEMENT THIS FUNCTION

//IMPLEMENT THIS FUNCTION

//IMPLEMENT THIS FUNCTION

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!