C++ Program

I gang Opslået 6 år siden Betalt ved levering
I gang Betalt ved levering

Project 7.a

Write a function called findMedian that takes two parameters - an array of int and the size of the array.  The function should return the median of the array, which will require sorting the array (you can use the built-in sort function from the examples).  This will change the original array, but that's okay for this assignment.  If you're not familiar with calculating the median, please look that up.  Remember that it's different for odd and even groups of values.  If you are testing your code by calling it from a different file, remember to have a function prototype for findMedian in that file.

The file must be named: findMedian.cpp.

 

Project 7.b

Write a class called Person that has two data members - a string variable called name and a double variable called age.  It should have a constructor that takes two values and uses them to initialize the data members.  It should have get methods for both data members (getName and getAge), but doesn't need any set methods.

Write a separate function (not part of the Person class) called stdDev that takes two parameters - an array of Person objects and the size of the array - and returns the standard deviation of all the ages (the population standard deviation that uses a denominator of N, not the sample standard deviation, which uses a different denominator).  

The files must be named [login to view URL], [login to view URL] and stdDev.cpp.

C programmering C# Programmering C++ Programmering Java Software Arkitektur

Projekt ID: #15595833

Om projektet

2 bud Remote projekt Aktiv 6 år siden

2 freelancere byder i gennemsnit $28 timen for dette job

umg536

please ignore the bid amount we will discuss the price later in the chat after we have discussed the project thoroughly Relevant Skills and Experience: . Proposed Milestones: 30 - . Hi losgatos95032! please inbox me to Flere

$30 USD in 2 dage
(29 bedømmelser)
6.4
harshdaga

Hi, I've got quite some experience with C++ and I'm sure I can help you out with your project. May I get more details over the chat? Relevant Skills and Experience C++ Proposed Milestones $25 USD - Completion

$25 USD på 1 dag
(91 bedømmelser)
5.6