Write a program that prompts for two people's birthdays (month and day), along with today's month and
Question:
Write a program that prompts for two people's birthdays (month and day), along with today's month and day. The program should figure out how many days remain until each user's birthday and which birthday is sooner.
This is the Output needed:
This program compares two birthdays and displays which one is sooner. What's today's month and day? 1 29 Today is 1/29/2020, day #29 of the year. Person 1: What month and day were you born? 10 17 10/17/2020 falls on day #291 of 366. Your next birthday is in 262 days. That is 71.6 percent of a year away. Person 2: What month and day were you born? 11 23 11/23/2020 falls on day #328 of 366. Your next birthday is in 299 days. That is 81.7 percent of a year away. Person 1's birthday is sooner. << your birthday fact here >> Would you like to compare two more birthdays? Type 1 and then
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp