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 trial

C# Intermediate C# Abstraction Wrap Up

Virtual Pet store, not sure where to start

I watched the whole intermediate course and thought I understood it. Now that I want to do a coding challenge I feel completely lost. I would like to tackle the pet store but no idea where and how to start. Maybe my logic/problem solving needs to be worked on, or maybe requirements gathering. Does anyone have any guidance or advice for me?

3 Answers

Steve Agusta
Steve Agusta
6,221 Points

Can you post code showing what you've got so far?

I didn't start because I would be so appreciative if someone can guide me on concrete steps how to approach such a project. I feel like I don't have a step by step process as to how to accomplish a project. Is there such a thing out there that will help you along the steps, like requirement gathering etc...

Steve Agusta
Steve Agusta
6,221 Points

What I usually do when I'm stuck on something like this is go back and review the videos that covered the topic that you're working on, or sometimes you have to watch several of them. Also, other sites such as Microsoft are very helpful. So first I would work on what the project requirements are, do you have those?

I think my first issue is figuring out the requirements. I know how to write code, I just don't know what the code should do.

Steve Agusta
Steve Agusta
6,221 Points

Here's the description from the teacher's notes:

The pets should have a wellness quotient that increases with how well they are cared for. They should also complain when they need care. They should require care between certain times of the day so you’ll want to use System.DateTime as part of your program. Use what you learned in this course to make it easy to add character to your pets such as different behaviors that it has or needs that its owner should provide.

So I would say the first thing is we'll want to create a Pet class with properties such as name and wellness, and a method for them to notify us when they need care. Can you write a class file showing this?