Question: Neep help creating a Java compilation of the instructions below. Please help! Program 3B: Birthstones and month names by Month US 2016 with Random Number

Neep help creating a Java compilation of the instructions below. Please help!

Program 3B: Birthstones and month names by Month US 2016 with Random Number Generator Write a Java program that gives the names of birthstones according to month. This is essentially the same program as last time, but you will generate a random integer between 1 and 12, inclusive instead of obtaining the birth month from the user. You will output the name of the corresponding birthstone from the list of US 2016 birthstones from the Wikipedia article called Birthstone, which is included near the end of this assignment. For the months that have more than one birthstone, you will output the name of only the first birthstone.

3. Use comments liberally to document exactly what you are doing in the program.

4. Use descriptive variable names in camel-case with the first letter in lowercase.

5. Comment out the lines that asked the user for a birth month and the lines that read it. Leave the validation code in so that you can check your own random number generation.

6. Generate a random number between 1 and 12 inclusive and assign that to an integer that represents a birth month. Remember that you will need to read Chapter 3 to do this.

7. In addition to having the output indicate the birthstone, it will also have to say the name of the birth month. You will do that exactly the same way as the birthstone.

8. Have your output sentence say: The birthstone for Mmmmm is ssssss. Mmmmmm is the capitalized month name that corresponds to your generated number, and ssssss is the birthstone name that corresponds to your generated number.

9. Modify anything else in your code that might be needed to accommodate the changes.

Sample Run: The birthstone for February is amethyst.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!