Explain how two-dimensional arrays

  

1: Explain how two-dimensional arrays are passed to functions. In your explanation include a two-dimensional array declaration and initialization, a function prototype that receives a two dimensional array, and a function header with an empty body that matches the function prototype. Demonstrate how a two dimensional array is passed to the function as an argument.

 

2: Given a two-dimensional array named number of three rows and four colums of type int, write the single code statement that will both declare and initialize the array such that the first row is initialized to 0,1,2,3; the second row is initialized to 4,5,6,7; and the third row is initialized to 8,9,10,11.

 

3: Explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of constructors.

 

4: Discuss what the difference is between an interface file and an implementation file and provide file name examples for both if a class Insect is to be created using them.
SOLUTION:

 

5: Write and explain the definition composition and how it is useful in writing object-oriented programming. Also, explain how it is different from inheritance and how both inheritance and composition are useful in developing object-oriented programs.

 

6: Explain how access privileges affect members of the derived class and the objects created from them.

 

7: If a class is derived protected from a base class, explain how this affects the inheritance of all public, protected, and private members of the base class by the derived class.

 

8: Why are comments and comment blocks important to programming?

 

Cyber Security

1-Please define the Primary difference between User rights and File level rights. 

2-Please define DoS attack

3-Please explain about Security threats and vulnerabilities with examples. 

4-Please define CIA. 

5-Please provide five Security hardware and Software.

6-Explain Comprehensive concepts and mechanisms of network security. 

7-Please explain internet cryptography. 

8-Please explain about Dictionary Attack, TCP Attack and Packet Sniffing

9-Please define Risk Management. 

10-Please explain how to identify risk? 

No Plagiarism. 2-3Pages.

Power point presentation,

you have been introduced to various security tools (Network Discovery, Network Scanning, DLP, Firewalls, and HIDS).  You are to take one of the five identified categories of tools and identify two specific products from different vendors.  Based on two products, please research the differences and similarities between the two products.  You should also evaluate the implementation issues you may face with each product.  Based on your research, please create a PowerPoint or a similar presentation to explain your research and your findings of the tools.  The presentation should be comparative in nature as to highlight the similarities between the two products you researched.

The presentation must contain the following:

  • Product Background
  • Pros and Cons of each product
  • Side by Side comparison
  • Recommendation

 PowerPoint Requirements

  1. Easy to follow and understand
  2. Ratio of words to background (Essentially, not too many words on a slide.  Highlight the essentials)
  3. Graphics – Charts, Graphs, Illustrations, etc.
  4. Other – media – Audio, Video, etc.
  5. Turnitin will be completed.

computer science

 Modify DepartmentSalesS project posted on Blackboard as “Observer Pattern Example – Chart Using Swing” Add an Observer to display monthly sales in a pie chart. You modify YDTChart.java so it will display a pie chart. Modify SupervisorView.java to add a PieChart observer and change Layout so it has three columns. Follow the link to see how to draw pie chart as multiple pies. http://cs111.wellesley.edu/~cs111/archive/cs111_fall06/public_html/labs/lab12/arc.html You may use a Color array like Color[] colors= {Color.blue,Color.yellow, Color.gray, Color.green, Color.cyan, Color.red,Color.magenta, Color.orange, Color.pink, Color.darkGray, Color.black, Color.lightGray}; Before you draw the pie piece for a month i, you set color like g.setColor(colors[i]); 2. Modify ChartS posted on Blackboard as “Observer Pattern Example – Chart Using Swing” Add a PieChart to display monthly sales You may follow the following website: http://tutorials.jenkov.com/javafx/piechart.html Create array of PieChart.Data using a loop. Add one a time to PieChart using a loop. To display the tip of %, you may follow the following website https://riptutorial.com/javafx/example/8733/pie-chart 

QUESTIONS-

ANSWER EACH QUESTION

LABEL IT WITH THE QUESTION NUMBER AND PAGE

APA FORMAT FOR OUTSIDE RESOURCES

DO NOT PLAGIARIZE

Signature Assignment: Cost Model

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjIkpK09PPxAhUFbs0KHQfFAWUQFjACegQICBAD&url=https%3A%2F%2Fwww.homeworkmarket.com%2Fquestions%2Fwk-3-apply-signature-assignment-cost-model-due-day-7-wk-3-apply-signature-assignment-cost-model&usg=AOvVaw0nnZ_kC68w1zPer-gVuTK3

PYTHON FUNCTIONS

 

Part 1

Encapsulate the following Python code in a function named my_sqrt that takes a as a parameter, chooses a starting value for x, and returns an estimate of the square root of a. 

while True:
     y = (x + a/x) / 2.0
     if y == x:
          break
     x = y 

Part 2

Write a function named test_sqrt that prints a table like the following using a while loop, where “diff” is the absolute value of the difference between my_sqrt(a) and math.sqrt(a). 

a = 1 | my_sqrt(a) = 1 | math.sqrt(a) = 1.0 | diff = 0.0
a = 2 | my_sqrt(a) = 1.41421356237 | math.sqrt(a) = 1.41421356237 | diff = 2.22044604925e-16
a = 3 | my_sqrt(a) = 1.73205080757 | math.sqrt(a) = 1.73205080757 | diff = 0.0
a = 4 | my_sqrt(a) = 2.0 | math.sqrt(a) = 2.0 | diff = 0.0
a = 5 | my_sqrt(a) = 2.2360679775 | math.sqrt(a) = 2.2360679775 | diff = 0.0
a = 6 | my_sqrt(a) = 2.44948974278 | math.sqrt(a) = 2.44948974278 | diff = 0.0
a = 7 | my_sqrt(a) = 2.64575131106 | math.sqrt(a) = 2.64575131106 | diff = 0.0
a = 8 | my_sqrt(a) = 2.82842712475 | math.sqrt(a) = 2.82842712475 | diff = 4.4408920985e-16
a = 9 | my_sqrt(a) = 3.0 | math.sqrt(a) = 3.0 | diff = 0.0 

Modify your program so that it outputs lines for a values from 1 to 25 instead of just 1 to 9. 

You should submit a script file and a plain text output file (.txt) that contains the test output. Multiple file uploads are permitted.

Your submission will be assessed using the following Aspects.

  1. Does the submission include a my_sqrt function that takes a single argument and includes the while loop from the instructions?
  2. Does the my_sqrt function initialize x and return its final value?
  3. Does the test_sqrt function print a values from 1 to 25?
  4. Does the test_sqrt function print the values returned by my_sqrt for each value of a?
  5. Does the test_sqrt function print correct values from math.sqrt for each value of a?
  6. Does the test_sqrt function print the absolute value of the differences between my_sqrt and math.sqrt for each value of a?
  7. Does the my_sqrt function compute values that are almost identical to math.sqrt (“diff” less than 1e-14)?

research paper

 CREDIT CARD FRAUD DETECTION USING MACHINE LEARNING 

A. Project Overview:

Create a proposal for a machine learning project by doing the following:

1. Describe an organizational need that your project proposes to solve.

2. Describe the context and background for your project.

3. Review three outside works that explore machine learning solutions that apply to the need described in part A1. 

Note: These works may include interviews, white papers, research studies, or other types of work by industry professionals. Works that support your research may be identified from various sources, including the UC Library.

a. Describe how each reviewed work from part A3 relates to the development of your project.

 4. Summarize the machine learning solution you plan to use to address the organizational need described in part A1.

5. Describe the benefits of your proposed machine learning solution.

I need 2 pages or more with proper APA format and no plagiarism. Attached the reference article.

programming final

 Create a project and name the source file final followed by your initials

final-fd.cpp

Write a program that does the following functions

void displayMenu()to print the menu 

 1 to add two items

2 to subtract two numbers

3 to multiple two numbers

4 to divide two numbers

5 to get average of 5 numbers

6 to format a phone number

X to exit 

 Gets a menu selection that does the following

Char getSelection(); 

 Uses a do while loop and switch to get and validate the selection

Prints and error message is user inputs a wrong selection

Make sure to use toupper() 

 Use switch

Functions  

 Int getPosNumber(); 

 Used to get a positive number

The number should be input using getline string and coverted to an integer  

 using stoi 

 Use getPosNumber()to get all number 

 int sum();

int difference();

int product(); 

 double quotient();

double average(); 

 string getPhoneNumber()

gets a 10 digit phonenumber using getline 

 string formatPhone()

formats the 10 digit string to (xxx)-xxx-xxx 

 use string insert to format 

wk 7

Why do so many organizations spend money on enterprise systems yet they seldom use them to their maximum potential? Is it a data problem or a cultural problem?