Question: PROGRAMMING LANGUAGE OOP'S WITH C++ Functional Requirements: A jewelry designer friend of mine requires a program to hold information about the gemstones he has in
PROGRAMMING LANGUAGE OOP'S WITH C++
Functional Requirements:
A jewelry designer friend of mine requires a program to hold information about the gemstones he has in his safe.
Offer the jewelry designer the following menu that loops until he chooses option 4.
1. Input a gemstone
2. Search for a gemstone by ID number
3. Display all gemstone information with total value
4. Exit
-------------------------------------
Gemstone data:
ID number (int > 0, must be unique)
Gem Name (string, length < 15)
Gem Weight in carats: (float, >=0)
Amount Paid (float, >=0)
Rating (*, **, ***, ****, *****; rating must be one of those 5 choices)
----------------------------------------
Programming Requirements:
Above main(), create a structure that will hold the information listed above. Then inside of main() create an array of 25 structures. Each structure in the array will represent one different gemstone.
Display the menu and loop through the choices as follows:
Option 1: Pass the array of structures to a function that inputs and validates as indicated above.
Option 2. Pass the array of structures to a function which allows the user to search for a gemstone by ID number and then display that gemstone information. If that ID number does not exist, display a message to that effect.
Option 3. Pass the array of structures to a function that displays all gemstone information AND the total value of all gemstones (which your program will calculate).
Option 4. Exist the program.
PLEASE PROVIDE THE OUTPUT .THANK YOU
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
