Question: 1 Introduction You will create a C++ program that can evaluate arithmetic operators with integer numbers having any number of digits. These numbers are an
1 Introduction You will create a C++ program that can evaluate arithmetic operators with integer numbers having any number of digits. These numbers are an alternative to xed size integers or oating point numbers that always have a maximum number of accurate digits (dependent on size of CPU register). 2 InputandOutput The input is a regular text le, where each line is terminated with an end-of-line character(s). Each line will containanarithmeticoperationbetweentwonumbers. Theprogramshoulddisplaytheinputexpressionand the results, separated with =. Input example: 0*0 0+1 123456*2593 2*2000000000000000 2*3 1+10 10000000000000000+1 12345667890123456789+8765432109876543210 999999999999999999999+1 Output example: 0*0=0 0+1=1 123456*2593=320121408 2*2000000000000000=4000000000000000 2*3=6 1+10=11 10000000000000000+1=10000000000000001 1234567890123456789+8765432109876543210=9999999999999999999 999999999999999999999+1=1000000000000000000000 Advanced operators and functions example: sqrt(16)=4 sqrt(81)=9 20/6=3,remainder=2 1500/5=300 sqrt(13489)=116.1421543 1000000000000/2=500000000000 3 Programinputandoutputspecication The main program should be called innitearithmetic. The output should be written to the console (e.g. printf or cout), but the TAs will redirect it to create some output le. Call syntax at the OS prompt (notice double quotes): infinitearithmetic "input=
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
