Computers and Technology
Computers and Technology, 31.01.2022 22:40, kbracey

PLEASE HELP! I will award any one who provides me with the correct code that produces no errors with brainliest! For this assignment, you will create a calendar program that allows the user
to enter a day, month, and year in three separate variables as shown below.
Day:
Month:
Year:
Then, your program should ask the user to select from a menu of choices
using this formatting
Menu:
1) Calculate the number of days in the given month.
2) calculate the number of days left in the given year.

Your program must include the three following functions:
leap_year
number_of_days
days_left

Parameters:
leap_year(y)
number_of_days(m, y)
days_left(d, m, y)

Sample Output 1:

Please enter a date
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days left in the given year.
31

Sample Run 2:

Please enter a date
Day: 21
Month: 6
Year: 2016
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days left in the given year.
2
193

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 05:20, jaylenmiller437
Which operating system is a version of linux?
Answers: 1
image
Computers and Technology, 23.06.2019 08:30, Calirose
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, cravens511peeelg
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
image
Computers and Technology, 23.06.2019 18:30, janny48
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
Do you know the correct answer?
PLEASE HELP! I will award any one who provides me with the correct code that produces no errors with...

Questions in other subjects:

Konu
Computers and Technology, 30.01.2020 05:49