CAREER B VENT LYY a sqeo1 NON 0LO no o N aND Welcome | MYSAIL Oakland Un X Th Course: CSI-1420-43702.201940 X https://moodle.oakland.edu/plug X 9G Difference between two given tin X x + - moodle.oakland.edu/pluginfile.php/56001 30/mod_assign/intro/Homework02.txt?time=1570288894866 Program 5 Program: easter.c Executable: easter.o Easter Sunday is the first Sunday after the first full moon of spring. To compute the date, you can use this algorithm, invented by the mathematician Carl Friedrich Gauss in 1800: 1. Let y be the year (such as 1800 or 2001) 2. Divide y by 19 and call the remainder a. Ignore the quotient. 3. Divide y by 100 to get a quotient b and a remainder c. 4. Divide b by 4 to get a quotient d and a remainder e. 5. Divide 8 b + 13 by 25 to get a quotient g. Ignore the remainder. 6. Divide 19 a b - d - g + 15 by 30 to get a remainder h. Ignore the quotient. 7. Divide c by 4 to get a quotient j and a remainder k. 8. Divide a + 11 h by 319 to get a quotient m. Ignore the remainder. 9. Divide 2 e + 2 j - k - h + m +32 by 7 to get a remainder r. Ignore the quotient. 10. Divide h m +r+ 90 by 25 to get a quotient n. Ignore the remainder. 11. Divide h m +rn+ 19 by 32 to get a remainder p. Ignore the quotient. The Easter faqs on day p of month n. For example, if y is 2001: a 6 1 b 20, с %3D 1 d 5, e = 0 g 6 h 18 j- 0, k = 1 m 6 71 4 15 p Therefore, in 2001, Easter Sunday fell on April 15. Write a program that prompts the user for a year and prints out the month and day of Easter Sunday. 130 PM ENG 10/
CAREER B VENT LYY a sqeo1 NON 0LO no o N aND Welcome | MYSAIL Oakland Un X Th Course: CSI-1420-43702.201940 X https://moodle.oakland.edu/plug X 9G Difference between two given tin X x + - moodle.oakland.edu/pluginfile.php/56001 30/mod_assign/intro/Homework02.txt?time=1570288894866 Program 5 Program: easter.c Executable: easter.o Easter Sunday is the first Sunday after the first full moon of spring. To compute the date, you can use this algorithm, invented by the mathematician Carl Friedrich Gauss in 1800: 1. Let y be the year (such as 1800 or 2001) 2. Divide y by 19 and call the remainder a. Ignore the quotient. 3. Divide y by 100 to get a quotient b and a remainder c. 4. Divide b by 4 to get a quotient d and a remainder e. 5. Divide 8 b + 13 by 25 to get a quotient g. Ignore the remainder. 6. Divide 19 a b - d - g + 15 by 30 to get a remainder h. Ignore the quotient. 7. Divide c by 4 to get a quotient j and a remainder k. 8. Divide a + 11 h by 319 to get a quotient m. Ignore the remainder. 9. Divide 2 e + 2 j - k - h + m +32 by 7 to get a remainder r. Ignore the quotient. 10. Divide h m +r+ 90 by 25 to get a quotient n. Ignore the remainder. 11. Divide h m +rn+ 19 by 32 to get a remainder p. Ignore the quotient. The Easter faqs on day p of month n. For example, if y is 2001: a 6 1 b 20, с %3D 1 d 5, e = 0 g 6 h 18 j- 0, k = 1 m 6 71 4 15 p Therefore, in 2001, Easter Sunday fell on April 15. Write a program that prompts the user for a year and prints out the month and day of Easter Sunday. 130 PM ENG 10/
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education