is it possible to rewrite the pseudo code without using array?

Programming
Tutor: None Selected Time limit: 1 Day

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? Explain.



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

Jun 21st, 2015

Dear your question is under-progress, it would be available to you as soon as it completes within next few minutes.


Jun 21st, 2015

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Jun 21st, 2015
...
Jun 21st, 2015
Mar 26th, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer