Write a program called aniguess that: (15 points) a. In a comment on the first line...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program called aniguess that: (15 points) a. In a comment on the first line gives your full name (first and last). b. Creates a variable called atype equal to the value "dog". c. Asks the user to guess what type of animal the program is thinking of and assigns the user's input to the variable uguess. d. Includes an if-statement in which... (Hint: You should use both elif and else.) i. If the value of uguess is equal to the value of atype, congratulates the user on an excellent guess. ii. Otherwise, if the value of uguess is "meteor", tells the user that what they've guessed isn't an animal. iii. Otherwise, if the value of uguess has the same number of characters in it as the value of atype, congratulates the user on guessing something with the right number of letters. iv. Finally, if none of the above are true, tells the user (on one line, using placeholders) that the actual animal isn't [whatever they guessed], but, instead, it's [value of of atype]. Write a program called aniguess that: (15 points) a. In a comment on the first line gives your full name (first and last). b. Creates a variable called atype equal to the value "dog". c. Asks the user to guess what type of animal the program is thinking of and assigns the user's input to the variable uguess. d. Includes an if-statement in which... (Hint: You should use both elif and else.) i. If the value of uguess is equal to the value of atype, congratulates the user on an excellent guess. ii. Otherwise, if the value of uguess is "meteor", tells the user that what they've guessed isn't an animal. iii. Otherwise, if the value of uguess has the same number of characters in it as the value of atype, congratulates the user on guessing something with the right number of letters. iv. Finally, if none of the above are true, tells the user (on one line, using placeholders) that the actual animal isn't [whatever they guessed], but, instead, it's [value of of atype].
Expert 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
-
Name Kally Yanes Company Name Fiscal Years Used: Current Year 2023 Walmart Inc. (WMT) Ratios (a) Indicate the following ratios for the last TWO fiscal years and indicate whether the trend is...
-
Write a program called ezstart.py that: a. In a comment on the first line gives your full name (first and last). b. Creates a string variable called myname that's equal to your name. c. Creates an...
-
Flint Inc. issued $ 1 , 0 6 0 , 0 0 0 of 1 0 % , 1 0 - year bonds on June 3 0 , 2 0 2 5 , for $ 9 3 8 , 4 1 4 . This price provided a yield of 1 2 % on the bonds. Interest is payable semiannually on...
-
In Problems 1158, perform the indicated operation, and write each expression in the standard form a + bi. 6i 3 - 4i 5
-
You are given the following information for transactions by Schwinghamer Co. All transactions are settled in cash. Returns are normally not damaged and are restored immediately to inventory for...
-
Using the information in P, prepare the entries to 1) Distribute the weekly payroll, 2) Record the costs and liabilities related to the bonus, vacation, and holiday pay, assuming that the fringe...
-
The graphs in YOUR TURN 12.6 represent social communities. The vertices are individuals and the edges are social connections. Use the graphs to answer the questions. 1. Which graph has the most...
-
During 2014, William purchases the following capital assets for use in his catering business: New passenger automobile (September 30). $21,500 Baking equipment (June 30) 6,500 Assume that William...
-
Disqualification of an auditor is defined under section 226(3)of the Companies Act,1956 in a a)Positively b)Negatively c)Exhaustively d)Inclusively
-
Sketch vo for each network of Fig. 2.177 for the input shown. Would it be a good approximation to consider the diode to be ideal for both configurations? Why? 120 V Si Si E - 20V
-
\f
-
Which accounting concept is being applied when an adjusting entry is made at the end of the fiscal period to record accrued revenue?
-
Rena Jacques and George Nadler are partners in a paint and decorating store. The store operates on a yearly fiscal period. At the end of each year, an accountant is hired to prepare financial...
-
TayVon Johnson, a new accounting department employee, questions the practice of recording interest income when a note is dishonored. Instead, he believes that the interest earned on the note should...
-
Because of a temporary cash shortage, Balister Company requested an extension of time on its purchases on account. Balisters regular vendor, Custom Products, requires that a 12% note be signed for...
-
Employers often screen prospective employees for written communication skills. As an applicant, you may be asked to write a short essay. Therefore, it is important for you to practice preparing...
-
Use the table of values to calculate the derivative of the function at the given point. X 1 4 6 f(x) 4 0 10 f'(x) 5 7 8 g(x) 4 1 6 g'(x) 51 7 (Give your answer as a whole number.) d dx f(x) =
-
Rowland Textile Inc. manufactures two products: sweatshirts and T-shirts. The manufacturing process involves two activities: cutting and sewing. Expected overhead costs and cost drivers are as...
-
Sherry rents her vacation home for 6 months and lives in it for 6 months during the year. Her gross rental income during the year is $4,000. Total real estate taxes for the home are $950, and...
-
Steve Jackson (age 51) is a single taxpayer living at 3215 Pacific Dr., Del Mar, CA 92014. His Social Security number is 465-88-9415. In 2012, Steve's earnings and income tax withholding as the...
-
In 2012, Margaret and John Murphy are married taxpayers who file a joint tax return with AGl of $25,000. During the year they incurred the following expenses: Hospitalization insurance...
-
Analyze a scatter plot (Learning Objectives 3, 4)} The local Holiday Inn collected seven months of data on the number of room-nights rented per month and the monthly utilities cost. The data was...
-
Use the high-low method (Learning Objective 4)} Refer to the Lube-for-Less data in S6-8. Use the high-low method to determine the variable and fixed cost components of Lube-for-Less's operating...
-
Prepare a contribution margin income statement (Learning Objective 6) Pam's Quilt Shoppe sells homemade Amish quilts. Pam buys the quilts from local Amish artisans for \(\$ 250\) each, and her shop...
Study smarter with the SolutionInn App