Use one of our three array-based list implementations (unsorted, sorted or index
ID: 3680201 • Letter: U
Question
Use one of our three array-based list implementations (unsorted, sorted or indexed) to support an application that does the following:
a) Allows a user to enter a list of the countries he or she has visited and then displays the list in alphabetical order, plus a count of how many countries are on the list. If the user mistakenly enters the same country twice, the program should include it on the list only once.
c) Allows a user to enter a sequence of product information -- namely, a product's description and cost. After the information is entered, the user can REPEATEDLY enter a price range, and it displays all of the products in that price range, ORDERED from the cheapest to the most expensive.
** MUST have a test program for both part A and part C that takes user input and is integrated/dealt with properly in the code.
Explanation / Answer
Please find the codes below :
a)
c)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.