Question: IN c++ need asp Integer numElements is read from input. Then numElements integers are read and stored in vector pricesList. Write a loop that outputs
IN c++ need asp
Integer numElements is read from input. Then numElements integers are read and stored in vector pricesList. Write a loop that outputs each element in pricesList that is less than 100, and assigns the element with twice the element's current value. End each output with " is set to twice the current value" followed by a newline.
Ex: If the input is 3 271 116 27, then the output is:
Raw prices: 271 116 27 27 is set to twice the current value Adjusted prices: 271 116 54
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
