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


label Programming
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

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

Thank you for the opportunity to help you with your question!

It is not to rewrite pseudo code without using an array because the coding and values of the items is not the same, they vary

Please let me know if you need any clarification. I'm always happy to answer your questions.
Jun 21st, 2015

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Jun 21st, 2015
...
Jun 21st, 2015
Nov 22nd, 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