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 |
We are a professional custom writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework.
Yes. We have posted over our previous orders to display our experience. Since we have done this question before, we can also do it for you. To make sure we do it perfectly, please fill our Order Form. Filling the order form correctly will assist our team in referencing, specifications and future communication.
1. Click on the “Place order tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
2. Fill in your paper’s requirements in the "PAPER INFORMATION" section and click “PRICE CALCULATION” at the bottom to calculate your order price.
3. Fill in your paper’s academic level, deadline and the required number of pages from the drop-down menus.
4. Click “FINAL STEP” to enter your registration details and get an account with us for record keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
5. From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.
Need this assignment?
Order here and claim 25% off
Discount code SAVE25