Question: Please complete in C++ and follow instructions. Thanks Programming Exercise 11 in Chapter 8 explains how to add large integers using arrays. However, in that
Please complete in C++ and follow instructions. Thanks
Programming Exercise 11 in Chapter 8 explains how to add large integers using arrays. However, in that exercise, the program could add only integers of, at most, 20 digits. This chapter explains how to work with dynamic integers. Design a class named largeIntegers such that an object of this class can store an integer of any number of digits. Add operations to add, subtract, multiply, and compare integers stored in two objects. Also add constructors to properly initialize objects and functions to set, retrieve, and print the values of objects. Write a program to test your class.
Starter code:
largeIntegers.cpp
#include
using namespace std;
largeIntegers.h
//Specification file largeIntegers.h
#ifndef H_largeIntegers
#define H_largeIntegers
#include
using namespace std;
#endif
main.cpp
#include
using namespace std;
int main() {
// Write your main here
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
