Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Java Write a program to display a menu. Each menu item will represent one of the problem statements below. You will be implementing them

image text in transcribed

Using Java

Write a program to display a menu. Each menu item will represent one of the problem statements below. You will be implementing them with one or more methods, feel free to reuse previously written code Extra credit point if you write your code organized in two separate classes with some of your methods calling other methods from the other class. That is similar to the concept of using methods in Math class such as Math.sqrt or Math.random Sample menu CompMenu [Java Application] C:Program FilesJavaljdk1.8.0_144 bin 1 Date of Birth, Leap Year, Easter. 2 Five Scores to Letter Grade. 3 Compare Five Values 4 Convert 3 Types of Currencies. 5 List n numbers, Calculate Sum, Average, then n! Pls enter 1 5, or 0 to EXIT Problem Statement 1) Write a method that calculates and finds out The day of the week the user's date of birth falls on (Sun 1, Mon 2, Tues 3, ...). Then your method calls another method to calculate and find out whether the year of the same user's birth was a leap year or not. If the user's DoB was May 13, 1998 I expect your code will display The year 1998 is a leap year? True or False: False May 13, 1998 fell on day number 4 Extra credit point if your method can distinguish a future dates from a dates in the past and adjust the message accordingly. If the user's DoB was May 13, 1998 l expect your code will display, The year 2020 will be a leap year? True or False: True May 13, 2020 will fall on day number 4 Extra credit point if your method can call another method to find out what day Easter Sunday feel/will falls for the same year given above. The formula for calculating Easter Sunday can be found on http://www.whvdomath.org/Reading Room Material/ian stewart/200003.ht

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

1.. How can fail-safe methods be used to reduce service failures?

Answered: 1 week ago