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...
-
In a certain economy, the expectations-augmented Phillips curve is and a. Graph the Phillips curve of this economy for an expected inflation rate of 0.10. If the central bank chooses to keep the...
-
In the offices of Meridian Capital, a boutique investment firm known for its creative investment strategies, a seasoned portfolio manager named Jordan has just pitched a novel idea to the investment...
-
Describe surrogacy and the legal and ethical issues that can arise.
-
An accountant wishes to predict direct labor cost (y) on the basis of the batch size (x) of a product produced in a job shop. Data for 12 production runs are given in Table 13.5, along with the Excel...
-
In what ways do Lean Management practices facilitate the cultivation of a culture of continuous improvement and empower employees to actively engage in problem-solving initiatives aimed at enhancing...
-
What two major themes will be emphasized in succeeding chapters?
-
cost structure for global shippers inc : a. what is the break even point in terms of volume for options A , options B
-
Although Malaysia has made a concerted effort to preserve and enhance environmental quality, it is still confronted with the competing demands of greater urbanisation and environmental preservation. ...
-
Choose an environmental law or policy (please don't choose Clean Air Act...challenge yourselves). Why did the legislation/policy come about, and what has been its effect on the environment ?
-
10. An accountant needs to allocate the principal and simple interest on a loan payment into the appropriate ledgers. If the amount received was $10,267.21 for a loan that spanned April 14 to July 31...
-
Do we really need a set of specialty statutes to govern environmental law? Can we not just make do with the remedies and regimes provided under common law? What are specific examples of the...
-
describe the impacts you think the area of business law that employment law, contract law, finance law, or environmental law have society as a whole?
-
Text Summarization Assignment. Answer the following; Please ensure to include screenshots of your work in python and link to the data used. # Import Libraries Step 1: Import Data Import and clean...
-
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.
-
Make an energy diagram for gas B in Figure 20.4. Figure 20.4 When gases of different temperatures are placed in thermal contact, energy is transferred thermally from the hotter to the cooler gas...
-
Suppose you were to play the two film clips shown in Figure 20.7 backward. Would the resulting processes be possible? Figure 20.7 Quasistatic versus non-quasistatic expansion of a cylin- der...
-
(a) What are the SI units of \(Q\) ? (b) For the process depicted in Figure 20.2a, make an energy diagram for each of these systems: (i) water, pot, and flame; (ii) pot and flame; (iii) pot. Figure...
Study smarter with the SolutionInn App