Question: Integer numAssetValues is read from input, representing the size of vectors, aprAssetValues and octAssetValues. Then, the remaining integers are read and stored into vector aprAssetValues

Integer numAssetValues is read from input, representing the size of vectors, aprAssetValues and octAssetValues. Then, the remaining integers are read and stored into vector aprAssetValues and octAssetValues, respectively. Perform the following tasks:
If aprAssetValues is equal to octAssetValues, output "April's asset values and October's asset values are the same."
Otherwise, output "April's asset values and October's asset values are not the same."
Assign octBackup as a copy of octAssetValues.
Ex: If the input is:
2
343187
266495
then the output is:
April's asset values: 343187
October's asset values: 266495
April's asset values and October's asset values are not the same.
October's backup: 266495

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!