Start to Code
Software developers like to think about software development as solving a series of problems. Think about the software you use every day.
The challenging part are finding and implementing the solution.
There is a general approach for solving problem by software developers, called 4P's:
- Preparation = understand the problem and think of solution
- Plan = plan out the solution
- Perorm = perform the actions
- Perfect = it doesn't mean the project will be perfect
Try it in FitnessFrog that we will build next.
- Preparation
- Users are needing to know how much time they're exercising
- Users input the number of minutes they exercise.
- Print running total
- Plan
- Prompt the user for minutes exercised
- Add minutes exercised to a running total
- Display the running total in minutes
- Ask repeatedly until user quits
- Perform
- Perfect
We can define our steps ahead in comment section.
namespace ConsoleApp1
{
class Program
{
static void Main()
{
// Prompt the for minutes exercised
// Add minutes exercised to a running total
// Display the running total in minutes
// Ask repeatedly until user quits
}
}
}