In: Computer Science
Pseudo code:
Function Main
Declare Integer Array prices[100]
Declare Integer max, i
Output "Enter 100 prices"
For i = 0 to 99
Input scores[i]
End
Assign max = prices[0]
For i = 1 to 99
If prices[i]>max
Assign max = prices[i]
Assign index = i
End
End
Output "maximum price"
Output max
Assign prices[index] = prices[index]*0.10
... reducing price of max by 10%
End
Flowchart:
Let me know if you have any doubts or if you need anything to change. If you are satisfied with the solution, please leave a +ve feedback : ) Let me know for any help with any other questions. Thank You! ===========================================================================