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

  What is the molarity of the na2s2o3 solution

What is the molarity of the Na 2 S 2 O 3 solution if a 0.150 g sample of KIO 3 required 10.7 mL of Na 2 S 2 O 3 solution for its standardization?

  Evaluate the standard free energy change

Calculate the standard free energy change at 298K for the conversion of diamonds to graphite and determine whether or not the reaction is spontaneous under standard conditions:

  Evaluate e, q, and w if 8.00 moles of co2

Calculate E, q, and w if 8.00 moles of CO2 (g) reacts with excess nitrogen gas according to the following reaction at 25°C and 1.00 atm:

  How many grams of potassium superoxide would be consumed

If someone using one of those masks exhales 0.716 g of CO2/min, how many grams of potassium superoxide would be consumed in 12.00 minutes?

  Explain the temperature of the solution increases

A calorimeter contains 17.0 of water at 12.5 degrees celsius . When 2.10 of (a substance with a molar mass of 80.0 g/mol) is added, it dissolves via the reaction and the temperature of the solution increases to 28.5 degrees. Calculate the enthalpy..

  Explain a piece of sn metal were placed in a znso4 solution

Would a reaction occur if a piece of Sn metal were placed in a ZnSO4 solution. if so write a net ionic equation

  What is the maximum amount of no

what is the maximum amount of NO

  1 calculate how many n atoms are there in the empirical

1. calculate how many n atoms are there in the empirical formula for this given compound when the reported analysis

  How to calculate the molar solubility

The solubility product constant (Ksp) for the dissolution of PbSO4 as represented by the chemical equation is 1.7x10-8. PbSO4 (s) Pb2+ (aq) + SO42- (aq) Calculate the molar solubility (mol/L) of PbSO4 in water. Molar Mass (g/mol) PbSO4 303.26

  What is the value of heat

suppose that coal of density 1.5g/cm3 is pure carbon. the combustion of carbon is described by the question   C(s)+ 02(g)- CO2 H= -394kJ

  Explain were combusted with excess of oxygen gas

Fructose contains only C,H, and O. 17.1g of carbon dioxide gas and 7.26 g of water vapor were produced when 12.1 g of solid fructose were combusted with excess of oxygen gas.

  Explain crystal violet

The fourth solution is 10 ml of DI water and 10 ml of solution three 5) The fifth solution is 10 ml of DI water and 10 ml of solution four I'm pretty sure we're supposed to use the C1V1=C2V2 formula

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