Answer to Question #334963 in Java | JSP | JSF for skillie

Question #334963

Design a program using Java Apache NetBeans (Console application). With the following




enum class:


public enum Day {


SUNDAY, MONDAY, TUESDAY, WEDNESDAY,


THURSDAY, FRIDAY, SATURDAY


}


Create a second class called enumDayMood with a void method call telDayMood ().


This method contain a switch case as follows:


switch (day) {


case MONDAY:


JOptionPane.showMessageDialog (frame, "Mondays are bad.");


break;


case FRIDAY:


JOptionPane.showMessageDialog (frame, "Fridays are better.");


break;


case SATURDAY: case SUNDAY:


JOptionPane.showMessageDialog (frame, "Weekends are best.");


break;


default:


JOptionPane.showMessageDialog (frame, “Midweek days are so-so.");


break;


}


Create a method that will ask the user to enter a day of a week and the program should tell the mood of the day. If the user enter a wrong value the program should exit with 0.

0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS