Help me Subject java (Input month name output number of days)
user for an input 1-12 for a month, and it outputs the number of days in that month.
The modifications would make it so that the user inputs the name of the month instead of the value, and the program outputs the number of days.
example
15721f81459504047b4acd5a722a7326

Recommended Answers

All 2 Replies

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rules

Post what you have done so far and someone will help you from there.

make a database, containing the information you need. Then use the user input to query that database and get the data you need to return.

Or just keep a list of things in memory, for something trivial like this that's much easier.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.