Question: 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

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 'Today's prices are the same as yesterday's prices: ' Otherwise, output "Today's prices are not the same as yesterday's prices." - Assign todayBackup as a copy of todayPrices. Ex. If the input is 2.2743181179, then the output is: Yesterday's prices: 2743 Today's prices: 181179 Today's prices are not the same as yesterday's prices. Today's backup: 181179 1 ainclude numvalues; yesterdayprices resize(numvalues); todayprices.resize(numvalues); cout "Yesterday"s peices: "; for (i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
