//C++
a. Add the following operation to the class orderedLinkedList:
void mergeLists(orderedLinkedList &list1, orderedLinkedList &list2);
//This function creates a new list by merging the //elements of list1 and list2.
//Postcondition: first points to the merged list
// list1 and list2 are empty Consider the following statements:
orderedLinkedList newList;
orderedLinkedList list1;
orderedLinkedList list2;
Suppose list1 points to the list with the elements 2 6 7, and list2 points to the list with the elements 3 5 8.
The statement: newList.mergeLists(list1, list2); creates a new linked list with the elements in the order 2 3 5 6 7 8, and the object newList points to this list. Also, after the preceding statement executes, list1 and list2 are empty.
b. Write the definition of the function template mergeLists to implement the operation mergeLists.
In: Computer Science
Project Scenario:
You are a journalist for a hometown newspaper. You have received a number of phone calls and emails from readers who are concerned about how much they are paying for gasoline. One of the readers wrote the following:
“I think, on average, that a driver in our town pays more for a gallon of regular
gasoline than a driver in other towns in our state.”
Your editor asks you to investigate the gasoline prices of four towns (similar in size to your town, town B) and write a short article about your findings. You have gathered some data, shown in Table 1 below. The data represents the price paid for one gallon of regular gasoline from a random sample of gas stations in each of the four towns.
Table 1- The retail price for one gallon of regular gasoline at 10 randomly selected stations in four towns as of September 1, 2017.
|
Town A |
Town B |
Town C |
Town D |
|
2.73 |
2.75 |
2.72 |
2.79 |
|
2.71 |
2.71 |
2.71 |
2.71 |
|
2.68 |
2.72 |
2.69 |
2.73 |
|
2.68 |
2.74 |
2.77 |
2.72 |
|
2.71 |
2.77 |
2.71 |
2.75 |
|
2.72 |
2.78 |
2.72 |
2.78 |
|
2.71 |
2.75 |
2.74 |
2.71 |
|
2.74 |
2.79 |
2.76 |
2.78 |
|
2.71 |
2.80 |
2.71 |
2.72 |
|
2.69 |
2.75 |
2.75 |
2.74 |
Questions to Ponder While Constructing Your Article:
Writing the Article:
- Now that you have gathered and analyzed your data, you are ready to write your article for the newspaper. Please be sure to make it a minimum of one full page in length, 12 pt. Times New Roman font, double-spaced, with 1-inch margins all around.
- You are to include at least 1 graph that best represents your data analysis, your original table of data, and reference to at least 3 of the questions noted above. Your article is to be well-written and free from spelling and grammatical mistakes. Appropriate citations should be included if you are referencing researched data or comments made by others in your article. Please try to make your article interesting and creative, complete with an appropriate story headline.
In: Statistics and Probability
My son goes to a really nice school. The counselor and the teacher calls once a week. Work is sent home, and work is posted online How do I share with the school where I work of services continuing for students and IEP are being met as the IEP meeting is set for a phone conference iep. How do I share what other schools are doing recommending we stay on top of our new school as our principle is new 1 week on the job?
In: Operations Management
Contrast the economic experience of the HPAE with the experience in Latin America, especially with regard to the 1980s and in terms of weathering financial crises.
In: Economics
In: Nursing
what is the origin of shigella and what is the origin of dysenteriae? what do they translate to? (microbiology)
some translate to Greek or latin.
In: Biology
In: Economics
Why did so many countries experience a decline in poverty rates in Latin America between 2005-2012?
In: Economics
Within the contexts of the United States, how do the intersections between sexuality, gender, and race impact Latin@ lives?
In: Economics
2. How is absolute poverty measured, in comparison to the distribution of national income? List 3 countries in Latin America with extremely high rates of absolute poverty and 3 countries with very high income inequality. What are 2 factors which may have increased absolute poverty rates throughout the region’s history? Refer to how a household would be above or below an absolute poverty line. Finally, provide 2 factors which have increased income inequality in Latin America throughout its history.
In: Economics