The security for application software is enhanced and optimized through a procedure called threat modeling. In major applications, such as those used by manufacturing, banking, or distribution companies, that do scheduling, resource management, inventory management, accounting, and more, security is a crucial element of its operations. Research threat modeling and briefly describe a procedure you would recommend to provide robust security for a major application in this type of environment
In: Computer Science
´Software Engineer Christopher is hired by software company, ABC Software, and involved in the design of specialized software for Gladstone City Council (GCC) in connection with the operations of facilities that impact on public health and safety, such as those that control air and water quality. Testing the software system is part of the design process. Christopher conducts extensive testing and finds that the software is safe to use under existing standards. But Christopher is aware that new draft standards are about to be released by the national standard setting organization, standards that the newly designed software may not meet. Christopher suggests that ABC Software and GCC perform additional testing on the software to see if it meets these new safety standards. Such testing would determine whether the software is suitable for release as it currently exists or whether further development is required. But GCC is eager to proceed and ABC Software is eager to satisfy its client and protect its finances and existing jobs. Doing the additional testing would be extremely costly and delay the project at least six months. This would put ABC Software at a competitive disadvantage and cost it a lot of money, putting the goals of protecting its finances at risk. However, ABC Software wants to be sure that the software is safe to use. ABC Software has requested Christopher's recommendation concerning the need for additional software testing. (adapted from Online Ethics Centre for Engineering and Science. Software Design Testing. Retrieved 24/9/2014 from http://www.onlineethics.org/Resources/Cases/ec96-4.aspx)
´a) State the ethical dilemma that confronts Christopher. b) Use bullet points to list the relevant facts as given in the scenario. c) What are the potential consequences and to whom, if the software is not tested further and the new standards are not met? d) What are the consequences and to whom, if the extra testing is done? e) What conflicting duties does Christopher have in this scenario? f) What rights do the general public, Gladstone City Council and ABC Software have in this scenario g) What virtues should Christopher exhibit in this scenario are observe in this scenario? i) Recommend the course of action that Christopher should take giving reasons based on some or all of your previous 6 answers (parts c to h)
In: Computer Science
#include <iostream>
using namespace std;
void SortArrays (int a[], int b[], int c[], int size);
void printArray(int m[], int length);
const int NUM = 5;
int main()
{
int arrA[NUM] = {-2, 31, 43, 55, 67};
int arrB[NUM] = {-4, 9, 11, 17, 19};
int result[2*NUM];
SortArrays(arrA, arrB, result, NUM);
printArray(result, 2*NUM);
return 0;
}
void SortArrays (int a[], int b[], int c[], int size)
{
}
void printArray(int m[], int length)
{
for(int i = 0; i < length; i++)
cout<< m[i]<<" ";
cout<<endl;
In: Computer Science
in C++
Given two integer arrays sorted in the ascending order, code the function SortArrays to merge them into one array in the descending order. You need to make sure if the values in the arrays are changed, it will still work. (25 points)
#include <iostream>
using namespace std;
void SortArrays (int a[], int b[], int c[], int size);
void printArray(int m[], int length);
const int NUM = 5;
int main()
{
int arrA[NUM] = {-2, 31, 43, 55, 67};
int arrB[NUM] = {-4, 9, 11, 17, 19};
int result[2*NUM];
SortArrays(arrA, arrB, result, NUM);
printArray(result, 2*NUM);
return 0;
}
void SortArrays (int a[], int b[], int c[], int size)
{
}
void printArray(int m[], int length)
{
for(int i = 0; i < length; i++)
cout<< m[i]<<" ";
cout<<endl;
}
In: Computer Science
Consider the following case study: Clean Planet is a private business based in Victoria specialising in commercial cleaning supplies and business support products for organisational clients. Only a few computerized operations are in the business. In an effort to become more efficient and profitable, the vice president, Julia Thompson, has hired a systems analyst, Robert Hanover. Julia and Robert have made progress in the development of a strategic plan for Clean Planet. Robert is anxious to define the requirements for the new system. He has gathered more information and has created the following organization chart for Clean Planet. Robert: Julia, it’s time to start moving on the system investigation. The mission statement is finalized and strategic planning is well underway. I can see that the directors are beginning to think about how their departments can benefit from better information management. Julia: You’re right! Andrew McClean found out that we lost a big order the other day because the customer was able to get the estimate much more quickly from another company because of their online presence. He’s wondering just how many sales we are losing because of timeliness issues. I had Anna’s group gather numbers for the directors about how many times our profit margin has been reduced because of human error somewhere along the order process. We are profitable but could be more so by reducing error and becoming more competitive with timely information to our potential customers. Robert: Andrew’s area of sales is a logical place to start the investigation. I need to interview sales and customer service representatives to get an idea of the requirements for the new information system. What kind of information will we include? What do we want to get out? What processes need to be managed? What are our business needs? Charles Edwards President Julia Edwards Vice President Andrew McClean Director of Sales Anna McNally Director of Finance Martha Seymour Director of Operations Dennis Martin Shipping/Receiving Manager George Thompson Warehouse Manager Sales Rep (6) Accounting/Billing Clerk (2) Customer Service Rep (3) Julia: This will take some time, and a lot of information needs to be gathered. You should make sure you spend some time with the accounting clerks too because they fill in for customer service representatives. Robert: I’m ready to get started! Answer the following questions: a. Develop a fact-finding plan including interviews, documentation review, observation, questionnaires, sampling, and research. b. Review the organizational model above and list the individuals you would like to interview. Prepare a list of objectives for each of the interviews you will conduct. c. Prepare a list of specific questions for each individual you will interview.
In: Computer Science
You will implement and test the sequence class using an array to store the sequence's items in C++. sequence1.h: The header file for the sequence class. Actually, you don't have to write much of this file. Start with the sequence1.h header file provided and add your name and other information at the top. Also, decide on appropriate private member variables, and declare these in the sequence class definition at the bottom of the header file. If some of your member functions are implemented as inline functions, then you may put those implementations in this file too. 2. sequence1.cxx: The implementation file for this first sequence class. You will write all of this file, which will have the implementations of all the sequence's member functions. // FILE: sequence1.h // CLASS PROVIDED: sequence (part of the namespace main_savitch_3) // There is no implementation file provided for this class since it is // an exercise from Section 3.2 of "Data Structures and Other Objects Using C++" // // TYPEDEFS and MEMBER CONSTANTS for the sequence class: // typedef ____ value_type // sequence::value_type is the data type of the items in the sequence. It // may be any of the C++ built-in types (int, char, etc.), or a class with a // default constructor, an assignment operator, and a copy constructor. // // typedef ____ size_type // sequence::size_type is the data type of any variable that keeps track of // how many items are in a sequence. // // static const size_type CAPACITY = _____ // sequence::CAPACITY is the maximum number of items that a sequence can hold. // // CONSTRUCTOR for the sequence class: // sequence( ) // Postcondition: The sequence has been initialized as an empty sequence. // // MODIFICATION MEMBER FUNCTIONS for the sequence class: // void start( ) // Postcondition: The first item on the sequence becomes the current item // (but if the sequence is empty, then there is no current item). // // void advance( ) // Precondition: is_item returns true. // Postcondition: If the current item was already the last item in the // sequence, then there is no longer any current item. Otherwise, the new // current item is the item immediately after the original current item. // // void insert(const value_type& entry) // Precondition: size( ) < CAPACITY. // Postcondition: A new copy of entry has been inserted in the sequence // before the current item. If there was no current item, then the new entry // has been inserted at the front of the sequence. In either case, the newly // inserted item is now the current item of the sequence. // // void attach(const value_type& entry) // Precondition: size( ) < CAPACITY. // Postcondition: A new copy of entry has been inserted in the sequence after // the current item. If there was no current item, then the new entry has // been attached to the end of the sequence. In either case, the newly // inserted item is now the current item of the sequence. // // void remove_current( ) // Precondition: is_item returns true. // Postcondition: The current item has been removed from the sequence, and the // item after this (if there is one) is now the new current item. // // CONSTANT MEMBER FUNCTIONS for the sequence class: // size_type size( ) const // Postcondition: The return value is the number of items in the sequence. // // bool is_item( ) const // Postcondition: A true return value indicates that there is a valid // "current" item that may be retrieved by activating the current // member function (listed below). A false return value indicates that // there is no valid current item. // // value_type current( ) const // Precondition: is_item( ) returns true. // Postcondition: The item returned is the current item in the sequence. // // VALUE SEMANTICS for the sequence class: // Assignments and the copy constructor may be used with sequence objects. #ifndef MAIN_SAVITCH_SEQUENCE_H #define MAIN_SAVITCH_SEQUENCE_H #include // Provides size_t namespace main_savitch_3 { class sequence { public: // TYPEDEFS and MEMBER CONSTANTS typedef double value_type; typedef std::size_t size_type; static const size_type CAPACITY = 30; // CONSTRUCTOR sequence( ); // MODIFICATION MEMBER FUNCTIONS void start( ); void advance( ); void insert(const value_type& entry); void attach(const value_type& entry); void remove_current( ); // CONSTANT MEMBER FUNCTIONS size_type size( ) const; bool is_item( ) const; value_type current( ) const; private: value_type data[CAPACITY]; size_type used; size_type current_index; }; } #endif
In: Computer Science
Additional Requirements
1.The name of your source code fileshould be ProbEst.py All your code should be within a single file.
2.You cannot import any package except for pandas.You need to use the pandas DataFrame object for storing data
Requirements Y ou are to create a program in Python that performs the following: 1. Asks the user for the number of cars (i.e. data instances) . 2. F or each car , ask s the user to enter the following fields: make, model , type (coupe, sedan, SUV), rating (A, B, C, D, or F) . Save the feature values for each car in a DataFrame object. 3. Display s the resulting DataFrame 4. Compute s the probability of each rating and output s to the screen. 5. For each type , compute s the conditional probability of that type, given each of the ratings: 6. Display s the conditional probabilities to the screen.
Output
70-511, [semester] [year]
NAME: [put your name here]
PROGRAMMING ASSIGNMENT #4
Enter the number of car instances:6
Enter the make,model,type,rating:ford,mustang,coupe,A
Enter the make,model,type,rating:chevy,camaro,coupe,B
Enter the make,model,type,rating:ford,fiesta,sedan,C
Enter the make,model,type,rating:ford,focus,sedan,A
Enter the make,model,type,rating:ford,taurus,sedan,B
Enter the make,model,type,rating:toyota,camry,sedan,B
make model type rating
0 ford mustang coupe A
1 chevy camaro coupe B
2 ford fiesta sedan C
3 ford focus sedan A
4 ford taurus sedan B
5 toyota camry sedan B
Prob(rating=A) = 0.333333
Prob(rating=B) = 0.500000
Prob(rating=C) = 0.166667
Prob(type=coupe|rating=A) = 0.500000
Prob(type=sedan|rating=A) = 0.500000
Prob(type=coupe|rating=B) = 0.333333
Prob(type=sedan|rating=B) = 0.666667
Prob(type=coupe|rating=C) = 0.000000
Prob(type=sedan|rating=C) = 1.000000
In: Computer Science
Describe the role of cyber forensics examiners and unique factors to keep in mind when collecting evidence at a scene.
In: Computer Science
Use what you learned in Chapter 19 to display the following date and time using php:
Today is Tuesday October 6th.
The current time is 14:07:29 PM PDT.
Your display should appear exactly has displayed on separate lines. The date should be displayed using one function from the chapter and the time another.
In: Computer Science
Data structure
In: Computer Science
Background For this exercise, you will write an Appointment class that tracks information about an appointment such as the start and end times and a name for the appointment. Your Appointment class will also have an overlaps() method that takes another Appointment object as an argument and determines whether the two appointments overlap in python.
Instructions
Write a class called Appointment with methods as described below:
__init__() method Define an __init__() method with four parameters: self name, a string indicating the name of the appointment (for example, "Sales brunch"). start, a tuple consisting of two integers representing the start time of the appointment. The first integer represents an hour in 24-hour time; the second integer represents a number of minutes. For example, the tuple (10, 30) would represent 10:30 am. end, a tuple similar to start representing the end time of the appointment. The __init__() method should create attributes name, start, and end, and use them to store the information from the parameters.
overlaps() method Define an overlaps() method with two parameters, self and other, where other is another Appointment object. This method should return True if self and other overlap and False if they do not. Be sure to return a boolean value rather than a string. Note that two appointments overlap if the start time of one appointment occurs between the start and end times of the other appointment (including if the start times are equal), OR the end time of one appointment occurs between the start and end times of the other appointment (including if the end times are equal) For this assignment, if the start time of one appointment is equal to the end time of the other appointment, the two appointments are not considered to overlap. Hints Assuming you have two values a and c such that a is less than c, you can determine if a third value b is between a (inclusive) and c (exclusive) with an expression like this: a <= b < c When Python compares two sequences (such as tuples), it compares each item in the first sequence to the corresponding item in the second sequence until it finds a difference. For example, given the expression (10, 4, 12) < (10, 5, 1), Python first compares 10 to 10. Because they are the same, Python then compares 4 to 5. Because 4 is smaller than 5, Python stops comparing and the expression evaluates to True: (10, 4, 12) is considered less than (10, 5, 1) in Python. A boolean expression such as a <= b < c evaluates to True or False. You don’t need to put it inside a conditional statement to return a boolean value. In other words, instead of this: if a <= b < c: return True else: return False you can do this: return a <= b < c
Docstrings Write a docstring for your class that documents the purpose of the class as well as the purpose and expected data type of each attribute. For each of the methods you wrote, write a docstring that documents the purpose of the method as well as the purpose and expected data type of each parameter other than self (you never need to document self in a docstring). If your document returns a value, document that. If your document has side effects, such as modifying attributes or writing to standard output, document those as well. Be sure your docstrings are the first statement in the class or method they document. Improperly positioned docstrings are not recognized as docstrings by Python.
Using your class You can use your class by importing your module into another script. Below is an example of such a script; it assumes the Appointment class is defined in a script called appointment.py which is located in the same directory as this script. use_appointment.py from appointment import Appointment def main(): """ Demonstrate use of the Appointment class. """ appt1 = Appointment("Physics meeting", (9, 30), (10, 45)) appt2 = Appointment("Brunch", (10, 30), (11, 00)) appt3 = Appointment("English study session", (13, 00), (14, 00)) if appt1.overlaps(appt2): print(f"{appt1.name} overlaps with {appt2.name}") else: print(f"{appt1.name} does not overlap with {appt2.name}") if appt1.overlaps(appt3): print(f"{appt1.name} overlaps with {appt3.name}") else: print(f"{appt1.name} does not overlap with {appt3.name}") assert appt1.overlaps(appt2) assert appt2.overlaps(appt1) assert not appt1.overlaps(appt3) assert not appt3.overlaps(appt1) assert not appt2.overlaps(appt3) assert not appt3.overlaps(appt2) if __name__ == "__main__": main()
In: Computer Science
In: Computer Science
In: Computer Science
In: Computer Science
Wireless Medical Sensor Network (WMSN)
What a computer network is and what is the importance of the
computer network to this topic (Wireless Medical Sensor
Network)?.
Explain how a Wireless Medical Sensor Network (WMSN) differs from a Wireless Sensor Network (WSN). What kind of devices does it consist of? What kind of data do the devices collect? Please include information about authentication, user friendliness and user anonymity.
In: Computer Science