Click here to Skip to main content
15,890,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: data structure design for data aggregation Pin
George_George21-May-08 0:30
George_George21-May-08 0:30 
QuestionExample code that takes as its first argument one of the words 'sum,' 'product,' 'mean,' or 'sqrt' and for further arguments a series of numbers. The program applies the appropriate function to the series. Pin
smileguy20-May-08 2:25
smileguy20-May-08 2:25 
AnswerRe: Example code that takes as its first argument one of the words 'sum,' 'product,' 'mean,' or 'sqrt' and for further arguments a series of numbers. The program applies the appropriate function to the series. Pin
phannon8620-May-08 2:36
professionalphannon8620-May-08 2:36 
AnswerGood luck with your homework. Pin
CPallini20-May-08 2:36
mveCPallini20-May-08 2:36 
AnswerRe: Example code that takes as its first argument one of the words 'sum,' 'product,' 'mean,' or 'sqrt' and for further arguments a series of numbers. The program applies the appropriate function to the series. Pin
Colin Angus Mackay20-May-08 2:38
Colin Angus Mackay20-May-08 2:38 
AnswerRe: Example code that takes as its first argument one of the words 'sum,' 'product,' 'mean,' or 'sqrt' and for further arguments a series of numbers. The program applies the appropriate function to the series. Pin
Dan Neely20-May-08 2:59
Dan Neely20-May-08 2:59 
AnswerRe: Example code that takes as its first argument one of the words 'sum,' 'product,' 'mean,' or 'sqrt' and for further arguments a series of numbers. The program applies the appropriate function to the series. Pin
Christian Graus20-May-08 3:05
protectorChristian Graus20-May-08 3:05 
AnswerRe: Example code that takes as its first argument one of the words 'sum,' 'product,' 'mean,' or 'sqrt' and for further arguments a series of numbers. The program applies the appropriate function to the series. Pin
PIEBALDconsult20-May-08 15:01
mvePIEBALDconsult20-May-08 15:01 
Sure:

namespace Homework
{
    public static class Math
    {
        [System.STAThreadAttribute()]
        public static int
        Main
        (
            string[] args
        )
        {
            if ( args.Length > 1 )
            {
                System.Console.WriteLine ( DoMath ( args ) ) ;
            }
 
            return ( 0 ) ;
        }
    }
}


Now just write the DoMath method.
GeneralRe: Example code that takes as its first argument one of the words 'sum,' 'product,' 'mean,' or 'sqrt' and for further arguments a series of numbers. The program applies the appropriate function to the series. Pin
Peter Josefsson Sweden23-May-08 16:15
Peter Josefsson Sweden23-May-08 16:15 
GeneralRe: Example code that takes as its first argument one of the words 'sum,' 'product,' 'mean,' or 'sqrt' and for further arguments a series of numbers. The program applies the appropriate function to the series. Pin
PIEBALDconsult23-May-08 16:25
mvePIEBALDconsult23-May-08 16:25 
QuestionNew Methods for existing types? Pin
Reelix20-May-08 2:22
Reelix20-May-08 2:22 
AnswerRe: New Methods for existing types? Pin
ptr2void20-May-08 2:25
ptr2void20-May-08 2:25 
GeneralRe: New Methods for existing types? Pin
Reelix20-May-08 2:31
Reelix20-May-08 2:31 
AnswerRe: New Methods for existing types? Pin
CPallini20-May-08 2:34
mveCPallini20-May-08 2:34 
GeneralRe: New Methods for existing types? Pin
Reelix20-May-08 2:42
Reelix20-May-08 2:42 
GeneralRe: New Methods for existing types? Pin
CPallini20-May-08 2:49
mveCPallini20-May-08 2:49 
GeneralRe: New Methods for existing types? Pin
Reelix20-May-08 2:54
Reelix20-May-08 2:54 
AnswerRe: New Methods for existing types? Pin
laserbaronen20-May-08 3:08
laserbaronen20-May-08 3:08 
GeneralRe: New Methods for existing types? Pin
laserbaronen20-May-08 3:11
laserbaronen20-May-08 3:11 
GeneralRe: New Methods for existing types? Pin
Reelix20-May-08 3:28
Reelix20-May-08 3:28 
GeneralRe: New Methods for existing types? [modified] Pin
laserbaronen20-May-08 3:33
laserbaronen20-May-08 3:33 
AnswerRe: New Methods for existing types? Pin
buchstaben20-May-08 3:12
buchstaben20-May-08 3:12 
GeneralRe: New Methods for existing types? Pin
PIEBALDconsult20-May-08 15:05
mvePIEBALDconsult20-May-08 15:05 
GeneralRe: New Methods for existing types? Pin
buchstaben20-May-08 20:26
buchstaben20-May-08 20:26 
QuestionStreamReader/StreamWriter Pin
George_George20-May-08 1:43
George_George20-May-08 1:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.