c++

Objectives
Review C++ memory management, including copy constructors, destructors, and assignment operators.
Use Valgrind to check for memory leaks.
Review the procedures to access the GL servers and to compile programs on GL.
To ensure that you are able to submit project files on GL.
Introduction
In this project, you will complete a C++ class by writing a copy constructor, destructor, and assginment operator. Furthermore, you will write a test program and use Valgrind to check that your program is free of memory leaks. Finally, you will submit your project files on GL. If you have submitted programs on GL using shared directories (instead of the submit command), then the submission steps should be familiar.

Assignment

 
Step 1: Complete the Stack class
The Stack class implements a templated, linked list-based stack. Complete the class by writing the copy constructor, destructor, and assignment operator. The function prototypes are provided in stack.h. Since the class is templated, the implementation will be done entirely in stack.h; there is no stack.cpp file.

Step 2: Test your code
You must write a test program called mytest.cpp that checks correctness of the copy constructor and assignment operator. See driver.cpp for an example of how to use the stack class; output from the program is provided in driver.txt.

Following is a list of essential tests; we refer to the stack created by the copy constructor or on the left side of the assignment operator as the new stack; the stack from which the copy is made is the source:

Check that a copy is made. The new stack should contain exactly the same data as the source stack.
Check that the copy is deep. Modifying either stack (new or source) should not affect the other.
Check edge cases. For example, do they work correctly if the source stack is empty?
For the assignment operator, check that you have guarded against self-assignment.
Step 5: Check for memory leaks
Run your test programs using Valgrind. For example, assuming you have compiled mytest.cpp, producting the executable mytest.out, run the command

  valgrind mytest.out
If there are no memory leaks, the end of the output should be similar to the following:

  ==8613==
  ==8613== HEAP SUMMARY:
  ==8613==    in use at exit: 0 bytes in 0 blocks
  ==8613==  total heap usage: 14 allocs, 14 frees, 73,888 bytes allocated
  ==8613==
  ==8613== All heap blocks were freed — no leaks are possible
  ==8613==
  ==8613== For lists of detected and suppressed errors, rerun with: -s
  ==8613== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
The important parts are in use at exit: 0 bytes and no leaks are possible. The last line is also important as memory errors can lead to leaks.

Step 7: Submit your files
See the What to Submit section, below.

Implementation Notes
Each project has a section on implementation notes. These point out some issues that you might encounter while developing your code. You should look through the Implementation Notes before you start coding.

The class declarations (Node and Stack) and provided function implementations in stack.h may not be modified in any way. No additional libraries may be used, but additional using statements are permitted.
The locations for the function implementations are clearly marked in stack.h. They must be written at the specified locations; in particular, they must not be written in-line.
Private helper functions may be used, but must be declared in the private section of the Stack class. There is comment indicating where private helper fuction declarations should be written.
You should read through the coding standards for this class.
What to Submit

You must submit the following files to the proj0 submit directory:

stack.h
mytest.cpp

Data Management, Analytics, And Business Intelligence

  

Consider your organization or another organization with which you are familiar. Briefly describe the organization, and then answer the following questions:

o What do you think is one of the most interesting uses of database technology by this organization? Why?

o Who benefits from this use and in what ways?

o Are there any downsides?

o Are there any additional database technologies (or uses of the same technology) that you think this organization should consider? Explain.

o As a business manager, how can you effectively utilize database technologies to better do your job?

Embed course material concepts, principles, and theories, which require supporting citations along with at least two scholarly peer reviewed references supporting your answer

Use and APA style guidelines. One page discussion 275-300 words, double space and 2 references or more

Be sure to support your statements with logic and argument, citing all sources referenced. Post your initial response early, and check back often to continue the discussion. Be sure to respond to your peers posts as well

Stress Management

Your responses must be typed using MLA or APA format (12 pt font, double-spaced), and should be a MINIMUM OF 1 FULL PAGE (In addition to any space the questions may take up if you copy and paste them). Please make sure you are connecting the information to your personal stress management journey and experiences when applicable. YOU MUST USE PROPER CITATIONS! Please remember that when you directly copy out of the book, paraphrase from the book, or summarize the book, which will be in expected in every single assignment where you read chapters, you must use in-text citations as well as cite the source on a Works Cited or Bibliography Page. 

Please answer the following critical thinking questions from chapter 2: The Joy of Living in the Parasympathetic System. 

1.  Which part of the nervous system excites the body for the fight-or-flight response, and which part of the nervous system calms the body down for the rest-and-relaxation response?  Please use complete sentences.

2.  How do somatic exercises like, Yoga, Tai Chi and Qigong help calm the nervous system down?  Which of these exercises do you personally connect with and why? Please use complete sentences.

3.  What was the most impactful concept you learned in this chapter and why? Please use complete sentences.

the chapter posted read it . 

Terrorist Hazard Reply

You must write (2) replies of at least 140 words each to other classmates threads, and a minimum of 1 source is referenced appropriately for each reply. Note that both quantity and quality are important considerations when it comes to participation. For example, a message that says simply, I agree, does not constitute participation because it does not add anything of substance to the discussion.
In order to earn points, you must add something of substance to the discussion; this would consist of new ideas, your perspectives, pointed follow-up questions, etc.
Responding to a classmates post requires both the addition of new ideas and further analysis. A particular point made by the classmate must be addressed and built upon by your analysis in order to move the conversation forward. Thus, the response post is a rigorous assignment that requires you to build upon initial posts to develop deeper and more thorough discussion of the ideas introduced in the initial posts. As such, reply posts that merely affirm, restate or unprofessionally quarrel with the previous post(s) and fail to make a valuable, substantive contribution to the discussion will receive appropriate point deductions.

Topic:

Reply to Anosha:

A hazard that has the potential to become the most dangerous is chemical warfare. Chemical weapons are created for the sole purpose of killing, injuring, or incapacitating people. They can enter the body through inhalation, ingestion, or the skin or eyes (Bullock, J. A., Haddow, G. D., & Coppola, D. P. (2016). If a chemical agent were to be released, this chemical agent could threaten human lives, livestock, insects, and birds. Chemical weapons can be administered through explosives, aerosol devices spreading chemicals in liquid, solid or gas form, and mixing food and water with the harmful chemical. Exposing chemical agents to the air threatens the lives of many and can be fatal. For example, the release of nerve agents can result in decreased heart rate and blood pressure and paralysis of the respiratory muscles and inhibition of the respiratory center. Ultimately, death results due to respiratory paralysis (Ganesan, K., Raza, S.K., & Vijayaraghaven, R.).

Although biological weapons are just as dangerous and devastating as chemical warfare, it is less of a threat to the United States. In terms of pure statistical risk, the likelihood of their use causing a major event is very low simply because it is so difficult and comparatively very expensive for small-scale terrorist elements to manufacture, store, and deploy them when considered in light of the wider range of attack options available (Bullock, J. A., Haddow, G. D., & Coppola, D. P. (2016).

Combining hazards such as chemical weapons and biological weapons could potentially be the biggest threat to the U.S if terrorists considered doing so. Although there are vaccinations that could cure the infected person and symptoms that could point out the sick, this could delay the seasoned expert due to the amount of information that one may or may not have on the combined hazards (Introduction to homeland security: principles of all-hazards risk management, p.98).

Principle 12 speaks of protecting each state from invasion and against domestic violence. An appropriate response to a chemical warfare attack against the U.S. is preparation and training. This includes protective gear and equipment, effective and humane ways of isolating those who may have been exposed to chemicals and continuing to perfect vaccinations.

Works Cited

Bullock, J. A., Haddow, G. D., & Coppola, D. P. (2016). Introduction to homeland security: principles of all-hazards risk management. Amsterdam: Butterworth-Heinemann.

Ganesan, K., Raza, S. K., & Vijayaraghavan, R. (2010, July). Chemical warfare agents. Retrieved January 29, 2020, from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3148621/

Skousen, W. C. (2013). The five thousand year leap: a miracle that changed the world. Salt Lake City, UT: Freemen Institute.

Reply to Benjamin:

When considering CBRNE, natural, and technological hazards, I perceive technological hazards to be most dangerous to the United States in regards to a terrorist attack. Technological hazards, or man-made hazards as they are often called, are an inevitable product of technological innovation and human development. (Bullock, Haddow, Coppola, 2016) This means things like bridges, dams, and major infrastructures are all hazards included in this topic. If an attack was successful in taking down power and communication grids it would be detrimental to vital parts of life such as water, gas, and food supplies. The initial threat may be more mental than physical considering no power, no internet, no gas stations, and no cell phones would mentally cripple the affected area more so than physically with the exception of those dependent on electrically powered medical equipment and the ones who are unable to survive without heat or air due to age. This long term threat without intervention would lead to the physical threat by creating widespread panic and chaos since the effected people really would have no idea what happened other than everything shut down and didnt come back on. Depending on the size and type of the technological hazard or threat the response to this would, more times than not, be handled by the federal government. If it was a large bridge or large dam there would be an imminent death toll and immediate secondary structural issues elsewhere could occur as a result. If it was a large grid, power and/or communication, failure then an immediate notification to the people in the area to prevent widespread panic would be necessary first before repairs could be made.

Second I would place CBRNE, which stands for chemical, biological, radiological/nuclear or explosive, incidents can come in numerous forms such as a virus, nerve agent, or a nuclear device. While a nuclear incident of any type is a huge issue, terrorists typically dont have the ability to create or obtain the technology so this is the least likely hazard with the exception of an attack on a nuclear power facility. With the security well established and safety measures in place this event still is unlikely as well. Chemical or biological would be the main hazards of concern relative to their probability. If a biological event occurs it could take weeks to even realize since symptoms may not be immediately obvious. This would mean that the population effected could be large and the available treatment for the illness could be lacking in quantity. This could be an illness that effects only animals, humans, or plants or a combination such as humans and animals. A large scale persistent chemical attack would be detrimental as well. We use chemicals and transport them all over the country every day and it would be a target of opportunity to turn one of these hazards into a real time threat

Third comes natural hazards in regards to a terrorist attack. The ability to turn a natural hazard into a threat for terrorists is slim with the main exception of wildfires and mass movements. The hazards associated with these are very real for people in areas prone to wildfires and movements like avalanches and landslides. The wildfires that devastated Gatlinburg, TN in 2016 is a prime example of an unforeseen event that was not predicted and caused a large loss of property and revenue. Although this was not a terrorist threat this is something similar that could happen anywhere. An avalanche hazard that materializes could be devastating to mountain communities and impossible to stop as they happen so quickly.

A combined technological hazard and a CBNRE hazard would be the most dangerous in my opinion. Take out the infrastructure to respond and treat patients and then inflict the area with a biohazard would be a lethal combination. Regardless of the hazards and the threats they could materialize into Principle 24 – A free people will not survive unless they stay strong. is the key to survival for any citizen in any area that is effected by any event that has occurred or thwarted.

References

American Founding Principles, Module/Week 1 Additional Materials

Bullock, J. A., Haddow, G. D., & Coppola, D. P. (2016). Introduction to Homeland Security: Principles of All-Hazards Risk Management. Amsterdam: Butterworth-Heinemann