Get help from the best in academic writing.

C++ Data Structure Exam Practice

C++ Data Structure Exam Practice.

Maps in C++The standard template library (STL) has implementations of several data structures that we’ve studied in this course. A common operation in software is the fetching of a key, value pair, which “maps” a key to a value. For example, “find the definition for a given dictionary word” or “find the student record associated with this student ID.”.For fast lookups by key, one of the most useful templates is std::map, which uses a search tree to store associations between a key and a value. An overview of std::map (and another similar container, set) can be found on pages 704-706 of the textbook. All lookups are done with a key.CSV FilesCSV (comma-separated values) is one of the most common layouts for storing data on disk. Each line contains a series of values delimited by a comma (,), with an optional line of header labels as the first line. In this way the file consists of “rows” (each line) and “columns” (data items on each line). For example, if a file has three columns, there would be three comma-separated values on each line, with an optional header line appearing on line 1.One of the advantages of this format is that it’s plain-text and can be processed using one of several methods. As a starting point, you can use the below function, parse_line(), to return a vector of the values in each row in the file. The vector then contains the columns so you can refer to each column by its index. For example, row[0] would contain the Customer ID and row[18] would contain the MonthlyCharges value for that customer.#include <vector>#include <sstream>using namespace std;void parse_line(const string &str, vector<string> &row) { istringstream istr(str); string tmp; while (getline(istr, tmp, ‘,’)) { row.push_back(tmp); }}A CSV file is posted in this module (customers.csv) containing an anonymized list of customers from a telecom provider. AssignmentUsing the STL map template, read this file and build a map of (customer ID, monthly charges) for each entry. Your program should then do the following:Prompt the user to enter a range of two key values. These values would refer to the “first” column in the file, which are the customer IDs. Use the lower key as the lower bound of the range, and the higher key as the higher bound (you can compare string keys just as you would numeric keys, by using “a > b”, etc.).Output the records that fall in the range (inclusive) and their monthly charges. Use the MonthlyCharges field from the file here.If a user enters an upper or lowercase X, quit the loop and exit the program (be sure to explain this in the prompt).Also be sure to output the charges formatted as currency (i.e. fixed point, two decimal digits precision, and prefixed with the ‘$’ sign).To do this efficiently, you will need to make use of the std::map::lower_bound and std::map::upper_bound methods in the map container (these are also described in pp. 704-708 of the book as well as in the STL documentation, found easily in Google). This requires the use of iterators, which you may not have learned prior to this point. Here is some sample code that would iterate through an entire map() and print the contents — this code also shows how to insert items into the map. Items consist of pairs, which are a simple 2-element data structure representing a (key, value) pair.#include <iostream>#include <map>using namespace std;int main() { map<string, string> things; things.insert(make_pair(“dog”, “leash”)); things.insert(make_pair(“car”, “key”)); things.insert(make_pair(“rain”, “umbrella”)); map<string, string>::iterator item = things.begin(); map<string, string>::iterator end = things.end(); for (; item != end; ++item) cout << item->first << endl;}What to SubmitSubmit your .cpp file. Your code must implement the solution using the map template in the STL.Example RunEnter the lower and upper values of the range (X to quit): 1095-WGNGG1098-KFQECThe customers in this range are: 1095-WGNGG: $101.05 1096-ADRUX: $74.25 1097-FSPVW: $54.55 1098-KFQEC: $19.40Enter the lower and upper values of the range (X to quit): XExiting..

C++ Data Structure Exam Practice

The core responsibility of the Department of Defense is to ensure that there is well sustained security and homeland defense in the United States of America. Besides, the department is also charged with the task of overseeing international security issues that may equally pose potential threat to the United States and its citizens (NDS, 2008). As a result, the unparalleled conventional military wing capability is always prepared to counteract any possible attack on the U.S interests both at home and abroad. This has compelled both perceived and real enemies to restructure and find the right balance in the art and science of warfare in order to be resilient enough against United States’ grand strategy on security plan. Additionally, the U.S government in collaboration with its military leadership has quite often endeavored to shape the country’s military capabilities to be stable enough in readiness to fight and win attacks launched by the emerging 21st century enemies. On the other hand, while the U.S. military forces continue to fight insurgency warfare in Iraq and Afghanistan, the same insurgents and other rival nations are integrating modern technology with ancient techniques such as mutiny and terrorism aimed at achieving egocentric political goals. It is imperative to note that countering terrorism requires appropriate strategies as well as preparedness for war at any given time. However, past war events have left trails of defeats and uncertainties due to myriad of factors that should act as lessons in guiding military and political leaders to redirect and reexamine their actions. This essay offers a succinct analysis of some of the prudent lessons that the United States military and political leaders need to learn on past conflicts. Today, the United States government has put in place myriad of strategies aimed at curbing rising rates of revolts and insurgencies. It makes use of its intelligence wing to gather credible information on the strengths and weaknesses of terrorists alongside other forms of enemies. According to General Petraues (2006), one of the key elements of effectively tackling insurgencies is obtaining precise and exact intelligence. Accurate, actionable and timely intelligence reports regarding revolts, planned acts of terror as well as other related security threats have been revealed to the U.S key decision makers and military leaders. Get your 100% original paper on any topic done in as little as 3 hours Learn More Both internal and external capabilities of all threats to security have been identified by intelligence department. They have used intelligence information gathered to establish grand strategies. However, in order to avoid biasness and mishaps that leaders in the past committed, it is crucial for decision makers to come up with sound judgments before engaging in any form of war so that past blunders can be corrected once and for all. Past conflicts have witnessed U.S. military forces being committed to war with little regard of other important factors. Hence, it is highly recommended that decision makers on homeland and foreign security of U.S interests ought to read, understand and follow the Weinberger Doctrine. This doctrine lays out integral parameters that must be met prior to committing the U.S. military forces to war. The Weinberger Doctrine parameters clearly points out that before any act of war, a determining factor such as vital interests of the United States or of one or more of its allies being at stake should be established (Handel, 2001). Additionally, sufficient force should be applied to reflect unequivocally the intention of winning. Moreover, the Weinberger Doctrine highlights the principles of objective and simplicity by emphasizing that political and military goals must be clearly defined and continuously reassessed to keep cause and response in synchronization. Most importantly, before troops are committed to war, there must be a reasonable assurance of support from the American public. Finally, undertaking of a combat role should be done when there are no alternatives and as last resort (Handel, 2001). Clear and well defined objectives depend on accurate knowledge of an enemy’s anatomy and physiology. The success of the grand strategy depends on accurateness and timely intelligence information shared by every participating organization. The lessons learned from the Vietnam War clearly emphasized the importance of having sterling intelligence gathering capabilities in order to shape the U.S. grand strategy. Apparently, the United States decision makers did not have vivid information on the Viet Cong’s strengths and weaknesses. In turn, it led to vague political objectives. The United States Armed Forces employed superior air power attacks against Viet Cong and achieved swift military victory. This decisive military victory did not kill the determination of the Viet Cong to fight with the Americans. We will write a custom Essay on Timeless Lessons learnt from previous U.S Conflicts specifically for you! Get your first paper with 15% OFF Learn More Instead, Viet Cong’s army employed the art and science of guerilla warfare against the U.S. military forces. The U.S. decision makers and military leaders continued in ignorance to deliver fly-by responses to counter the Viet Cong attack. The end result was that the number of U.S. casualties started to pile up. The aftermath of Vietnam War has been used as a lesson to the United States decision makers and military leaders about the need for balance mechanism before engaging in any war. During conflicts and times of war, the concept of Clausewitz trinity emphasized that it is crucial for the government, military and the general public to exercise proper balance (Handel, 2001). It is instructive to note that the United States lost the Vietnam War since its government lost the battle back home. If the United States government intends to succeed in fighting wars abroad, it must first win the battle at home (Gray, 2005). Professor Zimmermann (2011) argues that both senior military and political leaders must be adept and flexible enough in forming winning strategies before going to war. Furthermore, they must be well acquainted with comprehensive knowledge on the art and science of war and how it is supposed to be balanced. Finally, he points out that knowing the enemies’ strategies, societal and cultural weak points as well as their mindset is key to victory (Zimmermann, 2011). The U.S. decision makers and military leaders must deliver clear and achievable objectives. The leadership must incorporate some exit strategy and well-defined end-states when establishing war plans to avoid mistakes made through fly-by responses. The Vietnam War planners violated key doctrines related to the 12 Principles of the Joint Operations which includes the principles of objective, offensive, mass, economy of force, maneuver, unity of command or effort, security, surprise, simplicity, restraint, perseverance, and legitimacy (JP 3-0, 2008). As Handel (2001) observes, one of the ways of achieving political goals is through military victory (Handel, 2001). According to President Bush, military wars are not intended to bring stability or linger for long, but they are meant to be swift with winning purpose (Gordon

​Ethics for Behavior Analysts ABA unit 9 assign.

​Ethics for Behavior Analysts ABA unit 9 assign..

Your Unit 9 Assignment consists of an analysis of questions related to two separate case studies. Each case presents a problem that you, the future behavior analyst, will need to assess. In order for you to accomplish this, you will design an effective (hypothetical) behavior modification program based on your hypothesized function of the target behavior and a plan to evaluate this modification program. You will draw upon the scientific method of inquiry to guide you in this Assignment. The case studies are located in the Course Documents area.Prepare for the analysis questions by completing the following for each case study:Provide a full and accurate description of the target behavior for each case and the rationale for selection.For each case, provide a hypothesis of the reinforcement contingencies maintaining the behavior. Based on this hypothesis, discuss why the previous interventions may not have been successful.Next, use operant conditioning techniques to provide an accurate and thorough behavior modification for each case based on the hypothesis above. Be sure to discuss this in the context of the use single-subject designs in behavior analysis and how the individual serves as his or her own control.Finally, you will discuss the assessment of each behavior modification plan by describing how you will determine if the selected behavior modification plan was effective (be sure to outline the dimension of behavior(s) you are measuring and how you will make a data-based conclusions on the progress)Each case covers the theories, concepts, and research that you have learned about this term. Your written Assignment should consist of information mainly from the two texts. If necessary you may use supplemental readings. You may also use sources from the Library, but all supplementary material should be from peer-reviewed behavior analytic journals only.After reading each case and conducting the analysis as guided above, please fully provide the information listed below.Answers to the questions should be typed up in a Word document, double-spaced, in 12-point Times New Roman font, follow all other APA formatting and citation guidelines, and be submitted to the Unit 9 Assignment Dropbox. Your answers should be 3 to 4 pages for each case in order to address all required parts of the Assignment.Case 1: The Case of Emily1. Briefly recap the case and identify the most important target behavior. Provide a clear definition and why it is important to target this behavior.2. Discuss which inadvertent reinforcement strategy may have contributed to Emily’s school refusal and why. Formulate a hypothesis regarding what intervention will result in a specific level and direction of desired change in the target behavior3. Choose an effective behavior modification program to help Emily’s parents to help her improve her target behavior and to test your previously stated hypothesis. Discuss why you chose that program and how you would implement the strategy.4. Discuss how you will monitor the program and analyze the results. Make sure to include what you would consider to be a successful intervention. Discuss changes you could make to the plan if the expected outcome was not attained.Case 2: The Case of Mr. Smith1. Briefly recap the case and identify the most important target behavior. Provide a clear definition and why it is important to target this behavior.2. Discuss why Mr. Smith’s previous interventions may not have been successful. Formulate a hypothesis regarding what intervention will result in a specific level and direction of desired change in the target behavior.3. Choose an effective behavior modification program to help Mr. Smith with his company and to test your previously stated hypothesis. Discuss why you chose that program and how you would implement the strategy.4. Discuss how you will monitor the program and analyze the results. Make sure to include what you would consider to be a successful intervention.Make sure to use APA formatting and citation style to credit the sources you use in your case study analysis. For additional information, refer to the APA Quick Reference found in Course Resources or to the Writing Center.You must credit authors when you:Summarize a concept, theory, or researchUse direct quotes from the text or articlesElite Behavior Media. (2012). Principles of applied behavior analysis (ABA): Methodologies and data aanalysis. Retrieved from Behavior Media. (2012). The principles of applied behavior analysis (ABA: Positive reinforcement and skill deficits. Retrieved from
​Ethics for Behavior Analysts ABA unit 9 assign.

AAMAIFS Place Image Role in Tourism Support Research Article Appraisal Essay

professional essay writers AAMAIFS Place Image Role in Tourism Support Research Article Appraisal Essay.

I’m working on a research & summaries multi-part question and need a sample draft to help me study.

Identifying the research gap filled by the article: Which research gaps did
the article fill? Is it still a gap in the literature?
Examining the conceptual framework of the article including the literature
review, theories on which the article was based, etc.
Which research philosophies did the article follow? Identify these research
philosophies utilized in the article and explain by associating it or them with
the sentences or paragraphs in the article.
Research methods used by the article. Would you have any
recommendations for the author(s) to use additional research methods?
Data analysis techniques used by the article. Which additional data analyses
would be more useful?
Findings of the article. What are the findings of the article?
Main conclusions of the article. Summarize the conclusions of the article.
What additional conclusion could have been drawn? What are the practical implications of the article? What additional practical
implications could there be?
What are the theoretical implications of the article? What additional
theoretical implications could there be?
What are the limitations of the article?
What are recommendations by the article for future researchers? Do you
have additional recommendations for future researchers?
AAMAIFS Place Image Role in Tourism Support Research Article Appraisal Essay

MGT 321 SEU International Business Venezuela Under Hugo Chávez & Beyond Case Study

MGT 321 SEU International Business Venezuela Under Hugo Chávez & Beyond Case Study.

I’m working on a management multi-part question and need an explanation to help me study.

Assignment 2undefinedDeadline: 03-04-2020 @ 23:59undefined Course Name: Intro to International Business Student’s Name: Course Code: MGT-321 Student’s ID Number: Semester: II CRN: Academic Year: 1441/1442 H undefinedFor Instructor’s Use onlyundefined Instructor’s Name: Students’ Grade:Marks Obtained/Out of Level of Marks: High/Middle/Low undefinedInstructions – PLEASE READ THEM CAREFULLY undefinedThe Assignment must be submitted on Blackboard (WORD format only) via allocated folder.Assignments submitted through email will not be accepted.Students are advised to make their work clear and well presented, marks may be reduced for poor presentation. This includes filling your information on the cover page.Students must mention question number clearly in their answer.Late submission will NOT be accepted.Avoid plagiarism, the work should be in your own words, copying from students or other resources without proper referencing will result in ZERO marks. No exceptions. All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism).Submissions without this cover page will NOT be accepted. undefinedundefinedAssignment Regulation: undefinedAll students are encouraged to use their own word. Assignment -2 should be submitted on or before the end of Week-09 in Black Board only. undefinedThis assignment is an individual assignment.undefinedAssignment Structure:undefined A.No Type Marks Assignment-2 Critical Thinking 05 Total 05 undefinedLearning Outcomes: undefinedAnalyze the effects of culture, politics and economic systems in the context of international business (Lo 2.1)Identify the major components of international business management (Lo 2.4)Carry out effective self-evaluation through discussing economic systems in the international business context (Lo. 3.1)undefinedundefinedCritical ThinkingundefinedPlease read Case 2: “Venezuela under Hugo Chávez and Beyond” available in your e-book (page no.611), and answer the following questions:undefinedundefinedAssignment Question(s):(Marks: 05)undefinedUnder Chávez’s leadership, what kind of economic system was put in place in Venezuela? How would you characterize the political system?(word limit: 100, Marks: 02)During the Chávez years, many foreign multinationals exited Venezuela or reduced their exposure there. What do you think the impact of this has been on Venezuela? What needs to be done to reverse the trend?(word limit: 100, Marks: 02)By 2016, Venezuela’s economy appeared to be on the brink of total collapse. What do you think needs to be done to reverse this?(word limit: 150, Mark: 01))undefined undefinedAnswer:undefined1.undefined2.undefined3.undefined&&&&
MGT 321 SEU International Business Venezuela Under Hugo Chávez & Beyond Case Study

write a memorandum about copyright topic

write a memorandum about copyright topic.

the topic is about copyright infringement between the city and a singer, i uploaded the topic and all the requirements. you need 4 cases to support your point, i will send you each case’s briefs to your email but if you need anything please go to the actual case and read it. you’re going to be in the city’s side. please please follow all the instructions that you need and all citation must be the BlueBook citation. all the instruction will be in the pictures that i uploaded and if you have any other questions ask me. i will also upload a sample of the memorandum and how it should be formatted. if you think you cannot due the ISSUE ANSWER and FACTS parts, you can just start from the discussion all the way to the end, but let me know. if you also need to access lexis-advance let me know. when you accept the offer i will also send you two pictures a conversation between a students and the teacher with code sections and what they should do.
write a memorandum about copyright topic