Part(A) Write a function called display_birthday_wishes which takes person's name (string), month of birth (integer) and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Part(A) Write a function called "display_birthday_wishes" which takes person's name (string), month of birth (integer) and the year of birth (integer) as inputs and display a message as follows: Laurel (name) Hi, Laurel You are 25 year old this year! 1990 display_birthday_wish (year of birth) Here's a bouquet of Daffodils for you! 3 (month of birth) Save your script as "PA2_Question1A.py". Note: • Format of the message: Hi, <<name>> You are <<current age>> year old this year! Here's a bouquet of <<birth month flower name>> for you! * In Python, the current year (as an integer) can be obtained using the date object as follows: from datetime import date current_year - date.today () - year 1 * Birth Month Flower: Each month has a flower that symbolizes the month of somebody's birth. Following is the list of birth month flowers for each month. Flower Name Month January February Carnations Primroses March Daffodils April May Sweet peas Hawthorn flowers June Roses July August Water lilies Роppes September Asters Calendulas November Chrysanthemums December Holly flowers October Part(A) Write a function called "display_birthday_wishes" which takes person's name (string), month of birth (integer) and the year of birth (integer) as inputs and display a message as follows: Laurel (name) Hi, Laurel You are 25 year old this year! 1990 display_birthday_wish (year of birth) Here's a bouquet of Daffodils for you! 3 (month of birth) Save your script as "PA2_Question1A.py". Note: • Format of the message: Hi, <<name>> You are <<current age>> year old this year! Here's a bouquet of <<birth month flower name>> for you! * In Python, the current year (as an integer) can be obtained using the date object as follows: from datetime import date current_year - date.today () - year 1 * Birth Month Flower: Each month has a flower that symbolizes the month of somebody's birth. Following is the list of birth month flowers for each month. Flower Name Month January February Carnations Primroses March Daffodils April May Sweet peas Hawthorn flowers June Roses July August Water lilies Роppes September Asters Calendulas November Chrysanthemums December Holly flowers October
Expert Answer:
Answer rating: 100% (QA)
from datetime import date lCarnationsPrimrosesDaffodilsSweet peasHawthorn flowers... View the full answer
Related Book For
Database Systems Design Implementation and Management
ISBN: 978-1285196145
11th edition
Authors: Carlos Coronel, Steven Morris
Posted Date:
Students also viewed these algorithms questions
-
You are 25 years old and decide to start saving for your retirement. You plan to save $5000 at the end of each year (so the first deposit will be one year from now), and will make the last deposit...
-
You are 25 years old and need to have $1,000,000 in savings before you retire at age 75. You estimate you will receive an annual return of 8% on investments. a. How much do you need to put into...
-
You are 25 years old and inherit $65,000 from your grandmother. If you wish to purchase a $100,000 boat to celebrate your 30th birthday, what compound annual rate of return must you earn?
-
Using the table of implied volatilities below ("volatility surface"), calculate the implied volatility a trader would use for pricing an 8-month option with K/S0 = 1.04. Hint: Interpolate linearly. 1...
-
Describe low- and high-context cultures.
-
Listed here are three different organizations at various stages of the product life cycle. Explain the strategy considerations they might undertake for the specific mar- keting mix variable listed....
-
Water flows from a large tank as shown in Fig. P3.90. Atmospheric pressure is \(14.5 \mathrm{psia}\), and the vapor pressure is 1.60 psia. If viscous effects are neglected, at what height, \(h\),...
-
Three divisions of Jameson Co. report the following sales and operating data: Required: 1. Compute the ROI for each division, using the formula stated in terms of margin and turnover. 2. Compute the...
-
The imposition of a ceiling on the length of time a criminal case should take to get to trial is a multifaceted issue, balancing the defendant's right to a timely trial with the complexities of...
-
Here are simplified financial statements for Phone Corporation in 2020: INCOME STATEMENT (Figures in $ millions) Net sales Cost of goods sold Other expenses Depreciation Earnings before interest and...
-
Discuss your thoughts and opinions regarding music being used as a form of protest or social commentary. Is it necessary? It is helpful or useful? Does it serve the composer or performers intended...
-
What are the net benefits of the following teen pregnancy prevention program: The costs of the program were estimated to be $20,000. The benefits were estimated to be $10,000.
-
Define Leadership and Transactional Leadership with Examples? Choose a Transactional Leadership Style and Explain with Headings that why it inspired you? Elaborate and discuss how that leadership...
-
What is transformational leadership ? what are the components of transformational leadership ? what is the difference between transformational leadership and transactional leadership ? what are the...
-
Give an examples of democratic leadership style based on behaviors in a clinical setting. Give an example of self starter followership style based on behaviors in a clinical what are strengths...
-
When Ben's hourly wage increases from 20 to 25 dollars, he responds by working less.Illustrate Joe's decision using indifference curve analysis.Does Joe have a stronger preference for leisure or...
-
The research department of a large financial institution provided inflation expectations for the next five years. According to the forecasts, UK will have 1.75% more inflation than France and 3.5%...
-
At 31 December 20X9, the end of the annual reporting period, the accounts of Huron Company showed the following: a. Sales revenue for 20X9, $ 2,950,000, of which one- quarter was on credit. b....
-
Write a query to display the customer code, first name, last name, and sum of all invoice totals for customers with cumulative invoice totals greater than $1,500. Sort the output by the sum of...
-
What is the difference between DAO and RDO?
-
What is a stored procedure, and why is it particularly useful? Give an example.
-
Thor Industries manufactures Airstream and other recreational vehicles (RVs). In In June 2023, an article in the Wall Street Journal stated that the inventories of RVs held by Thor dealers had risen...
-
An article in the New York Times in early 2009 stated that even though The the U.S. economy was in a recession, and movie ticket sales had increased by 17.5 percent. In contrast, during 2020, ticket...
-
An article on barrons.com observed that the U.S. dollar has been droppingand thats good news for the stock market and companies that get a large chunk of their sales from overseas. a. What does the...
Study smarter with the SolutionInn App