subject

In this lab, you add the input and output statements to a partially completed python program. when completed, the user should be able to enter a year, a month, and a day. the program then determines if the date is valid. valid years are those that are greater than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31. instructions notice that variables have been declared for you. write input statements to retrieve a year, a month, and a day from the user. include the print statements to output the following: month/day/year is a valid date. or month/day/year is an invalid date. execute the program entering the following input: month = 5, day = 32 year = 2014 execute the program entering the following input: month = 9 day = 21 year = 2002

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
Under the home tab, where can a user find options to change the bullet style of an outline? in the slides group in the font group in the paragraph group in the drawing group
Answers: 1
question
Computers and Technology, 25.06.2019 07:30
The can be used to paste text in any order.
Answers: 1
question
Computers and Technology, 25.06.2019 09:10
3.12: the speed of sound the speed of sound depends on the material the sound is passing through. below is the approximate speed of sound (in feet per second) for air, water and steel: air: 1,100 feet per second water: 4,900 feet per second steel: 16,400 feet per second write a program class the speed of sound that asks the user to enter “air”, “water”, or “steel”, and the distance that a sound wave will travel in the medium. the program should then display the amount of time it will take. you can calculate the amount of time it takes sound to travel in air with the following formula: time = distance/1,100 you can calculate the amount of time it takes sound to travel in water with the following formula: time = distance/4,900 you can calculate the amount of time it takes sound to travel in steel with the following formula: time = distance/16,400
Answers: 3
You know the right answer?
In this lab, you add the input and output statements to a partially completed python program. when c...
Questions
question
Mathematics, 28.01.2020 11:31
Questions on the website: 13722363