Writing pseudocode and Java program implementing selection control using if-else and switch statements. 5.5.2 Problem Description Zeller's congruence is an algorithm developed by Christian Zeller to...


Design a pseudocode and write a Java program using JOptionPane class that prompts the user to enter a
date either in the format DD-MM-YYYY or DD/MM/YYYY and displays the name of the day of the week.


Writing pseudocode and Java program implementing selection control using if-else and switch statements.<br>5.5.2 Problem Description<br>Zeller's congruence is an algorithm developed by Christian Zeller to calculate the day of the week. The<br>formula is:<br>[13(m + 1)]<br>+ y +<br>h = (q+<br>| %7<br>|400<br>100<br>where<br>h is the day of the week (0: Saturday, 1: Sunday, 2: Monday, 3: Tuesday, 4: Wednesday, 5: Thursday,<br>6: Friday).<br>q is the day of the month.<br>m is the month (3: March, 4: April,. 12: December). January and February are counted as months<br>13 and 14 of the previous year. For example if it is 02-02-2010, the algorithm counts the date as the<br>second day of the fourteenth month of 2009<br>y is the year<br>k is the year of the century (i.e., year % 7).<br>Design a pseudocode and write a Java program using JOptionPane class that prompts the user to enter a<br>date either in the format DD-MM-YYYY or DD/MM/YYYY and displays the name of the day of the week.<br>

Extracted text: Writing pseudocode and Java program implementing selection control using if-else and switch statements. 5.5.2 Problem Description Zeller's congruence is an algorithm developed by Christian Zeller to calculate the day of the week. The formula is: [13(m + 1)] + y + h = (q+ | %7 |400 100 where h is the day of the week (0: Saturday, 1: Sunday, 2: Monday, 3: Tuesday, 4: Wednesday, 5: Thursday, 6: Friday). q is the day of the month. m is the month (3: March, 4: April,. 12: December). January and February are counted as months 13 and 14 of the previous year. For example if it is 02-02-2010, the algorithm counts the date as the second day of the fourteenth month of 2009 y is the year k is the year of the century (i.e., year % 7). Design a pseudocode and write a Java program using JOptionPane class that prompts the user to enter a date either in the format DD-MM-YYYY or DD/MM/YYYY and displays the name of the day of the week.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here