Question: So my code gets the first 3 parts correct, then the final part is a different name and age. I know how to write the

So my code gets the first 3 parts correct, then the final part is a different name and age. I know how to write the code to get both correct but not at the same time, this is confusingSo my code gets the first 3 parts correct, then the final

part is a different name and age. I know how to writethe code to get both correct but not at the same time,

14.1 CSE 102 zyLab training: Developing larger programs (projects) Most zyLabs are designed to be completed in 20 - 25 minutes and emphasize a single concept. However, some zyLabs (such as the projects) are more comprehensive and should take longer to complete. Incremental development is a good programming practice and is the process of writing, compiling, and testing a small amount of code, then repeating the process with a small amount more (an incremental amount), and so on. Here is a sample problem specification: Ask the user for their name and age, then print out a greeting to them, along with another message, and how old they will be in a year. An example input and output is as follows: What is your name? Jimbo Jones Hello, Jimbo Jones How old are you? 19 Wow, you're older than my brother! Just think, one year from today you'll be 20 This simple example could be written all in one fell swoop, but we are using this simple example to show the process you should use in your projects, and in any larger program. So do the following steps in the order given: - First ask for the user's name and print out the greeting. Then submit it for grading. If you have errors fix them and repeat until you get the first test case to pass. This allows you to focus on any errors with whitespace or spacing in the first part to make sure you have those down before moving on (There are intentionally some weird spacing requirements to get you used to spotting these in the feedback given from the auto-grader) - Next implement the part that asks for the age, and prints the message. Submit. Fix if necessary. An additional test case will pass. - Continue to implement one step at a time and resubmit for grading. If there are any errors, fix those first before trying to write more code for the remaining parts. - Continue until all steps are completed and all tests pass. Do yourself a favor and save yourself some stress by not trying write an entire large program all at once. This is like trying to eat a 12 inch sandwich in one bite. Break it down into pieces and the process will be much less frustrating since you will know where to focus your debugging efforts. Programming bugs are harder and harder to find the larger a program is, so by developing incrementally instead of big bang style, you will be making your life easier. 1 name = 'Jimbo Jones' age =19 3 print ('What is your name?', end=' '), print('Hello, ', name) print('How old are you?', end=' '), print('Wow, youl're older than my brother!') print('Just think, one year from today you\'ll be', age+1) 2:Compare output Input Your output correctly What is your name? Hello, Jimbo Jones starts with How old are you? Wow, you're older than my brother! 3:Compare output Input \begin{tabular}{l|l} Your output & What is your name? Hello, Jimbo Jones \\ How old are you? Wow, you're older than my brother! \\ Just think, one year from today you'll be 20 \end{tabular} 4:Compare output Output differs. See highlights below. Input What is your name? Hello, Jimbo Jones Your output How old are you? Wow, you're older than my brother! Just think, one year from today you'll be 20 What is your name? Hello, Janey Powell Expectedoutput How old are you? Wow, you're older than my brother! Just think, one year from today you'll be 23

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!