Question: Given a class Numerology. Now implement the class with following specificatic Fields: 1. planets - HashMap > 2. planetsCharacteristics - HashMap > planets contains all

 Given a class Numerology. Now implement the class with following specificatic
Fields: 1. planets - HashMap > 2. planetsCharacteristics - HashMap > planets
contains all 9 planets. planets Characteristics contains the characters of the planets.
Methods: 1. Name: loadHasMap ReturnType: void Argument(s): None This method should load
all 9 planets into planets field as mapped below Key Value 1"Sun"2"Moon"3"Mars"4"Rahu"5"Mercury"6"Venus"7"Ketu"8"Saturn"9"Mars"

Given a class Numerology. Now implement the class with following specificatic Fields: 1. planets - HashMap > 2. planetsCharacteristics - HashMap > planets contains all 9 planets. planets Characteristics contains the characters of the planets. Methods: 1. Name: loadHasMap ReturnType: void Argument(s): None This method should load all 9 planets into planets field as mapped below Key Value 1"Sun"2"Moon"3"Mars"4"Rahu"5"Mercury"6"Venus"7"Ketu"8"Saturn"9"Mars" 2. Name: loadHashMapCharacteristics ReturnType: void Argument(s): None This Method should load the names of the planets as keys and characters of the planets as values in planetscharacteristics Key Value "Sun" "Confidence "Moon" - "Emotions" "Jupiter" "Knowledge" "Rahu" "Extravagance" "Mercury" "Intelligence" "Venus" "Beauty" "Ketu" - "Philosophy" "Saturn" "Discipline" "Mars" "Vitality" 3. Name; getProperties ReturnType; String Argument(s): Person This method should get the destiny number of a person and get the plavet value of the destiny number and fint the character planet. 3. Name getProperties ReturnIype: String Argument(s): Person This method should get the destiny number of a person and get the plavet value of the destiny number and fint the character of than planet. Print the details as below input: Person(3,3, 1990) output: The character of person with 3-3-1990 birth date is Philosophy Define a class Person with the following specifications. Fields: 1. date - int 2 month - int 3. yegar - int 4. destinunumber - int Constructors: A. Parameterived constructor with arguments as date, month and year. This should initialize the instant vathatiles Methods: 1. Name:computeDegtinyNumber Retumiype: void Algumentis, None Thes method should calculate the destring number of a persent and store in decthry Number. 1. date - int 2. month - int 3. year - int 4. destinuNumber - int Constructors: A Parameterized constructor with arguments as date, month and year. This should initialize the instant variables. Methods: 1. Name: computeDestinyNumber ReturnType: void Argument(s): None This method should calculate the destiny number of a person and store in destinyNumber. Hint; destiny number is a single number from 1 to 9 , calculated on date of birth. If date of birth of a person is 341990, the destiny number is 7 . Calculation: add all the digits of DOB until you get single digit. 3+4+1+9+9+0=262+6=8 Given a class Testing with main method to test your code. Answer: (penalty regime: 0.96 ) Ace editor not ready. Perhaps reload page? Falling back to raw text area. import java.uti1. class Numerology 1 I/write your code 1 class Person l/write your code public class Testing 1 publie static void main (string[] args) f Person p= new Rerson(12, 12, 199e): System.out. println (new Numerology () . getproperties (p) )

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!