Questions
State the difference between different alternative sites? What do we mean by the term remnant data...

State the difference between different alternative sites?

What do we mean by the term remnant data and how it can compromise security?

What do you understand by the term Redundancy?

In: Computer Science

I have generated a RSA key and saved the private in PEM format after randomly changing...

I have generated a RSA key and saved the private in PEM format after randomly changing 2 consecutive characters inside it (the characters will only apply to p, q, d, n, u). Now I want to write a program that tries to fix the changed PEM file in Python. Any suggestions on how to write my code?

In: Computer Science

In this assignment, you are required to write a Bash script, call it assignment2.sh. Your Bash...

In this assignment, you are required to write a Bash script, call it assignment2.sh. Your Bash script has to accept at least four input arguments, and must:

1) Print to the user a set of instructions explaining how the PATH variable can be used in Bash.

2) Save the manual of the 'awk' command in the file /tmp/help.txt.

3) Shut down your Ubuntu box at 2 o'clock tonight.

4) Store your name and your partner's name in a text file inside your home directory. The name of the file must have the following format: ite404-<date>.txt, where <date> is the current date; e.g. ite404-2020-10-26.txt.

In: Computer Science

Describe the steps involved in converting an entity-relationship diagram to a set of normalised tables.

Describe the steps involved in converting an entity-relationship diagram to a set of normalised tables.

In: Computer Science

Fortran 90: Calculate the center of mass of water, shift origin to the center of mass,...

Fortran 90: Calculate the center of mass of water, shift origin to the center of mass, construct moment of inertia tensor, determine the principal moments of inertia, print the eigenvalues of the inertia tensor.

In: Computer Science

What are the different options for converting a subtype-supertype hierarchy to relational tables?

What are the different options for converting a subtype-supertype hierarchy to relational tables?

In: Computer Science

Explain how the foreign key constraint maintains referential integrity between two tables when the database is...

Explain how the foreign key constraint maintains referential integrity between two tables when the database is inserted, updated, or deleted. What are the different 'referential actions' (foreign key rules) that can be specified?

In: Computer Science

Write a method (in Java) that will return output as stated below: toThePowerOf(int): Applies exponentiation to...

Write a method (in Java) that will return output as stated below:

toThePowerOf(int): Applies exponentiation to the existing PolyTerm. For example, 2.4x^3 to the power of 3 should return 13.824x^9 while 2.4x^3 to the power of -3 should return 0.0723x^-9

Respective JUnit test for this question:

public void testToThePowerOf() {
       assertEquals(1, t1.toThePowerOf(3).coefficient, 0.0001);
       assertEquals(3, t1.toThePowerOf(3).exponent);

       assertEquals(13.824, t2.toThePowerOf(3).coefficient, 0.0001);
       assertEquals(9, t2.toThePowerOf(3).exponent);

       assertEquals(0.0723, t2.toThePowerOf(-3).coefficient, 0.0001);
       assertEquals(-9, t2.toThePowerOf(-3).exponent);

       assertEquals(-0.2962, t3.toThePowerOf(-3).coefficient, 0.0001);
       assertEquals(0, t3.toThePowerOf(-3).exponent);

       assertEquals(46.656, t4.toThePowerOf(3).coefficient, 0.0001);
       assertEquals(-6, t4.toThePowerOf(3).exponent);

       assertEquals(0.0016, t4.toThePowerOf(-5).coefficient, 0.0001);
       assertEquals(10, t4.toThePowerOf(-5).exponent);

       currentMethodName = new Throwable().getStackTrace()[0].getMethodName();
   }

Main Function:

public class PolyTermTest {
   public static int score = 0;
   public static String result = "";
   public static String currentMethodName = null;
   ArrayList methodsPassed = new ArrayList();
  
   PolyTerm t1, t2, t3, t4;

   @BeforeEach
   public void setUp() throws Exception {
       currentMethodName = null;
       t1 = new PolyTerm(1, 1); //x
       t2 = new PolyTerm(2.4, 3); //2.4x^3
       t3 = new PolyTerm(-1.5, 0); //-1.5
       t4 = new PolyTerm(3.6, -2); //3.6x^-2
   }

In: Computer Science

Use Tinkercad or any other tool to implement the following project You have two Arduinos which...

Use Tinkercad or any other tool to implement the following project

You have two Arduinos which are connected using serial cable

Arduino#1 is connected to the following components

1-LCD, , 2-DC motor, 3-Temperature Sensor

Arduino#2 is connected to an Alarm (Buzzer) + LED

You may use other components such as resistors, function generator, power supply, relay, etc.

The system should do the following:

  1. Read the temperature every 1.5 seconds (DO NOT USE DELAY).
  2. Starting at t=6 seconds, calculate the average temperature (Tavg) during the last 6 seconds. Repeat this process every 1.5 seconds (moving average).
  3. Write the Tavg on the LCD.
  4. If the Tavg is larger than 29 ̊C, drive a DC motor (fan) with 20% duty cycle. And then increase the speed of the fan with 10% for every 2 ̊C increase above 29. If the temperature goes below 27 C, turn the DC motor off.
  5. If the Temperature become more than 35 ̊C, then the alarm will work on Arduino#2 and the LED will be ON

In: Computer Science

IN C int count_primes(int start, int end) {   //TODO: return the count of prime numbers in...

IN C

int count_primes(int start, int end)

{

  //TODO: return the count of prime numbers in range [start, end] inclusive.

  return 0;

}

In: Computer Science

QUESTION 1 ___________ is a way to pay for the raw infrastructure, which the cloud operator...

QUESTION 1

  1. ___________ is a way to pay for the raw infrastructure, which the cloud operator oversees on your behalf.

    IaaS

    PaaS

    SaaS

    FaaS

1 points   

QUESTION 2

  1. ____________ is a function within IT systems that bridges the gap between development and operations of systems.

    CI

    CD

    DevOps

    Agile

1 points   

QUESTION 3

  1. There are many different versions of cloud _________, and not all clouds are created equal.

    names

    idiosyncrasies

    locations

    architecture

1 points   

QUESTION 4

  1. Amazon’s serverless technology is called_________ ; Google and Microsoft call theirs Google Functions and Azure Functions, respectively.

    Lambda

    Delta

    Alpha

    Theta

1 points   

QUESTION 5

  1. ________ cloud is a reference to on-premises deployment models.

    public

    private

    local

    hybrid

In: Computer Science

from Big Java Early Objects 7th edition Question Declare an interface Filter as follows: public interface...

from Big Java Early Objects 7th edition

Question
Declare an interface Filter as follows:

public interface Filter { boolean accept(Object x); }

Modify the implementation of the Data class in Section 10.4 to use both a Measurer and a Filter object. Only objects that the filter accepts should be processed. Demonstrate your modification by processing a collection of bank accounts, filtering out all accounts with balances less than $1,000.

Solve Exercise •• P10.6, using a lambda expression for the filter.

How would you use a use a lambda expression for the filter class?????
below is working code for the first part of the question, thanks.

*******************************************************************************

Filter.java <- needs to be lambda expression
public interface Filter
{
// this is what sifts through the -1000 and +1000 accounts
boolean accept(Object anObject);
}

below classes for
*******************************************************************************

BalanceFilter.java
public class BalanceFilter implements Filter
{
@Override
public boolean accept(Object object)
{
return ((BankAccount) object).getBalance() >= 1000;
}
}

*******************************************************************************
Measurer .java
public interface Measurer
{   
double measure(Object anObject);
}

*******************************************************************************

public class BankAccount
{
private double balance;
  
public BankAccount()
{
balance = 0;
}
  
public BankAccount(double initialBalance)
{
balance = initialBalance;
}
  
public void deposit(double amount)
{
balance = balance + amount;
}
  
public void withdraw(double amount)
{
balance = balance - amount;
}
  
public double getBalance()
{
return balance;
}
  
public void addIntrest(double rate)
{
balance = balance + balance * rate/100;
}
  
}

*******************************************************************************

DataSet.java
public class DataSet
{

public static double average(Object[] objects, Measurer meas, Filter filt)
{
double sum = 0;
double avg = 0;
int count = 0;
  
for (Object ob : objects)
{
if (filt.accept(ob))
{
sum += meas.measure(ob);
count++;
}
}
  
if (count > 0)
{
avg = (double)sum/count;
}
  
return avg;
}
  
public static void main (String[] args)
{

BankAccount accounts[] = new BankAccount[]
{
new BankAccount(200),
new BankAccount(1500),
new BankAccount(1000),
new BankAccount(2000),
new BankAccount(3000),
new BankAccount(0),
new BankAccount(50),
};
  
BalanceMeasurer measurer = new BalanceMeasurer();
BalanceFilter filter = new BalanceFilter();
  
double avg = average(accounts, measurer, filter);
System.out.println("Average for bank accounts with 1000.00 in collateral is "+avg);
}   
}

*******************************************************************************

BalanceMeasurer.java
public class BalanceMeasurer implements Measurer
{
public double measure(Object object)
{
return ((BankAccount) object).getBalance();
}
  
}

In: Computer Science

need to write program on python, without using any other libraries like panda, numpy, etc. here...

need to write program on python, without using any other libraries like panda, numpy, etc.

here is google link on csv file https://drive.google.com/file/d/1O3cC9JAPVkXSrddTR6RocpSV8NMHrmRx/view?usp=sharing

There is a csv file, which is exel file, very big and what program should do:

- Read a CSV file 'annual.csv' enterprise into a data structure

- Count the number of rows and columns

- Determine if the data contains empty values (should search in all rows)

- Replace the empty values by 'NA' for strings, '0' for decimals and '0.0' for floats (in all rows)

- Transform all Upper case characters to Lower case characters (in every word)

- Transform all Lower case characters to Upper case characters (in every word in file)

- save back the 'repaired' array as csv and show edited version

- Print out the size of the data (number of rows, number of columns)

the file approzimately looks like this, but it is very huge

In: Computer Science

Using ERP software, one can cut down on data duplication by keeping all your information within...

  1. Using ERP software, one can cut down on data duplication by keeping all your information within _______ cohesive system.

    multiple

    silo

    one

    departmental

1 points   

QUESTION 2

  1. Epicor ERP’s strengths include the amount of data it can store and analyze, as well as the automation it can provide when it comes to __________.

    customers

    vendors

    supply chain management

    production

1 points   

QUESTION 3

  1. Modern ERP practices began in the 1990s due to the rise of computer software being integrated with daily business____________.

    requirements

    costs

    operations

    expenditures

1 points   

QUESTION 4

  1. This is any ERP software which is deployed directly on your in-site devices.

    Open Source ERP

    On-premise ERP

    Cloud-based ERP

    Hybrid ERP

1 points   

QUESTION 5

  1. Odoo is a(n) _________ ERP and CRM used by over 4 million users worldwide.

    simple

    open-source

    limited

    closed

1 points   

QUESTION 6

  1. ERP communication tools organize scanned documents, files, emails, texts, and phone call recordings.

    True

    False

1 points   

QUESTION 7

  1. Microsoft is been a leader in the ERP software market for many years through its ________ product offerings.

    Iron Mountain

    Great Plains

    Solomon

    Dynamics

1 points   

QUESTION 8

  1. With SAP HANA, one doesn’t need to take the time to load data from your transactional database into your reporting database, or even build traditional tuning structures to enable that reporting.

    True

    False

1 points   

QUESTION 9

  1. Benefits of ERP Software include all except:

    Low implementation costs

    Streamlined workflows and processes

    Visibility into workflows

    Better financial planning and decision making

1 points   

QUESTION 10

  1. It is important to use an industry-specific ERP solution because:

    a general ERP system will weigh you down with unnecessary features

    a specialized ERP system will weigh you down with unnecessary features

    an industry-specific ERP system will cost less

    a general ERP system will cost more

1 points   

In: Computer Science

MATLAB Create two surface plots in the same figure window. Be sure to label the X...

MATLAB

  1. Create two surface plots in the same figure window. Be sure to label the X and Y axes and provide a title for each plot. The top 3D surface plot should use one of the equations

Option 1:Z=sinX+sinY

Option 2:Z=sinX+cosY

Option 3:Z=cosX+cosY

and the bottom 3D surface plot should use one of the equations

Option 1:Z=sinX - sinY

Option 2:Z=sinX - cosY

Option 3:Z=cosX - cosY

For both plots, use a mesh grid with the same range for both the x-axis and y-axis. Use a range of -2π to 2π; the step (increment) of both dimensions of the grid should be 0.25.

Use a menu or listdlg command to allow the user to select which functions to use. Be sure to output which option the user selected. And, use an if statement that, based on the option chosen, creates plots with the correct functions.

Run your program twice with different user input and provide the output for each run.

In: Computer Science