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
-
In Problem 8.40, determine the smallest couple le MC for which equilibrium will be maintained. S in. 13 in.
-
For the system shown in Figure P7.3, what steady-state error can be expected for the following test inputs: 10u(t); 10tu(t); 10t 2 u(t). R(s) + 3 C(s) s+4 2 6s FIGURE P7.3
-
In 16 experiments studying the electrical behavior of single cells, 12 use micro-electrodes made of metal and the other 4 use micro-electrodes made from glass tubing. If 2 of the experiments are to...
-
Determine the force in each member of the double scissors truss in terms of the load P and state if the members are in tension or compression. B L/3 -L13 L13- P.
-
Lamar has the following data: Selling price $ 40 Variable manufacturing cost $ 22 $165,000 per month Fixed manufacturing cost Variable selling & administrative costs $ 6 Fixed selling &...
-
Identify at least one researchable question for each of the following issues (in questions 612). 6. A cable network has just entered into an agreement granting it the right to show reruns of a hit TV...
-
Selby Co. has the following two notes outstanding on Dec. 31, 2018 $10,000, 1 year, 10% note receivable from ABC Co. dated 6/1/19 - $7,000, 6 month, 11% note payable due to JKL Co. dated 9/1/19 Selby...
-
Wade Retailers, a nationwide department store chain, currently processes all of its credit sales payments at its Chicago headquarters. The firm is considering the establishment of a lockbox...
-
On March 1, Year 1, a company issued 12% bonds, dated March 1, with a face amount of $720,000. . The bonds sold for $714,000 and mature on February 28, Year 21 (20 years). Interest is paid...
-
The market information: Current Stock Market Return 11.25% Current T-Bill Price $979.43 Historic T-Bill Average Return 2.80% Historic Stock Market Average Return 8.10% Stock Beta 1.54 What is the...
-
Last year, Hoopla Nets reported the simplified financial statements shown below (assuming no income taxes). The firm is forecasting a sales increase of 6 percent. Assets and expenses are proportional...
-
1. Your roommate asks to borrow $500 and agrees to pay it in 45 days with interest rate of 4%. How much interest will you earn? 2. The local school district you live in selling bonds for $2000 that...
-
In his travelogue, aptly titled California: How to Go There, And What to See by the Way, Nordhoff spoke of train dining in glowing terms: "The cooking is admirable, the service excellent, and the...
-
1. Using the information from Problem 16-4B, prepare a statement of cash flows for Lim Garden Supplies Inc. using the direct method of presenting cash flows from operating activities. 2. How does Lim...
-
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...
-
For the particular case of hard spheres, the pressure in the virial equation of state is determined by evaluating the pair correlation function at contact. Write the pair correlation function as...
-
Use a virial expansion approach to determine the first few nontrivial order contributions to the pair correlation function \(g(r)\) in \(d\) dimensions. Show that the pair correlation function is of...
-
Show that, in the case of a degenerate gas of fermions \(\left(T \ll T_{F} ight)\), the correlation function \(g(r)\), for \(r \gg \hbar / p_{F}\), reduces to the expression \[g(r)-1=-\frac{3(m k...
Study smarter with the SolutionInn App