Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python Program ( not java ) PYTHON PYTHON Question 1: Coin Collection Management: Write a program that manages a coin collection. This program prompts the
Python Program ( not java )
PYTHON
PYTHON
Question 1: Coin Collection Management: Write a program that manages a coin collection. This program prompts the user for the name of a .col file. This program should be able to load any .col file and require that the file extension -i.e the last 4letters of the file be .col. The file .col is consider a valid file. Ifthe file exists the program loads in the coins from the collection stored in the file. A Coin Collection allows duplicate entries on each coin attribute A Coin has the following attributes (fields and must be programmed as a class 1) Grade, a string, which must be one of the following "Mint Fine "Good", "Fair", "Poor". Letter case is irrelevant here, e.g. "Mint" 2) Value, in US dollars, stored as a float, e.g., 1.52 3) Year, the year the coin was minted, stored and treated as an integer, like 1962 4) Country of Production, which is stored as a string can be any string, like "USA" 5) Mint, which is the specific manufacture of the coin, which is stored as a string and can be any string, like "Denver The program will prompt the user repeatedly for a command. Should the user enter an invalid command, the program should re-prompt the user. Commands are case-insensitive. The program supports several operations: 1) Insert Adds a new Coin entry into the Collection a. Grades must be one of the four options, "Mint", "Fine", "Good", "Fair", "Poor" b. Value must be 0 c. Year must be 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started