Question: Write a java program that gives this output CSC 151-02 Computer Programming l Programming Assignment 3 Problem: 40 pts The Swami class (SwamiFILIjava) 3 instance

Write a java program that gives this output CSC 151-02 Computer ProgrammingWrite a java program that gives this output

CSC 151-02 Computer Programming l Programming Assignment 3 Problem: 40 pts The Swami class (SwamiFILIjava) 3 instance data: name, month, day, Methods: getName, getMonth, getDay, getSign, getElement, getHoroscope, setDay, setMonth, changeBirthday; change Birthday 0 will decrement your month by 1; decrement day by 5 (if day is less than or equal to 5, then it will increment by 5 The demoSwamijava Application 30 pts demoSwamiELLI application will do the following (1) Read name and birthday from the keyboard-using Scanner object, Jean 08 23 (2) For each person it will (a) Create a Swami object (five objects) (b Display the initial state of the object. Use accessor and mutator methods to do the following: (c) Display the object's horoscope, sign, symbol, and element, (d) Call changeBirthday redisplay Name, Month and Day e) display the new horoscope, sign, symbol, and element Must Validate the dates for each month Output: Month:08 Day 23 Gabe, Swami says: You don't mind working hard to make something great happen and today is a good time to figure out your next steps. Sign Symbol Virgin. Element: Earth Name Gabe, Month:07 Day 18 Gabe, Swami says your new horoscope is: You feel more lackadaisical now, less focused on mundane tasks Sign Cancer Symbol Crab Element Watet CSC 151-02 Computer Programming l Programming Assignment 3 Problem: 40 pts The Swami class (SwamiFILIjava) 3 instance data: name, month, day, Methods: getName, getMonth, getDay, getSign, getElement, getHoroscope, setDay, setMonth, changeBirthday; change Birthday 0 will decrement your month by 1; decrement day by 5 (if day is less than or equal to 5, then it will increment by 5 The demoSwamijava Application 30 pts demoSwamiELLI application will do the following (1) Read name and birthday from the keyboard-using Scanner object, Jean 08 23 (2) For each person it will (a) Create a Swami object (five objects) (b Display the initial state of the object. Use accessor and mutator methods to do the following: (c) Display the object's horoscope, sign, symbol, and element, (d) Call changeBirthday redisplay Name, Month and Day e) display the new horoscope, sign, symbol, and element Must Validate the dates for each month Output: Month:08 Day 23 Gabe, Swami says: You don't mind working hard to make something great happen and today is a good time to figure out your next steps. Sign Symbol Virgin. Element: Earth Name Gabe, Month:07 Day 18 Gabe, Swami says your new horoscope is: You feel more lackadaisical now, less focused on mundane tasks Sign Cancer Symbol Crab Element Watet

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!