Question: Write a Java Program to accept a given number of item names and prices and then output them in the reverse order in which they

Write a Java Program to accept a given number of item names and prices and then output them in the reverse order in which they were input. In addition, output the average price if one of the items is name Peas (not case sensitive) otherwise output "no average output". (The first user input will be the number of items to process.) This code has to be build in netbean

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