Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. What do I want to achieve?

Answered: 1 week ago