Question: Integer numAssets is read from input, representing the number of integers to be read next. Then, the remaining integers are read and stored into array

Integer numAssets is read from input, representing the number of integers to be read next. Then, the remaining integers are read and stored into array assetsList. For each element in assetsList that is greater than 1200:
Output the element, followed by " is adjusted to 1200" and a newline.
Assign the element with 1200.
Ex: If the input is:
3
14002300750
then the output is:
Raw assets: 14002300750
1400 is adjusted to 1200
2300 is adjusted to 1200
Adjusted assets: 12001200750
1
2
3
Check
Next level

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 Programming Questions!