You are to write a Python program that ask the user to input any birthdate using the formula mmfddfyyyy then split it into a month, day, and year.
This question has been answered
Question

I need help with this computer science homework. ( Do in Python please). If further information is needed ,let me know.1.PNG2.PNG3.PNG

Image transcriptions

Lab Assignment 1 The weekday calculator Problem Specification Develop an application in Python to determine the dayr ofthe week a person was born given his or her birthday, using the details specified below. You are to write a Python program that ask the user to input any birthdate using the formula mmfddfyyyy then split it into a month, day, and year. Using a reference date such as [looms-320 [this reference date will be assumed in this assignment}. which is a Thursday, you can count the number of days from the reference date to the birthdate to determine the weekday of the birthdate. Don't forget some leap years during the calculation. Assume that the user's birthdate > reference's date. Example: Assuming the user input 9f14f1931 then the program should print Monday, meaning the 14'" of September of 1931 was a Monday. Design Requirements Basic Structure Your program should have the following functions: 1] The main function {named "main"]. This function should ask the user to input anyr birthdate then call the getWeelnday function to return the weekday of the birthdate then display it on the terminal. 2] Afunction (named "isleap"] that takes a year as a parameter and return either true {the year is a leap year] or false {not a leap year}. 3] Afunction [named 'daysPerMonth") that takes two parameters: month and year as numbers and return the number of days in that month of that year using isLeap function.

4] A function [named 'daysPerfiaf} that takes two parameters: year1 and year}! as numbers and return the total number of days in those years using daysPerMonth function. 5] A function {named 'gJetWeeltdayfl that returns the weekday of the user birthdate as a string. You should count the number of days between the user and reference dates and since you know the weekday of the reference's date [for iflflfllfl is Thursday] then you can tell what the weekday of the user's date is. For example, if user's birthdate is lflflfllfl then the number of days between the two dates is 3 and sinoe Thursday comes after every 3' days then the weekday is a Friday [think about it]. Now to count the total days you, will enoounter three scenarios (possibly, the first and second together]: a} {heck if there are more than one year between the two data. For example, birthdate's year is 5f5f1934. In this case, you must count days per year in all those years excluding 1920' and 1934 using the daysPer'Iiears function. b] {heck if user's birthdate is in the next year after the referenoe's date. For example, user's birthdate is EI12I1921. You must count the number of days from Hlflfllfl to lflflflzl [reference year} plus the number of days from lflflfll to Bill! 1921 [birth date's year} using daysPerltIlonth function. c} {heck if user's birthdate and reference's date are both in the same year. For example, user's birthdate is 3f4f'192fl. Thus, no years are involved in the calculation, only months [and then use daysPerltIlonth function] and sometimes only days if both dates are in the same month. The output and interface should be neat and well—described. See the example provided in the Testing Phase section. All user input must be done with functions and the functions should cleariy specify the range for each integer. A comment should be given for each function describing what the function does in terms of parameters and a return value. Flowcha rt You have to design a flowchart for each function to illustrate how function is designed. Also, you need to design a flowchart to show how the drive code is designed in terms of how inputs are received and the functions are called. Implementation Phase Using the pseudocode developed, write the Python code for your assignment. ' ' _ '

Testing Phase a "tour program should include code to validate user input and ensure that all input meets the specifications. If input is not validr your program should keep looping to force the user to provide valid input. Each time your program loopss it should provide information to the user to indicate what is considered valid input. - Build your program incrementally; carefully testing each function as you go. ELIE-.1 This program is used to find the weekday of your birthday Please enter your hirthdate: 1f2f192fi The weekday or-F Lamaze is a Friday

Answered by Expert Tutors

ipiscing elit. Nam lacinia pulvinar tortor nec

dictum vitae odio. Donec aliquet. Lorem ipsum d

ec facilisis. Pellentesque dap

itur laoreet. Nam risus ante, dapibus a

lestie consequat, ultrices ac magna. Fusce d

ac, dictum vitae odio. Donec alique


a. Fusce dui lectus, congue vel laoreet ac, dictum vit

molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Do

Step-by-step explanation

s a mriguesusiccipsum dolor sit amet, c, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elac, dictum vitae odio. Donec aliquet.ce dui lectus, congue vel laoreet ac,nec facilisis. Pellentesque dapibuse vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsumoriguea. Fusfficcicitur laoreet. Nsng elit. Nam lacinom ipsum dol0congue vel laoreet ac, dictum vitsng elit. Nam lacinsum ipsum dol0ac, dictum vitae odio. Donec aliquet. Lorem ipsumsng elit. Nam lacinism ipsum dol0a molestie consequat, ultrices ac magna. Fusce dui lectus, conguellente veur lsque dapibus efficitur laoreet. Nam risus ante, dipsua molestie consequat, ultrices ac magna. Fusce dui lectus, conguellente vepulvusce dui lectus, congue vel laoreipsuac, dictum vitae odio. Donec aliquet. Lorem ipsumllente veur licitur laoreet. Nipsucongue vel laoreet ac, dictum vitllente vepulv, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsorigueusce dui lecitur laoreecicitur laoreet. Namet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pelleor nec facilisis. Pellentesque dapibus eona. Fuua. Fuona. Fuua. Fuona. Fuua. Fuona. Fuona. Fuua. Fuona. Fuua. Fuonet, consectetur adipiscing elit. Nam laona. Fuama. Fuona. Fuua. Fuona. Fuua. Fuona. Fuona. Fuua. Fuona. Fuua. Fuonconsectetur adipissitur laoreet. Nam risus ante, dapibus a molestiellentitur laoreet. Nam risamconsectetur adipisipsucongue vel laoreet ac, dictum vitllent, dictum vitae odio. Doamor nur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce duorigueo. Donec ali, consectetucs ante, dapibus a molestie consequat0, dictum vitae oding elit. Nam lacinia pulvinar tortor nec facilisis.icitur laoreet. Norsum dolorsuamet, consectetur adipiscing elit. Nam lacinia pulvinarDonec aliquet. Lorem ipsum dolor sit amet, consectetur ausce dui lectus, congue vel laoreoritur laorsua molestiectacng elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molesllenttesque dapibus efpulvinar tortor nec facilisis. Pellentesqueorigueamet, coipiscicgue vel laoreet ac, dictum vitalestie constmolestie ctentesquetonec aliqut, dictumtnec fatac, dictusus ante, dapibus a molestie consequat,0icitur laoreet. N, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dinec facilisis. Pellentesque dapibus efficitur laorffirem ipsum dolor sitce dui lectus, congue vel laoreet ac, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elitac, dictum vitae odio. Donec aliquet.icitur laoreet. Nac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Namicitur laoreet. Nur laoreet. Nam risus ante, dapibus a molesac, dictum vitae odio. Donec aliquet. Loremec ffficitur laoreet. Nam risa. Fusce dui lectus, congue vel laoreet ac, dictumicitur laoreet. Ngue vel laoreet ac, dictum vitae odio.icitur laoreet. Norsum dolorsua molestiec, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risur laoreet. Nam risus ante, dapibu, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dicur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fuscor nec facilisis. Pellentesque dapibus efficitirem ipsum dolor sit amet,inia pulvinar tortor nec facilisis. Pellentesonec aliquet. Lorem ipsum dolor sit amet,



ctum vit

molestie consequat, ultrices ac magna. Fusce dui lectus,

m ipsum dolor sit amet, consect

trices ac magna. Fusce dui lectus,

Get unstuck

479,698 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses