Write a program that determines the month of the year based on the value of a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that determines the month of the year based on the value of a variable called month. The variable will be a number from 1 to 12 ( 1 is January, 2 is February, etc.). Use a print statement to write the month to the screen. Important, you will need to declare the variable month and assign it a value in order to test your code. However, do not submit your code to be graded with the variable declaration and assignment. The auto-grader will declare the variable for you and give it a value. Click on the Try it button to test your code. TRY IT If your code is not working, try to execute your code line by line with the Code Visualizer. Code Visualizer Your program should handle a variable mooth that has a number value between 1 and 12. Print the month of the year based on this number (1 is January, etc) Remember, do not declare the variable month in your code when you submit it. The auto-grader will declare the variable for you. Write a program that determines the month of the year based on the value of a variable called month. The variable will be a number from 1 to 12 ( 1 is January, 2 is February, etc.). Use a print statement to write the month to the screen. Important, you will need to declare the variable month and assign it a value in order to test your code. However, do not submit your code to be graded with the variable declaration and assignment. The auto-grader will declare the variable for you and give it a value. Click on the Try it button to test your code. TRY IT If your code is not working, try to execute your code line by line with the Code Visualizer. Code Visualizer Your program should handle a variable mooth that has a number value between 1 and 12. Print the month of the year based on this number (1 is January, etc) Remember, do not declare the variable month in your code when you submit it. The auto-grader will declare the variable for you.
Expert Answer:
Answer rating: 100% (QA)
Python code Input The variable month with a value from 1 to 12 Outpu... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Piper Recreational Vehicles (PRV) modifies vans into recreational vehicles. PRV offers two models, the XC-2 and XC-6, which differ in the quality of the basic van and the workmanship and machining...
-
In this project, we will write a program that controls a quiz show, much like the many popular TV shows. The program will read in a group of questions and their multiple choice answers, storing them...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Which of these is NOT one of the validity conditions for a t-test for the slope of a regression line? A. We should have a large sample size, typically n 20. B. The scatterplot of the sample data...
-
Prob. 9.169 for the component described in the problem indicated, determine (a) The principal moments of inertia at the origin, (b) The principal axes of inertia at the origin. Sketch the body and...
-
Solve for x(t) in the system shown in Figure P4.5 if f (t) is a unit step. x(t) M = 2 kg Ks K, = 6 N/m fy = 2 N-s/m f(1) = u(1)N 000 M f(t) FIGURE P4.5
-
Donating Blood to Grandma? Can young blood help old brains? Several studies in mice indicate that it might. In the studies, old mice (equivalent to about a 70-year-old person) were randomly assigned...
-
Kimball Company is a small retail business that uses a manual data processing system similar to the one described in the chapter. Among its special-purpose journals are multicolumn cash receipts and...
-
The following book and fair values were available for Westmont Company as of March 1. Book Value Inventory Land Buildings $ 551,500 771,000 1,895,000 Fair Value $ 515,250 1,050,750 Customer...
-
The following data relate to the operations of Shilow Company, a wholesale distributor of consumer goods: Current assets as of March 31: Cash $ 8,000 Accounts receivable 20,000 Inventory 36,000...
-
You are the accountant for Medieval Castles, Inc. Preapre the journal entries to record the transactions below using the perpetual inventory method. 4 4 Points June 3 Purchased 2 0 0 play castles at...
-
Write named CHECK constraints for the customer balance is greater than or equal to zero and customer state is one of CO or CA in the CREATE table statement to add the named CHECK constraints ?
-
A copy machine cost $39,000 when new and has accumulated depreciation of $25,000. Suppose Print Center sold the machine for $14,000. What is the result of this disposal transaction?
-
In a city water-filtration plant, it was desired to filter 5000 gal of water per hour through a sand filter bed to remove all the suspended matter and solids from the water. A vertical...
-
For the reaction 2HI(g) H(g) +12(g), it was found that the rate of HI to be R = 5.0 10 mmolHI -1 HI *I**s* what is (a) the average rate of formation of H in the same reaction and (b) the unique...
-
On June 2 0 , 2 0 1 1 , the Company . . . finalized the Company s acquisition from Unilever of the Sanex personal care business . . . for an aggregate purchase price of $ 9 6 6 . . . . This...
-
The factoring of accounts receivable consists of: Multiple Choice O selling accounts receivable to raise working capital. selling accounts receivable at a profit. buying accounts receivable from a...
-
Jax Incorporated reports the following data for its only product. The company had no beginning finished goods inventory and it uses absorption costing. $ 57.30 per unit $ 10.30 per unit $ 7.80 per...
-
If Charles, a 16-year-old child model, earns $50,000 a year and is completely self supporting even though he lives with his parents, can his parents claim him as a dependent? Why or why not?...
-
Greg died on July 1, 2012, and left Lea, his wife, a $50,000 life insurance policy which she elects to receive at $5,000 per year plus interest for 10 years. In the current year, Lea receives $6,200....
-
Mary paid $2,000 of state income taxes in 2012. The total sales tax she paid during 2012 was $5,500, which included $3,000 for the cost of a new car. How should Mary treat the taxes paid on her 2012...
-
Input information from the SBA Personal Financial Statements given to Sharptop Bank into a spreadsheet. a. Separate personal items (e.g., residence) from business items (e.g., inventory). b....
-
Compare your recalculated ending inventory to that given to Sharptop Bank and to Southern Appalachian Insurance. Is either estimated ending inventory materially different from that reported on the...
-
What accuracy certifications on the tax return and bank financial statement address providing materially inaccurate information?
Study smarter with the SolutionInn App