Part bwrite a loop that fills a vector v with ten random


Class Implementation and Vector LoopsPart A

Implement all member functions of the following class:

class Person

{

public:

    Person();

    Person(string pname, int page);

    string get_name() const;

    int get_age() const;

    void set_name(string pname);

    void set_age(int page);

private:

    string name;

    int age;  //0 if unknown

};

Part BWrite a loop that fills a vector V with ten random numbers between 1 and 100. 

Part CWrite a loop that fills a vector V with ten different random numbers between 1 and 100.

Request for Solution File

Ask an Expert for Answer!!
Chemistry: Part bwrite a loop that fills a vector v with ten random
Reference No:- TGS01120801

Expected delivery within 24 Hours