Part 1 Stars can be classified into color groups called spectral classes. Stars can also be classified by their magnitude, which
Part 1
Stars can be classified into color groups called spectral classes. Stars can also be classified by their magnitude, which measures their brightness. The lower the magnitude, the brighter the star. Magnitudes can range from -7 to 15. The table below lists some common brightest stars and their distance from Earth in light-years. Write a CLIPS program that asks the user for the spectral class and the magnitude of a star. The program should then list all stars matching both the spectral class and the magnitude with their distance from Earth in light-years.
Part 2
Once you have Part 1 working, add a new feature. If no star is found that matches both spectral class and magnitude, list all stars having the specified spectral class, followed by all stars having the specified magnitude. Label each section of output accordingly.
Hint for development:
Because an expert system is not modular or object-oriented, testing cannot be done in the manner you have learned in other classes. If you write the entire program and try to run it, errors will be difficult to locate. Since Part 2 has 2 distinct phases, get each phase working before proceeding to the next phase. It is advisable to context limiting for each of the components in Part 2.
Part 3
If you have everything working in Parts 1 and 2 but find yourself still wanting more, you can take the challenge. Spectral classes correspond to temperature ranges for the stars as in the table below:
Allow the user to enter the star’s temperature rather than spectral class. Use the temperature to determine the spectral class and proceed with listing the stars as in the previous sections.
Charts are attached
Part 1
Star |
Spectral Class |
Magnitude |
Distance |
Sirius |
A |
1 |
8.8 |
Canopus |
F |
-3 |
98 |
Arcturus |
K |
0 |
36 |
Vega |
A |
1 |
26 |
Capella |
G |
-1 |
46 |
Rigel |
B |
-7 |
880 |
Procyon |
F |
3 |
11 |
Betelgeuse |
M |
-5 |
490 |
Altair |
A |
2 |
16 |
Aldebaran |
K |
-1 |
68 |
Spica |
B |
-3 |
300 |
Antares |
M |
-4 |
250 |
Pollux |
K |
1 |
35 |
Deneb |
A |
-7 |
1630 |
Part 3
Spectral Class |
Temperature Range (°F) |
O |
more than 37,000 |
B |
17,001-37,000 |
A |
12,501-17,000 |
F |
10,301-12,500 |
G |
8,001-10,300 |
K |
5,501-8,000 |
M |
5,500 or less |
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
