Write a loop that fills a vector v

Assignment Help Chemistry
Reference no: EM13840581

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.

Reference no: EM13840581

Questions Cloud

Technological advancements-challenges business and society : Technological Advancements and Challenges" Business and Society. In a departure from its normal business operations Apple has recently teamed up with a bio-tech company to investigate the possibility of cloning human organs. You have been tasked with..
Write a program to sort name and age : Write a program to sort name and age. The program takes input as the 1) first name which can be 2 to 10 characters 2) Data of birth as day, month, and year. The program sorts the name from a to z. The output of your program are 1) sorted names and 2)..
As continuation of your healthcare venture : As a continuation of your healthcare venture, to start up an urgent care center. You want to explore more innovative tools and be able to enhance and optimize your strategies to compete in healthcare.
Most important step in the decision-making process : Why is identification of the real problem the first and most important step in the decision-making process? How does attribution theory explain mistakes that can be made as managers and employees work together to explain why the problem occurred?
Write a loop that fills a vector v : 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.
Natural law-deontology-utilitarianism and virtue theory : The most common ethical theories applied to health care include: natural law, deontology, utilitarianism, and virtue theory. Which of these theories most closely align to your personal values? Why? Explain your answer.
Motivational theory applications argue : Motivational theory applications argue for recognizing individual differences. They also suggest paying attention to members of diverse groups. Is this a contradiction? Why or why not?
Use both positive and negative reinforcement : If you, as a manager, had to help change an employee’s behavior to make him or her more productive, what course of action would you take? How might you use both positive and negative reinforcement?
Company makes product donations to the school : The following is a quote from a news article: "If a company makes product donations to the school- computers for instance - then the image of a. company goes up as graduate students use the company's products." Does such action consistent with a comp..

Reviews

Write a Review

Chemistry Questions & Answers

  Explain increasing the surface area of mno2(s)

This exothermic reaction is catalyzed by MnO2(s). 2H2O2(aq) => 2 H2O(l) + O2(g) Which of the following will increase the rate of this reaction? 1. Raising the temperature 2. Increasing the surface area of MnO2(s)

  Calculate kc at a certain temperature

At a certain temperature 0.860 mol of SO3 is placed in a 2.00-L container. At equilibrium, 0.100 mol of O2 is present. Calculate Kc.

  A certain first-order reaction a to products has a rate

a certain first-order reaction a to products has a rate constant of 4.20times10-3 at 45 degrees celcius. how many

  Explain sodium thiosulfate solution

How do you determine the concentration of thiosulfate ions in 0.25M sodium thiosulfate solution

  What are the values of delta e and delta h for the system

Assume that a particular reaction evolves 243 kJ of heat and that 28 kJ of PV work is gained by the system....? 1) What are the values of delta E and delta H for the system? 2) What are the values of delta E and delta H for the surroundings?

  Define how many grams of aluminum are needed to react

Based on the given chemical equation, how many grams of aluminum are needed to react with 0.6 moles of hydrochloric acid? Al + HCl yields AlCl3 + H2

  Explain the heat of fusion for water

How much energy is released when 32.4 g of water freezes? The heat of fusion for water is 6.02 kJ/mol

  State the approximate thickness of the foil in millimeters

which weighs approximately 8.6 oz. Aluminum has a density of 2.70g/cm^3. What is the approximate thickness of the foil in millimeters?

  The mechanism for the reaction of nitrogen dioxide with

the mechanism for the reaction of nitrogen dioxide with carbon monoxide to form nitric oxide and carbon dioxide is

  Explain how much carbon monoxide and oxygen gas

This equation means that no matter how much carbon monoxide and oxygen gas is added to the flask, only 2 moles of CO and 1 mole of O2 will react to make two moles of Co2.

  State the balanced equation for the hydration of cuso4

Write the balanced equation for the hydration of CuSO4. Indicate the physical states using the abbreviations (s), (l), or (g) for solid, liquid, or gas, respectively. Use (aq) to indicate the aqueous phase. Indicate appropriate charges on negative..

  Explain how many moles of h+ ions are present

How many moles of H+ ions are present in the following aqueous solutions? (a) 1.1 L of 0.48 M hydrobromic acid (b) 47 mL of 2.4 M hydroiodic acid (c) 477 mL of 0.27 M nitric acid

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd