Question: C++ Integer numValues is read from input. Then, numValues integers are read and stored in vector yesterdayPrices, and numValues integers are read and stored in
C++ Integer numValues is read from input. Then, numValues integers are read and stored in vector yesterdayPrices, and numValues integers are read and stored in vector todayPrices. Perform the following tasks: If yesterdayPrices is equal to todayPrices, output "Yesterday's prices are the same as today's prices." Otherwise, output "Yesterday's prices are not the same as today's prices." Assign todayBackup as a copy of todayPrices. Ex: If the input is 4 40 31 171 155 75 76 44 116, then the output is: Yesterday's prices: 40 31 171 155 Today's prices: 75 76 44 116 Yesterday's prices are not the same as today's prices. Today's backup: 75 76 44 116
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
