I need help with this problem can you explain your solution and in c++ , thank y
ID: 3824665 • Letter: I
Question
I need help with this problem can you explain your solution and in c++ , thank you! Project 02: Arbitrary Precision Unsigned Integer class Create the class BigUInt for arbitrarily large unsigned integers. The class must 1) store the integer in binary (ittle-endian) using an array of unsigned ints, 2) compute products, sums, and moduli with arithmetic and assignment operators, and 3) give proper input and output with std istreams and std: ostreams. Use namespace "math273" for the class. Here is example usage. math273 BigUInt x 4294967295 y 18446744073709551615" std: cout z std: endl. outputs o y (x++) math273: Big Int w x y; std: cout w std: :endl 79228162532711081658663567360Explanation / Answer
#include<iostream.h>
#include<conio.h>
union sumdif
{
private:
int x;
float y;
public:
void getdata();
float sum();
};
void sumdif::getdata()
{
cout<<"enter x value(in integer)"<<endl<<endl;
cin>>x;
cout<<endl;
cout<<"enter y value(in float)"<<endl<<endl;
cin>>y;
cout<<endl;
}
float sumdif::sum()
{
return(x+y);
}
void main()
{
sumdif obj;
float c;
clrscr();
obj.getdata();
c=obj.sum();
cout<<c;
getch();
}