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:

  1. Preparation = understand the problem and think of solution
  2. Plan = plan out the solution
  3. Perorm = perform the actions
  4. Perfect = it doesn't mean the project will be perfect

Try it in FitnessFrog that we will build next.

  1. Preparation
    • Users are needing to know how much time they're exercising
    • Users input the number of minutes they exercise.
    • Print running total
  2. 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
  3. Perform
  4. 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
        }
    }
}

results matching ""

    No results matching ""