C++ hw7 | Computer Science homework help

Introduction

We have discussed ?inheritance?, one of the fundamental concepts of Object Oriented Programming (OOP). In this homework we will experience inheritance concept through C++ programming to reinforce what we have learned in class. We will extend Sequence class to create Gene class. We also create a driver program to test each function in Gene class.

ÿ
Instructions: Download starter code from [emailÿprotected] under Content (Homework). Then implement Gene.h and Gene.cpp and create a tester program.
ÿ
In the Visual Studio project, there are three files:
úÿÿÿÿÿÿÿÿ Sequence.h: Sequence class hearder file… no change required
úÿÿÿÿÿÿÿÿ Sequence.cpp: Sequence class implementation file… no change required
úÿÿÿÿÿÿÿÿ GeneTest.cpp: a driver program that tests Gene class implementation
ÿ

Sequence

–ÿÿÿÿÿÿÿÿÿ sequence: char*
–ÿÿÿÿÿÿÿÿÿ length: int

+ Sequence(string s)
+Sequence(const Sequence& s) //Copy constructor
+Sequence& operator=(const Sequence& s) //Assignment operator
+void set(int index, char c) //Set character at index to value in c
+ ~Sequence()
+ getSequence() const :char*
+ size() const :int

Friend functions
+ bool operator==(const Sequence& lhs, const Sequence&rhs)
+ostream& operator<< (ostream&ostr, constSequence&g)
+ bool operator<( const Sequence& lhs, const Sequence&rhs)

ÿ

Gene

ÿ

+ Gene(string s)
+Gene(const Gene& g)//Copy constructor
+Gene& operator=(const Gene& g) //Assignment operator
+ ~Gene()
+ aCount() const:int
+ cCount() const :int
+ tCount() const :int
+ gCount()const :int

For this assignment you will design a C++ class to store information about a Gene using the existing Sequence class. Starter code includes sequence class declaration (Sequence.h) and member function implementation (Sequence.cpp).
ÿ

The SequenceClass:ÿ This class simulatesa sequence in biology.ÿ

Data Members

Array of characters for each element in the sequence. Each element is represented by a character. The array is allocated during object construction.
length to represent the number of elements in the Sequence.

Member Functions

Constructor that takes in a string object representing the Sequence.

A string object in C++ has the following useful methods:

ÿsize()
[index] that returns the character at each index.

Initialize the data members using this input by determining the size of input string and then creating and filling sequence.ÿ

Destructor to deallocate memory allocated by the constructor (Do last)
Copy Constructor
Assignment operator=
set(): void sets character at index to value in c.
getSequence():char* returns a pointer to the start of the sequence array.
size():int returns the number of elements in the sequence (chars)

Friend Functions

Operator== that returns true if the Sequences have the same size and exactly the same sequence. Note that an equal sequence could be listed in reverse order.
Operator<< to output the sequence with up to 40 characters per line.
Operator<ÿ checks to see if the sequence on the left hand side is a subsequence of the right hand sequence. The entire subsequence must be found in the right hand sequence to be true otherwise return false. Note again that the reverse of the subsequence may be contained in the sequence.

ÿ
ÿ
ÿ

The GeneClass:ÿ This class should simulate a gene in biology.ÿ

Member Functions

Constructor that takes in a string object representing the Gene.

Use the string to call the Sequence constructor

Copy Constructor (also in Sequence)
Assignment operator operator= (also in Sequence)
Destructor to deallocate memory used on the heap.
aCount():int returns the count of nucleotides in gene represented by a.
cCount():int returns the count of nucleotides in gene represented by c.
tCount():int returns the count of nucleotides in gene represented by t.
gCount():int returns the count of nucleotides in gene represented by g.

ÿ
Must have exact method header in code as in the UML so that a different tester file can be used to grade the assignment.
ÿ
Task #1 Coding the UML Diagrams (20 points)
ÿ

Create the header file Gene.h including all functions and data members. It will inherit from Sequence. You must use the exact names described in the UML diagram. I will provide a test file to test your code and calculate the grade.

ÿ

Create the implementation file Gene.cpp and a tester file named GeneTester.cpp.

Add a single function implementation at a time.

ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ i.ÿÿÿÿÿ Constructor
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ii.ÿÿÿÿÿ aCount(), cCount(), tCount(), and gCount()
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ iii.ÿÿÿÿÿ Destrutor

After each file is implemented create an object in the main method of GeneTester to test the implementation. Be sure to test all aspects of each function thinking about boundary cases.

ÿ
3.ÿÿÿÿÿ After each file is implemented create an object in the main method of GeneTest to test the implementation. Be sure to test all aspects of each function.
ÿ
Task #2 Testing
ÿ
I will provide tester program to be downloaded from D2L. It will test your code to see that the implementations are correct. You will need to replace this tester program with yours.
ÿ
ÿ
Submission note: You do NOT NEED TO SUBMIT ANYTHING TO THE DROPBOX!ÿ Instead, you will need to show your programs for your answers to the instructor or SIs during class.
ÿ

Agriculture short forum need in 2 hours

In Box 14.2 it says that ?new varieties were introduced to ?solve? an increasing number of disease and pest problems that would have caused wheat yields to decline substantially in the absence of the new varieties.? Research, and dollars spent for research on disease and pest resistance has declined markedly in the past 25 years. My question is: should we be more concerned than we are with the possibility that a new strain of a disease might wipe out, or substantially reduce crop yields some day in the near future? Are we ahead of the game with today?s research and innovations and with biotechnology, or should we be worried?
ÿ
ÿ
I would like you to do a web search of ?potential crop diseases? and write your opinions of whether or not you think we should worry, and why. Cite your source(es) and respond to another person.
ÿÿÿ Here is another people’s Forum. You need to see it and write something to response.
ÿÿÿÿ (The article I read was about different viruses that have begun to appear in Greenhouses across North and Central America. All of the diseases have to do with the tomato plant. I personally think that we as a society should be more worried than we currently are about these diseases that are capable of wiping out crop yields. I think that currently our mindset is that we have a never ending supply of fresh fruit and vegetables and that is the way it will always be no matter what happens in the world. That is not the case. We should be better prepared if something like this happens. Hopefully it wont but it is better to be safe than sorry. It would make a lot more sense to me to spend the money now to prepare instead of risk starving citizens later.)
ÿ
Plz upload your own opinions and the response in different document.
ÿ

leadership & comm skills for project managers

Project Design
ÿ
Using the information that you gained from the readings thus far, write aÿ three- to four-page paper (not including the title and reference pages) that describes a project that you might undertake (this can be a fictitious one or one that you have actually worked on). Describe the major steps and the milestones of your project along with a timeline for each step. Be sure to explain how to address team conflicts and how to help ensure team cohesion and collaboration. You are required to use at least two scholarly sources in addition to the text in the construction of your paper.
Your paper should be formatted according to APA style as outlined in the approved APA style guide, and should cite at leastÿTWO scholarly sources in addition to the textbook.

Mgt 401 week 1 quiz, got 10/10

MGT 401 Week 1 Quiz
ÿ
1.ÿÿÿ Question : Hazardous materials can be released intentionally in criminal acts or acts of terrorism.
Student Answer:
True
False
Points Received: 1 of 1
2.ÿÿÿ Question : The fourth level of emergency response personnel in the HAZWOPER regulation whose training may also include the handling of specific materials and interaction with outside agencies is the ____.
Student Answer:
Hazardous Materials Specialist
Hazardous Materials Technician
On-scene Incident Commander
First Responder Operations Level
Points Received: 1 of 1
ÿ
3.ÿÿÿ Question : The law that began the process of regulating the handling of hazardous waste and defines what is a hazardous waste and outlines the programs that must be followed to properly handle, store, and dispose of these materials is the ____.
Student Answer:
Resource Conservation and Recovery Act of 1976
Occupational Health and Safety Act
Comprehensive Environmental Response, Compensation, and Liability Act
Superfund Amendment and Reauthorization Act
Points Received: 1 of 1
ÿ
4.ÿÿÿ Question : The agency in the federal system that is used to conduct research and make recommendations for the development of regulations to protect the nation?s workers is ____.
Student Answer:
Occupational Safety and Health Administration
Occupation Workplace Safety Administration
Environmental Protection Agency
National Institute of Occupational Safety and Health
Points Received: 1 of 1
ÿ
5.ÿÿÿ Question : The fifth level of emergency responder under the HAZWOPER regulation and the individual who directs the activities of all emergency response personnel at the scene is the ____.
Student Answer:
Hazardous Materials Specialist
Hazardous Materials Technician
On-scene Incident Commander
First Responder Operations Level
Points Received: 1 of 1
ÿ
6.ÿÿÿ Question : An early law that authorized the collection of taxes to pay for the cleanup of abandoned hazardous waste sites is the ____.
Student Answer:
Resource Conservation and Recovery Act of 1976
Occupational Health and Safety Act
Comprehensive Environmental Response, Compensation, and Liability Act
Superfund Amendment and Reauthorization Act
Points Received: 1of 1
ÿ
7.ÿÿÿ Question : An employee who works at a cleanup site regulated by the HAZWOPER regulation and whose work exposes or potentially exposes him to high levels of hazardous substances are known as a(n) ____ Worker.
Student Answer:
Hazmat
Dangerous Site
General Site
Endangered
Points Received: 1 of 1
ÿ
8.ÿÿÿ Question : Regulated sites where hazardous wastes are taken for final disposal or treatment are known as ____ facilities.
Student Answer:
recovery
treatment, storage and disposal
reclamation
safety
Points Received: 1 of 1
ÿ
9.ÿÿÿ Question : A plan that is developed in advance of an emergency situation that identifies the actions to be taken by all employees at the site in the event of an emergency is known as the ____ Plan.
Student Answer:
Emergency Control
Emergency Response
Emergency Management
OSHA
Points Received: 1 of 1
ÿ
10.ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ Question : Those cleanup workers at a HAZWOPER regulated site whose exposure to hazardous materials is below the established PEL for the material are known as ____ Workers.
Student Answer:
Temporary Site
Occasional Site
Occasional Exposure
Temporary Exposure
ÿ
Points Received: 1 of 1

GRA1700C RC Elements and Principles of Graphic Design Programming Question

Module 06 ContentThe (fictitious) artist or band?s name.The venue.A website where people can order tickets. If the concert is free, then a website where people can learn more about the artist/band/concert.You must use the typeface(s) Corbel and/or Constantia. You?re welcome to use various font-styles such as bold, italic, and bold italic. You must establish a clear and effective hierarchy with the type.Add vector graphics (shapes and lines) to your design to create a unified and balanced design. Your graphics might all be in the background and/or they might overlap the photo.Have a consistent use of colors throughout the design. Again, the goal is a unified and balanced design.As the designer, it will be up to you on how you arrange the various elements. You have a lot of freedom with this design, as long as you (a) include all of the required elements and (b) create a unified and balanced design.

Business management (masters level): research methodology and

Research Methodology and Critical Thinking
ÿ
As our world become increasingly complex, the need for critical thinkers and researchers increase.ÿ People want to understand certain changes in their world and phenomena as it occurs.ÿ The academic community requires that some type of theory be linked to any type of understanding used to explain certain occurrences.ÿ Gray (2004) noted that ?a theory consists of a set of interrelated concepts, definitions, and propositions that demonstrate relationships between variables? (p. 11).ÿ As a graduate student, you have been required to conduct research in terms of synthesis of research studies, analysis of the findings, and evaluation any possible linkages, generalizations, and/or provide possible recommendations or suggestions for the area(s) being studied.ÿ
ÿ
To demonstrate your ability to conduct research, exhibit your research skills and abilities in the form of a mini-research project.ÿ In other words create a mini research proposal to address a current issue or social problem in your field of study that may require additional research.ÿ Identify a problem or issue then write up a research problem statement to guide you on this research endeavor.ÿ With this research problem statement, you are to develop a mini-research project to demonstrate your ability to critically think through a problem situation in today?s workplace/marketplace.ÿ The format of the mini-research project proposal is as follows:
ÿ
?ÿÿÿÿÿ Title
?ÿÿÿÿÿ Problem Statement
?ÿÿÿÿÿ Theoretical framework
?ÿÿÿÿÿ Research questions or propositions
?ÿÿÿÿÿ Methodology and/or research design with limitations
?ÿÿÿÿÿ Results and findings (what do you anticipate to discover)
?ÿÿÿÿÿ Conclusions and recommendations (what assumptions are you making as you propose this study?)
?ÿÿÿÿÿ How do you propose that this research contributes to new knowledge in your field?
ÿ
Since this research project will not actually be conducted, you may approach this mini-research project from the perspective of a research study proposal.ÿ However, you should consider any possible or anticipated results and findings, as well as conclusions and recommendations.ÿ Finally, clearly state how you believe?based upon the literature?that the research would contribute to new knowledge in one?s field of study.

Film anlyzes number 2 | English homework help

film Analysis papers: 1 paragraph briefly summarizing the plot of the film, followed by 2-3 pages of analysis of the film/reactions to the film.ÿ
chose two or three themes from the movie that you could write about in your film analysis paper
ÿfamily relationships, closeness of Indian families– traditional/arranged marriages vs. love marriage– honesty/forgiveness/loyalty– courage– Indian culture/traditions with weddings– losing parts of one’s culture after leaving one’s country– traditional culture vs. modern culture/technologÿ
Is due after 10 hoursMonsoon Wedding (2001)http://www.imdb.com/title/tt0265343/?ref_=nv_sr_1

Hsm/270 program planning and grant proposal writing in human

Read all of the fictional program scenarios in Appendix B and choose one to work with throughout the course.
ÿ
Compare program planning with program evaluation in human services organizations. Describe how the two components are related.
ÿ
Identify specific examples of how program planning and evaluation interrelate in your chosen scenario in Appendix B.
ÿ
Identify technical and political aspects of program planning and evaluation you might encounter in the program scenario you chose, and explain how these aspects could affect your planning and evaluation process.
ÿ
Write a 700- to 1,050-word, APA-formatted paper that addresses the above issues.
ÿ
Format your paper consistent with APA guidelines.
ÿ
Post your paper as an attachment

Sex n gender roles | English homework help

ÿAre Sex and Gender Roles changing?ÿAnswer the book’s question in the section title (“Are Sex and Gender Roles Changing?”) based on your observations and experience. If you believe they are changing, make sure to tell us what they are changing from or, said another way, what they were before compared to what you believe they are changing to. You probably should focus on just a few aspects that are changing. If you believe they are not changing, describe their current status and discuss why you believe they are not changing. In either case, give examples to help us to really “see” what you’re talking about