Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use three separate lists to hold the symbols, names, and values of at least five cryptocurrencies (see the expected output below). Create an empty list

Use three separate lists to hold the symbols, names, and values of at least five cryptocurrencies (see the expected output below). Create an empty list to hold the names of the currency purchased. Use a variable to accumulate the total value of the purchase. Display a content of the three lists as a text-based menu. Prompt the user to enter a currency symbol from the list. Display the Name of the currency in a response message to the user that they have purchased one unit of Currency. Add the value of the currency to the accumulator variable. Continue to prompt and input the user's choice until they enter an 'x' to exit. Your program must validate the input; if an invalid symbol is entered, display an error message and redisplay the menu. Sample output: (currency types and values obtained from www.bankrate.com/investing/types-of-cryptocurrency, feel free to change and customize for your own preferences).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions