Pseudocode reads the list of item prices


Following pseudocode reads the list of item prices and outputs the item with max price. Is it possible to rewrite the pseudocode without using array? If so, try it. Otherwise, explain why it cannot be done. 

item_number = 0 
while not eof 
item_number = item_number + 1 
read item_price[item_number] 
end 
max_price_item = 0 
max_price = 0.00 
for i = 1 to item_number do 
if max_price < item_price[i] then 
max_price_item = i; 
max_price = item_price[i]; 
endif 
end 
print max_price_item, max_price

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Pseudocode reads the list of item prices
Reference No:- TGS0124238

Expected delivery within 24 Hours