Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSteven Paschak
1,465 PointsBug in Question 2
The following code is a copy and paste of the instructor's notes from the previous video. It should work, am I missing something?
string bookTitle = System.Console.ReadLine();
1 Answer
andren
28,558 PointsYour code for task 2 is correct, but you should take a look at the notice that is written right above the challenge area when you do tasks. It states:
In each task of this code challenge, the code you write should be added to the code from the previous task.
It's not the most straightforward sentence, but in essence it is trying to tell you that when doing multi-task challenge on Treehouse you have to keep all of the code from previous tasks in order to advance to the next step.
So while your solution does solve the requirements laid out in task 2, you cannot complete the challenge because you removed the code you wrote in task 1. If you add the code from task 1 back again like this:
System.Console.Write("Enter a book title: ");
string bookTitle = System.Console.ReadLine();
Then you will be able to complete the challenge.
eric bates
863 Pointseric bates
863 PointsThis does not work I need help
andren
28,558 Pointsandren
28,558 PointsThe code I posted is the solution to this challenge so it definitively works, I have verified that myself on numerous occasions. If you need help with this exercise you'll need to be a bit more specific about what your issue is, and what your code currently looks like.
Ideally you should also create your own post for this issue, asking for help in old posts isn't the most efficient way of getting help. If you make a new post there will be more people that will see it, and therefore you will likely get help faster than by posting about the issue here.