Write a method to print

  

1. Write a method to print a (singly) linked list of integers in reverse order using a stack. (Pseudocode, assuming that a stack class is already defined for you) .

2. Assume that a queue is implemented with a circular array. Write a method in Pseudocode to calculate the sum of all elements in the queue.

3. A palindrome is a string that reads the same forward and backward. For example, “Able was I ere I saw Elba “. Write a program to determine whether a string is palindrome.

4. Write a program to add two large integers with up to 300 digits. One approach is to treat each number as a list, each of whose elements is a block of digits of that number, then add two integers (lists), element by element, carrying from one element to the next when necessary.

DAT/305

Respond to the following required content in a minimum of 175 words:

  1. Another important property of a binary search tree is being able to easily find the maximum and minimum key in the tree. Thoroughly discuss the simple rule to identifying these keys.
  2. Define the three tree traversal processes (i.e., pre-order, in-order, and post order).
  3. Provide an example of one tree traversal process, ideally utilizing a visual image along with an explanation.

Reflection: Honoring Rev. Dr. MLK Jr.

Assignment Content

  1. Celebrating his life and his legacy: 

    Read each quote below and complete the reflection activity in no more than 300 words: Word document, double-spaced. 

    Dr. King quotations:

    1. “If you can’t fly, run. If you can’t run, walk. If you can’t walk, crawl. But, by all means, keep moving.”
    2. “There comes a time when one must take a position that is neither safe, nor politic, nor popular, but he must take it because conscience tells him it is right.”
    3. “The ultimate measure of a man is not where he stands in moments of comfort and convenience, but where he stands at times of challenge and controversy.”
    4. “I have decided to stick to love. . . . Hate is too great a burden to bear.”
    5. “Let no man pull you so low as to hate him.”
    6. Reflection activity:
      Complete a written reflection (no more than 300 words) on your favorite quote above:
    7. Identify which quote you are reflecting on.
    8. Why is it your favorite one, and what does it mean to you?
    9. Does the quote inspire you or remind you of something?

Test

Review the below table. Suzie has an issue. She can either move to NY or FL and needs to review some data that her agent gave her. The agent reviewed house prices and crime ratings for houses that Suzie would be interested in based on her selection criteria. She wants to live in an area with lower crime but wants to know a few things:

  1. Is it more expensive or less expensive to live in FL or NY?
  2. Is the crime rate higher in FL or NY (Note a low score in crime means lower crime)?
  3. Is the crime rate higher in lower or higher house price areas?

Using the R tool, show the data in the tool to answer each of the questions. Also, show the data visualization to go along with the summary.

  1. If you were Suzie, where would you move based on the questions above?
  2. After you gave Suzie the answer above (to #4), she gave you some additional information that you need to consider:
    1. She has $100,000 to put down for the house.
    2. If she moves to NY she will have a job earning $120,000 per year.
    3. If she moves to FL she will have a job earning $75,000 per year.
    4. She wants to know the following:
      1. On average what location will she be able to pay off her house first based on average housing prices and income she will receive?
      2. Where should she move and why? Please show graphics and thoroughly explain your answer here based on the new information provided above.
    5. tableLocationPriceCrime RatingNY225,2508NY3155425NY4502652NY7502501NY5546682NY3221244NY4112582NY3554124NY4662512NY7012511NY2413154NY3452155NY1985629NY1887528NY7412452NY6423153NY4235612NY5214461NY2456858NY2455434FL1203215FL1520154FL2145216FL2352134FL2635312FL2589644FL3256452FL3256411FL3245122FL2451205FL2457844FL2651245FL3521562FL3595213FL3985411FL4012131FL4023151FL2560125FL3140212FL1596328FL2013216FL2042015FL2052364FL2072056FL2062014FL1982655Note: The screenshots should be copied and pasted and must be legible. Only upload the word document. Be sure to answer all of the questions above and number the answers. Be sure to also explain the rational for each answer and also ensure that there are visuals for each question above. Use at least two peer reviewed sources to support your work.

Exp19_Excel_Ch03_ML1_Airports

Exp19_Excel_Ch03_ML1_Airports

  

Project Description:

As an analyst for the airline industry, you track the number of passengers at the top six major U.S. airports: Atlanta (ATL), Chicago (ORD), Los Angeles (LAX), Dallas/Fort Worth (DFW), Denver (DEN), and New York (JFK). You researched passenger data and created a worksheet that lists the number of total yearly passengers at the top six airports. To prepare for an upcoming meeting, you will create a clustered column chart to compare the number of passengers at each airport. Then, you will create a line chart that compares trends over time. Next, you will create a bar chart to compare the passenger count for the latest year of data available and then emphasize the airport with the largest number of passenger traffic. Finally, you want to insert sparklines to visually represent trends in passengers at each airport over the 10-year period.

     

Start   Excel. Download and open the file named Exp19_Excel_Ch03_ML1_Airports.xlsx. Grader has automatically added   your last name to the beginning of the filename.

 

 

You want to create a clustered   column chart to depict the passenger counts at the six airports over several   years.
  Use Quick Analysis to create a clustered column chart for the range A4:L10.   Cut the chart and paste it in cell A15.

 

You want to customize the column   chart with a chart title, display the years as a data series, enlarge the chart   to be easier to read, and apply a chart style.
  •Type Passengers   by Top U.S. Airports   as the chart title.
  •Swap the data on the category axis and in the legend.
  •Set a 3.5″ height and 11.4″ width.
  •Apply the Style 7 chart style.

 

The value axis takes up a lot of   space for the numbers. You will adjust the value axis to simplify it.
  •Change the display units to Millions for the value axis.
  •Edit the axis title to display Millions of Passengers.

 

 

You want to focus on the 2016 data   series by adding data labels.
  Display data labels above the columns for the 2016 data series only.

 

Applying a fill color to the   chart area will make the chart visually appealing.
  Apply the Light Gradient – Accent 2 preset gradient fill to the chart area.

 

 

A best practice is to add Alt   Text to a chart for accessibility compliance.
  Add Alt Text: The chart displays the number of passengers in millions   for the top six airports from 2006 to 2016. (including the period).

 

When you change the workbook   theme, Excel applies that theme to the chart styles.
  Change the workbook theme to Slice.

 

 

You want to create a bar chart   to display passenger counts for only one year.
  Create a recommended clustered bar chart for the range A5:A10 and L5:L10 and move   the chart to a chart sheet named Bar Chart.

 

You want to customize the bar   chart.
  •Change the chart color to Colorful Palette 3.
  •Enter Passengers   at Top 6 U.S. Airports in 2016 as the chart title.
  •Apply the Style 5 chart style.
  •Add Alt Text: The bar chart shows passengers at Top 6 U.S. Airports   in 2016. Atlanta had the most passengers. (including the period).

 

 

Modifying the axes will improve   readability of the bar chart.
  •Change the font size to 10 for the category axis and value axis.
  •Change the value axis Maximum Bound to 1.1E8.

 

 

You will format a data point so   that it stands out and then add gridlines to enhance readability in the bar   chart.
  •Format the Atlanta data point with Dark Blue, Text 2 fill color.
  •Add Primary Minor Vertical gridlines.

 

A line chart effectively shows   trends over time for the passenger counts at the different airports.
  Create a line chart using the range A4:L10 in the Passenger worksheet and   move the chart to a chart sheet named Line Chart. Add a chart title Passengers   at U.S. Airports 2006-2016 and bold the title.

 

 

You want to customize the line   chart.
  •Set the Minimum Bound at 4.0E7 for the value axis. The Maximum Bound should change to 1.1E8   automatically.
  •Set the Vertical (Value) Axis Display units to Millions. Delete the Vertical   (Value) Axis Display Units Label from the upper-left corner of the chart. Add   a value axis title In Millions.
  •Change the font size to 10 for the value axis and category axis.
  •Move the legend to the top.
  •Filter the chart by deselecting the odd-numbered years.
  •Add Alt Text: The line chart displays trends for top six U.S.   airports from 2006 to 2016 at two-year intervals. (including the period).

 

CPSC

  

CPSC-131 Project 3: 

Document Index 

This project is different from the previous two, where you were given skeleton classes with member functions to complete. Its goal is for you to become familiar with the use of the binary search tree by using the Standard Library (SL) implementation of this container: the STL map. It requires you to use existing SL classes to solve a problem, not to fill in the members of those classes as previous projects have done. The project files provide one class, DocumentIndex, with member functions that you must complete. 

Application

The project requires the design and implementation of an application program that creates a page index for a text document. The index must have one line for each word in the document, with a list of page numbers following the word in that line. Here is a sample: 

Class 12, 34, 56

Warning 

Be very careful about the format of the lines in your output file.

Your index file will be checked by a program that expects the format of the file’s lines to conform to the example shown—a single word, a space, a set of numbers separated by a comma and a space. 

A nonconforming format will cause a test to fail.

Document pages are separated by two successive empty lines, created by pressing Return twice after the Return that ends a paragraph. Here is an illustration:

Last line of a page

First line of next page 

Words are separated by spaces, tabs, and punctuation, which may be: 

period (.) 

comma (,)

colon (:)

semicolon (;)

question mark (?)

exclamation point (!) 

The punctuation should not appear in the index.

Words can end with a possessive—an apostrophe followed by an s. The index must contain the word without the ‘s. 

Word that contain digits or symbols other those mentioned above must not appear in the index. 

Words can begin with opening double or single quotation marks, or parentheses; they can end

with the corresponding closing character. These marks may enclose a string of words, not just a single word. You do not have to check for matching pairs; you only have strip them off like other punctuation. The marks should not appear in the index. Enclosed words, after the marks are stripped, are subject to the other constraints. For example, the word “Room-131” is not a legal word because of the hyphen and the digits. 

If a word appears more than once on a page, the page number must appear only once in the index. 

Words in the exclusion file must not appear in the index.

Words that appear more than ten times in the document must not appear in the index.

The words in the index must appear in sorted order and the page numbers for each word must appear in sorted order.

Classes and Functions 

The document index program must have a DocumentFile class and a documentIndex class with the indicated functions: 

DocumentFile 

• Close: Close the document file after it’s been used. This function’s code will be provided to you. 

• GetWord: Return the next legal word from the document file, stripping out the allowable punctuation and skipping over the illegal words (those with disallowed characters). 

• GetPageNumber: Return the current page number.

• LoadExclusions: Load the word exclusion list from a file, given the file’s name.

• Open: Open the document file, given its name. This function’s code will be provided to you.

• Read: Read the next line of the document file; update the page number if appropriate. 

DocumentIndex 

• Create: Create the index from the document file. 

• Write: Write the index to a file.

This list is a summary; the documentindex.h file contains a complete declaration of the classes and the documentindex.cpp file contains definitions of the functions—some skeletons for you to complete and some provided for you to use without having to change them. 

Implementation

You are to use the Standard Library (SL) map class to hold index information. You may find it necessary to use other SL containers within the map’s data elements. 

Remember that the nodes of a tree, which is the structure that the SL map implements, are key/data pairs. The map’s insert function takes a key and an associated data element, which can be anything, including a class or structure. The structure can have anything as a member, including other SL containers. 

Resources 

Program Files 

These files will be posted on GitHub for you to download, use or modify, and submit:

• documentindex.h: contains declarations of the DocumentFile and DocumentIndex 

classes. You may add other declarations as needed for your implementation. Do not add definitions (code) to this file; definitions of functions belong in documentindex.cpp. 

• documentindex.cpp: contains skeletons for the required member functions, either

completely empty or partially filled in. You may add other functions, member and

nonmember, as needed for your implementation. 

• getline.cpp: contains the definition of a function that handles text lines with various combinations of line endings—carriage return/line feed. It accommodates the differences between platforms; different editors and word processors use different line endings. 

• getline.h: contains the declaration of the GetLine function.

• main.cpp: contains a set of test functions that will call DocumentIndex’s functions. Do not modify this file. Do not submit this file as part of your project; a controlled version will be used to test your submission. 

Test Files 

These files are used by main.cpp during testing. They will be posted on GitHub for you to download: 

• document.txt: contains a large multipage document to be used as input for the

CreateIndex function. 

• excessiveappearances.txt: contains a number of words, some repeated more than the ten allowed times, to be used as input for testing. 

• exclusions.txt: contains a list of words, one per file line, to be used as input for the

LoadExclusions function. 

• expectedindex.txt: contains a sample index file, created when the document.txt file is

used as input. Main.cpp compares it against the actualindex.txt file created during testing. 

• getword.txt: contains a small document that is simply a collection of legal words,

including some with legal punctuation and some with illegal characters such as numbers and symbols; it is used to test the GetWord function. 

• pagenumber.txt: contains a small document that is primarily a set of pages; it is used to test the “next page” detection function. 

All  of these test files are samples. Do not submit them; your final submission will be tested using different files. 

References 

These files, which describe SL classes of interest, will be posted for your use:

• map.pdf: a brief description of the relevant map functions—insert, find, erase—including how to insert a key/data pair.

• set.pdf: a brief description of the SL set’s relevant functions—insert and size. You may find this container interesting or useful.

A more extension description of the SL classes and their functions can be found at 

www.cplusplus.com.

BIAs and BCPs

Senior management at Health Network has decided they want a business impact analysis (BIA) that examines the company’s data center and a business continuity plan (BCP). Because of the importance of risk management to the organization, management has allocated all funds for both efforts. Your team has their full support, as well as permission to contact any of them directly for participation or inclusion in the BIA or BCP.Winter storms on the East Coast have affected the ability of Health Network employees to reach the Arlington offices in a safe and timely manner. However, no BCP plan currently exists to address corporate operations. The Arlington office is the primary location for business units, such as Finance, Legal, and Customer Support. Some of the corporate systems, such as the payroll and accounting applications, are located only in the corporate offices. Each corporate location is able to access the other two, and remote virtual private network (VPN) exist between each production data center and the corporate locations.The corporate systems are not currently being backed up and should be addressed in the new plan. The BCP should also include some details regarding how the BCP will be tested.

Please answer below

  1. Research BIAs and BCPs.
  2. Develop a draft BIA plan for the Health Network that focuses on the data center. The BIA should identify:
    1. Critical business functions
    2. Critical resources
    3. Maximum acceptable outage (MAO) and impact
    4. Recovery point objective (RPO) and recovery time objective (RTO)
  3. Develop a draft BCP that could recover business operations while efforts are ongoing to restart pervious operations. You may use or repurpose a BCP template you find online. Include a description of how you would test the plan.

1000 words with APA format and references needed.

Assignment

Section 2.3:  Complete problems 40 and 55. 

Section 2.4: Complete problem 80.

Section 2.5: Complete problems 56 and 92.

Explain problem 82 from section 2.5 (on page 154)

Please see the attached documents.