Question
For this assignment you will write a program to subtract large unsigned integers. Your program should prompt and read in two large unsigned integers. The
For this assignment you will write a program to subtract large unsigned integers. Your program should prompt and read in two large unsigned integers. The two large integers should be stored arrays, one array for each integer. The integers should be stored with one digit per location in the two arrays. The first integer should be no smaller than the second. Your program should subtract the second integer from the first. The result should be stored in an array, again one digit per location in the array. Your program should then output the difference. Your program should be able to handle integers with up to 80 digits each. You should not use any concepts from object oriented programming. In particular please do not use any classes (or struct) or any class methods. cin.get() can be used. Using C++. Test data: 10000000000000000000000000000000000 - 9 1111111111111111111111111111111111 - 10000010001 123456789123456789123456789 - 99999 9999999999 -9999999999
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started