Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;



namespace First
{
    class Program
    {
        static void Main(string[] args)
        {

            int  pre_forcast;
            int  pre_period;
             douple a = 0.4 ;
            Console.WriteLine("what is Previous Forecast ? :");


            pre_forcast = System.Convert.ToInt32(Console.ReadLine());


            Console.WriteLine("what is  Previous Period’s Actual Demand ? :");


            pre_period = System.Convert.ToInt32(Console.ReadLine());

            int New_Forecast = (int) (pre_forcast + a * (pre_period - pre_forcast ));

            Console.WriteLine("The New Forecast : ",  New_Forecast );
            Console.ReadLine();

        }
    }
}
Posted
Comments
Florian Braun 14-Apr-15 3:27am    
what exactly is you question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900