Write the following two functions

Write the following two functions in C++1. void generate(int arr[], int size)to generate a random permutation of the numbers 1 to 10.To generate a random permutation, the function needs to fill a permutation array with the numbers 1 to 10 so that NO two elements in the permutation array have the same contents. To achieve that, your function should do the following:• Create a second array (name this array source) and fill it with numbers from 1 to 10.

• Randomly select an element from the array source

• Remove the selected element from source and append it to the permutation array.2. void print_array(int arr[], int size)to print out the elements in the permutation array separated by a white space.Write a C++ code that calls the generate and print_arrays functions repeatedly (5 times) to generate five random permutations of the numbers 1 to 10 and display the outcome at the console.

Extranet 4

 

DISCUSSION

CASE: PepsiCo
“Take PepsiCo, for example. As one of the leading soft drink makers and bottlers, PepsiCo turned to IoT for the most basic of reasons and found an efficient solution. Like many enterprises, the company had inefficient and ineffective IT and OT infrastructure, as well as limited IT and OT resources available inside its plants. It also suffered from server sprawl, where each server supported a very small portion of the production load. PepsiCo essentially incurred high costs to purchase and support an ever-expanding infrastructure of underutilized servers, operating systems, and networking assets. The result: highly inefficient use of capital—at a minimum. Even worse, its inefficient network hindered the collection of data that would ordinarily drive plant productivity.”

What were the paybacks to PepsiCo after implementing IoT? Elaborate.

Cyber security in Ethics and security

introduction:

a.Problems in cyber security.  

b.Copyright infringement.  

c.Click fraud –

d.Advance fee fraud.  –

e.Hacking – 

f.Copy right infringement.  

g.Data loss

Research problem  – 

Problem statement – 

Research questions –  

1.

2.

3.

4.

Methodology /example –

Analysis – 

Summary /conclude – 

References

IT470 week 3 Assignment

Assignment/Paper 1: Download Wire Shark From

https://www.wireshark.org/download.html

Submit one to two-page summary of Wire Shark article. You are required to use IGU’s learning resources such as university’s digital library and online resources and confirm your use of these resources with your instructor. See “LRS” section above

(required assignment-due END OF Week 4).

Your assignment must follow these formatting requirements:

  • Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions.
  • Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length.

PERL

  

PERL

. Create an array with the numbers from 1 to 100. Write a subroutine that modifies this array by squaring each entry in the array. Write your subroutine so that you use pass by reference in order to modify the original array in the main body. Print out the first 10 entries and the last 10 entries of the array before and after the action of the subroutine within the main body. 

Exp19_Excel_Ch07_HOEAssessment_Employees

 

Exp19_Excel_Ch07_HOEAssessment_Employees

 

Home>Computer Science homework help

Exp19_Excel_Ch07_HOEAssessment_Employees

Project Description:

You work for a clothing distributor that has locations in Iowa, Minnesota, and Wisconsin. You will use date and logical functions to complete the main employee data set, use database functions to calculate key summary statistics and create a map, and use financial functions to complete a loan amortization table.

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

The 1-Data worksheet contains   employee data. You will insert several functions to complete this worksheet.   Column C contains the actual hire dates for the employees. You want to   extract only the year in column G.
 

  In cell G9, insert the appropriate date function to extract the year from the   date in cell C9. Copy the function from cell G9 to the range G10:G33.

Next, you want to determine how   many years each employee has worked for the company.
 

  In cell H9, insert the YEARFRAC function to calculate the years between the   hire date and the last day of the year contained in cell G2. Use a mixed   reference to cell G2. Copy the function from cell H9 to the range H10:H33.

You want to determine what day   of the week each employee was hired.
 

  In cell I9, insert the WEEKDAY function to display the day of the week the   first employee was hired. Use 2 as the return_type. Copy the function from   cell I9 to the range I10:I33.

The value returned in cell I9 is   a whole number. You want to display the weekday equivalent.
 

  In cell J9, insert a VLOOKUP function to look up the value stored in cell I9,   compare it to the array in the range H2:I6, and return the day of the week.   Use mixed references to the table array. Copy the function from cell J9 to   the range J10:J33.

Column D contains the city each   employee works in. You want to display the state.
 

  In cell F9, insert the SWITCH function to switch the city stored in cell D9   with the respective state contained in the range C2:C4. Switch Des Moines for Iowa, St. Paul for Minnesota, and Milwaukee for Wisconsin. Use mixed   references to cells C2, C3, and C4. Copy the function from cell F9 to the   range F10:F33.

Your next task is to calculate   the bonus for the first employee. If the employee was hired before 1/1/2010,   the employee’s salary is multiplied by 3%. If the employee was hired before   1/1/2015, the employee’s salary is multiplied by 2%. If the employee was   hired before 1/1/2020, the employee’s salary is multiplied by 1%.
 

  In cell K9, insert the IFS function to create the three logical tests to   calculate the appropriate bonus. Use mixed references to cells within the   range K2:L4. Copy the function from cell K9 to the range K10:K33.

Top management decided to ensure   all representatives’ salaries are at least $62,000 (cell G2).
 

  In cell L9, nest an AND function within an IF function. If the job title is Representative   and the salary   is less than the minimum representative salary, calculate the difference   between the minimum representative salary and the actual salary. If not,   return zero. Use a mixed reference to cell G3. Copy the function from cell L9   to the range L10:L33.

The 2-Summary worksheet contains   data to insert conditional math and statistical functions to provide summary   data. First, you want to count the number of employees in each state.
 

  Click the 2-Summary worksheet. In cell J3, insert the COUNTIF function to   count the number of employees in Iowa, using the state abbreviation column   and the state abbreviation in cell I3. Use mixed references for the range and   cell to keep the row numbers the same. Copy the function from cell J3 to the   range J4:J5.

Next, you want to calculate the   total payroll for each state.
 

  In cell K3, insert the SUMIF function to total the salaries for employees who   work in Iowa, using the state abbreviation column and the state abbreviation   in cell I3. Use mixed references for the ranges and cell to keep the row   numbers the same. Copy the function from cell K3 to the range K4:K5.

Next, you want to calculate the   average salary for executives and the average salary for representatives.
 

  In cell J8, insert the AVERAGEIF function to calculate the average salary for   executives. Use mixed references to the range and for the cell containing   Executives. Copy the function to cell J9.

You want to identify the number   of representatives hired before 1/1/2015.
 

  In cell J12, insert the COUNTIFS function to count the number of   representatives who were hired before 1/1/2015. Use ranges for the criteria   ranges and the reference to cell H9 that contains Representatives. Enter the   date condition directly in the criteria box.

In cell J13, insert the SUMIFS   function to calculate the total salaries for representatives hired before   1/1/2015. Use ranges for the criteria ranges and the reference to cell H9   that contains Representatives. Enter the date condition directly in the   criteria box. Use mixed references to the ranges and cell reference so that   you can copy the function in the next step.

Copy the function from cell J13   to the range J14:J16. Edit the function in cell J14 to calculate averages.

Edit the function in cell J15 to   calculate the lowest salary.

Edit the function in cell J16 to   calculate the highest salary.

Insert a map to display total   salaries by states.
 

  Select the ranges I2:I5 and K2:K5 and insert a filled map. Change the chart   title to Payroll by State. Cut the chart and paste it in cell M1.

The 3-Finance worksheet contains   inputs for a loan.
 

  In cell F2, insert the PV function to calculate the loan. Use cell references   in the Input Area and Basic Output Area.

You are ready to insert formulas   and functions in the loan amortization table.
 

  In cell C7, enter a reference to the Payment that is stored in cell D2. Use   mixed reference so that the row number does not change. Copy the formula from   cell C7 to the range C8:C42.

The next column is designed to   display the interest portion of each payment.
 

  In cell D7, insert the IPMT function to calculate the interest for the first   payment. Use mixed references for cells in the Basic Output Area and make   sure the result is a positive value. Copy the function from cell D7 to the   range D8:D42.

Next, you are ready to calculate   the portion of the monthly payment that goes toward the principal.
 

  In cell E7, insert the PPMT function to calculate the principal portion of   the first payment. Use mixed references for cells in the Basic Output Area   and make sure the result is a positive value. Copy the function from cell E7   to the range E8:E42. 

Now you are ready to calculate   the balance of the loan after each payment.
 

  In cell F7, enter a formula to calculate the ending balance after subtracting   the Principal Repayment from the Beginning Balance. Copy the formula from   cell F7 to the range F8:F42.
 

  In cell B8, enter a formula that refers to the ending balance for the   previous month in cell F7. Copy the relative formula to the range B9:B42.

Now you want to calculate the   cumulative interest after each payment.
 

  In cell H7, insert the CUMIPMT function. Use mixed references for cells in   the Basic Output Area and the Start_period argument. Make sure the result is   a positive value. Copy the function from cell H7 to the range H8:H42. 

Finally, you want to calculate   the cumulative principal after each payment.
 

  In cell I7, insert the CUMPRINC function. Use mixed references for cells in   the Basic Output Area and the Start_period argument. Make sure the result is   a positive value. Copy the function from cell I7 to the range I8:I42.

Insert a footer on all three   sheets with your name on the left side, the sheet name code in the middle,   and the file name code on the right side.

Save and close Exp19_Excel_Ch07_HOEAssessment_Employoees.xlsx.   Exit Excel. Submit the file as directed.

Assignment – The Impact of Automation on Labor

 Complete this assignment in no more than 4 short paragraphs.

State your opinion on the impact of automation on the workforce. In other words, do you think automation will eliminate jobs OR automation will not, in the long run, eliminate jobs? Support your opinion by referencing your readings. In either case hypothesize how the scenario you support will affect a global economy. 

  • Summarize the argument that automation will replace the human workforce using the article Prepare Your Workforce for the Automation Age*. You must use at least one short quotation. Include a citation and bibliography in APA style. You are required to create your citation(s) and bibliography using the Word references tool. Videos are provided on your Unit 02 page to help you with citations and bibliography. 

    *Knoess, C., Harbour, R., & Scemama, S. (2016). Prepare Your Workforce for the Automation Age. Harvard Business Review, 2-5. Retrieved February 11, 2017, from Harvard Business Re: https://hbr.org/2016/11/prepare-your-workforce-for-the-automation-age

OR 

  • Summarize the argument that automation may not adversely affect the human workforce based on two articles Robots and Automation May Not Take Your Desk Job After All** and Automation Can Actually Create More Jobs.*** You must use at least one short quotation. Include a citation and bibliography in APA style. You are required to create your citation(s) and bibliography using the Word references tool. Videos are provided on your Unit 02 page to help you with citations and bibliography. 

**Finnigan, D. (2016). Robots and Automation May Not Take Your Desk Job After All. Harvard Business Review, 2-4.

***Mims, C. (2016, December 11). Automation Can Actually Create More Jobs. Wall Street Journal, pp. 1-2.

Structure your writing like this:

  1. State your opinion
  2. Support your opinion with paraphrases and at least one quotation with appropriate citations in APA style
  3. Transition to a description of the counter arguments (for example, “Even though I believe X, some experts believe…”) and include at least one quotation with appropriate citations in APA style
  4. Explain why you think the counter-arguments are wrong 
  5. In a brief conclusion, restate or modify your opinion and refer to your first post in Unit 01. Do you think your future or current job is safe? 
  6. Include citations and a bibliography in APA style

IT348 week 7

 APA Format Header and citation 400 words

Click on the link “The main reasons why IOT companies failed.”  Compare the mistakes/challenges from chapter 8, pages 175-177, with those mentioned in the article. Match each mistake (5) in the article with at least one in chapter 8.
https://www.raconteur.net/technology/the-main-reasons-why-iot-projects-fail (Links to an external site.)

Submit your answer in Canvas for credit.

GUI Features

 

In this assignment, we will make changes to our previous programs  based on what we have learned. Write a Java application program to  calculate property tax. Your program should have the following  functions:

  1. Prompt users for the number of properties.
  2. Prompt users for property tax.
  3. Prompt users to input the value for each property
  4. Calculate the TOTAL amount of all property tax combined
  5. User must press “E” to terminate the program.

Hint: one dimensional array is sufficient for this program, assuming  all properties are in the same city, hence, the property tax is the  same.

You will also need to write pseudo code for this assignment. 

 Assignment Expectations

Using your knowledge of arrays, repetition statement, selection  statement, and other Java fundamentals, write a property tax calculator  program. The following items will be assessed in particular:

  1. Arrays used in the program.
  2. GUI feature used to allow users interaction.
  3. Whether the program has bugs.

Upload a screen shot of your program and the output

Association Rule Analysis

 

Excel worksheets contain a set of receipt data for a bakery where each row represents a different customer’s purchase. For each row, a 1 indicates they purchased that product and a 0 means they did not. In total, there are 50 different products the bakery sells, and the owner is interested in determining any association rules in the purchase patterns of their customers.

Complete an Association Rule analysis on the following data using a minimum confidence percentage of 70% and a minimum support of 10.

 Answer the following questions:

  1. How many rules did Association Rule analysis found?
  2. Pick any one of the resultant rules developed by your analysis and explain each of the columns in the output using that rule as an example.
  3. Select the 5 rules you would recommend to the bakery owner and explain your reasoning.

Please upload the completed workbook which shows your association rule analysis and answers to the questions.