Problem

You’re working for an observatory that keeps a database of stars. The most prominent stars...

You’re working for an observatory that keeps a database of stars. The most prominent stars are indexed by name (a string); less prominent stars are indexed by the name of the constellation in which they are found and a sequentially assigned number (an int); and the least prominent stars are indexed by coordinates consisting of two floating-point numbers. Each star record also contains a measurement of the star’s brightness, called its magnitude (a float), and a letter indicating its color (a char).

Write a C++ program that reads the star data from three files (named.dat, numbered. dat, and coord.dat) and places all of the data into a single list. The program should then allow the user to retrieve the data for any star using the different kinds of indexes. Use templates to simplify the coding of this application.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT