Fix the error in the code. In PyCharm, write a program that prompts the user for their
Fantastic news! We've Found the answer you've been seeking!
Question:
Fix the error in the code.
Transcribed Image Text:
In PyCharm, write a program that prompts the user for their name and age. Your program should then tell the user the year they were born. Here is a sample execution of the program with the user input in bold: What is your name? Amanda How old are you? 15 Hello Amanda! You were born in 2005. 1. Write the program. Format your code using best practices. Refer to the zyBooks style guide, if needed, to use proper naming conventions for variables and methods. Use the most appropriate statements with minimal extraneous elements, steps, or procedures. 2. Run the program. 3. Debug the program. Be sure your code produces the correct results. 4. Save and submit your file. In PyCharm, write a program that prompts the user for their name and age. Your program should then tell the user the year they were born. Here is a sample execution of the program with the user input in bold: What is your name? Amanda How old are you? 15 Hello Amanda! You were born in 2005. 1. Write the program. Format your code using best practices. Refer to the zyBooks style guide, if needed, to use proper naming conventions for variables and methods. Use the most appropriate statements with minimal extraneous elements, steps, or procedures. 2. Run the program. 3. Debug the program. Be sure your code produces the correct results. 4. Save and submit your file.
Expert Answer:
Answer rating: 100% (QA)
There is nothing wrong with this code it is completely fine may be error due to pycharm There are so... 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
-
Write a program that prompts the user to enter three strings. Compare the String objects lexicographically and print the middle-valued string. For example, if the three strings were "abcd", "wxyz",...
-
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...
-
The organizing committee for the HCC Celebrates Columbia's 50th Birthday, Inc., has planned a special event commemorating notable people originally from Columbia, MD. The committee has invited the...
-
Graph the solution sets in Problems 316. x 100
-
On January 10, Kristin Pitt uses her Stampfer Co. credit card to purchase merchandise from Stampfer Co. for $1,700. On February 10, Pitt is billed for the amount due of $1,700. On February 12, Pitt...
-
4. Kipkoech and Tanui began a 5000 m race together at the starting line. Kipkoech and Tanui took 72 seconds and 80 seconds respectively to run a 400 m lap. The two athletes were together again at the...
-
Prove that, for any \(\beta>-1\), any bounded Borel function \(h\), and any bounded Borel function \(\varphi\) valued in \(]-1, \infty[\), the processes \[\begin{aligned} & \exp \left[\ln (1+\beta)...
-
Assume that interest rate parity holds and that 90-day risk-free securities yield 5 percent in the United States and 5.3 percent in Germany. In the spot market, 1 euro equals $0.80 dollar. a. Is the...
-
Determine the optimal results for the following formulation using the simplex method (show all iterations) Maximize Z = 5x1 + 9x2 + 7x3 subject to X1 + 3x2 + 2x3 10 3x1 + 4x2 + 2x3 12 2x1 + x2 + 2x3 8
-
Which series has the highest beta. BraveNewCoin Liquid Index for Bitcoin 1D BNC Trading Brave Ne Yellow Green Blue Orange
-
A subcontractor must carry out the following: 1. Shop drawing preparation; 2. Framing & drywall installation; and 3. Drywall finish and paint. Assuming the total scope of work is 200m2 and the...
-
There are 148 calories in a cup of whole milk and only 74 in a cup of skim milk. In switching to skim milk, find the percent of decrease in number of calories per cup. The percent of decrease is %....
-
Make an Excel VBA program with the accompanying necessities; Compose the message "Complete cases" into the cell I1. Counts the complete number of Covid cases (incorporates all cases status, for...
-
Consider the following instructions executed on a computer that has a five-stage pipeline Load R1, 0(RO) Load R2, 4(RO) Add R3, R1, R2 Store R3, 8(RO) 1) How many memory access operations occur when...
-
An electric field of 4.73 x 105 N/C points due west at a certain spot. What is the magnitude of the force that acts on a charge of -9.43 UC at this spot? Number i Units N
-
1. The current Powerball jackpot is estimated to be $193 million. The Powerball lottery is decided every Wednesday and Saturday night by drawing five white balls out of a drum with 69 balls and one...
-
4. A new Uranium mine, in Namibia has decided, as a matter of urgency, to build a new road as an upgrade to the existing one to facilitate efficient transportation of materials. The road works has...
-
The Pletcher Transportation Company uses a responsibility reporting system to measure the performance of its three investment centers: Planes, Taxis, and Limos. Segment performance is measured using...
-
Jerry made the following contributions during 2012: His synagogue (by check).....................................................$680 The Democratic Party (by check)...
-
Matthew borrows $250,000 to invest in bonds. During 2012, his interest on the loan is $30,000. Matthew's interest income from the bonds is $10,000. This is Matthew's only investment income. a....
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The average tax rate on a corporate income of \(\$ 87,000\) is closest to which of the following? a. 15 percent b. 20.5 percent c. 25 percent d. 34 percent
-
True or False: If investment capital is borrowed, the income tax rate equals \(40 \%\), the after-tax MARR is \(12 \%\), and the loan rate is \(15 \%\), then it is best to repay the loan using Plan 1.
-
Calculate the corporate income tax for each of the following corporate taxable incomes. For each, determine the effective (average) tax rate and the marginal tax rate. a. $22,000 b. $93,000 c....
Study smarter with the SolutionInn App