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
I have been trying to solve this C++ problem for a while now and even though the code gives the correct output, MindTap still tells me the code is wrong. it is looking for largeInteger class correctly performs .add operations and .subtract actions. If anyone can help, it would be much appreciated!
\\largeIntegers.cpp
#include <iostream>
using namespace std;
------------------------------------------------------------------------------
\\largeIntegers.h
//Specification file largeIntegers.h
#ifndef H_largeIntegers
#define H_largeIntegers
#include <iostream>
using namespace std;
#endif
------------------------------------------------------------------------------
main.cpp
#include <iostream>
using namespace std;
int main() {
// Write your main here
return 0;
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images