Questions
1. Study the Connecting to an XE Oracle Server document available by hyperlink from the course...

1. Study the Connecting to an XE Oracle Server document available by hyperlink from the course web site. Logon to your XE instance server account using windows/Linux/Unix command line. After logging on, answer following questions:

What is your home directory of ORACLE_HOME

What is your ORACLE_SID

What is you ORACLE_BASE directory?

2. Move to the ORACLE_HOME subdirectory. Examine the other subdirectories under ORACLE_HOME. Look in the dbs subdirectory that stores the PFILE for the XE database. The example PFILE is named init.ora. The init.ora file is a template that you can use to create your own PFILE. Locate the init.ora files

What is the database block size specified for the XE database with this init.ora file?

How many control files are defined and what are their names?

What version of Oracle is this database set to support for compatibility of features?

What is the name of the tablespace that supports UNDO management?

3. The XE database consists of multiple datafiles and other files. Explore and find and List the location of the XE database files

In: Computer Science

Deliverable 2 - Implementation of an Enterprise Architecture Outline a plan to create an enterprise architecture...

Deliverable 2 - Implementation of an Enterprise Architecture

Outline a plan to create an enterprise architecture for a cloud-based web application server and SQL Database Sever. Including the necessary development environment, production environment, and implementation schedule including a critical path.

Competency

Summarize the common elements of enterprise architectures.

Scenario

You work as a developer for Solutions Inc. Your client, Universal Widgets, is planning to implement a cloud-based solution for their IoT(Internet of Things) connected devices. These devices are designed to monitor air quality in a home for the homeowner's heating and air system. These devices also are able to detect the carbon dioxide levels, presence of smoke, and notify homeowner's when to change the air filters.

The majority of Universal Widgets' customers will use this new solution. This is predicted to increase their sales and their customer base. However, because of the public safety features that are offered by this application, up-time for customers will need to be no less than 99.999% each month. Therefore, any implementation that occurs to the production environment needs to be properly tested prior to implementation.

Instructions

Develop an implementation plan for this cloud-based solution. This plan must include the following elements:

  • A brief breakdown of the primary tasks needed to create a development environment, and also a full production environment.
  • The critical path for both environments through to completion.
  • Evaluation of the constraints and issues at the enterprise level including scenarios that demonstrate pros and cons of any implementation, software update, or change.

In: Computer Science

Use C++, Java, or Python3 to create your own algorithm to complete a computing task. There...

Use C++, Java, or Python3 to create your own algorithm to complete a computing task.

There are four steps to algorithm methodology. Discuss your algorithm design in relation to these four steps and describe how you went through each step of the methodology to create your algorithm.

In: Computer Science

1. write a class called football player with variables number, weight, height inside. Then make child...

1. write a class called football player with variables number, weight, height inside. Then make child classes for football player, one called defensive player, which will have sacks and interceptions as variables, and offensive player, which will have yards and fumbles as variables

In: Computer Science

1 Consider a program for the determination of Previous date. Its input is a triple of...

1 Consider a program for the determination of Previous date. Its input is a triple of day, month and year with the values in the range

1 ≤ month ≤ 12

1 ≤ day ≤ 31

2000 ≤ year ≤ 2125

The possible outputs are “Previous date” and “Invalid input date”.

Design the test cases using the following:

  1. [50 Marks] Decision table-based testing.
  2. [50 Marks] Design the worst-case testing.

Show the full details to apply the testing part

In: Computer Science

Design a cybersecurity incident response plan for a company, including disaster recovery and business continuity elements...

Design a cybersecurity incident response plan for a company, including disaster recovery and business continuity elements (mitigation strategies and resilience). This should be the detailed plan you wish your organization has in place before a cyber incident or data breach happens in order to effectively respond and limit the cascading effects of the incident and also define the role of a cyber incident report? Who has the responsibility? When the incident has occurred at the bank, what data has been compromised and how the incident occurred? What type of damage it contains and the impacts, any legal implications? Did they restore the business continuity and did they remove the threat? What do you learn from the incident to prevent future attacks? Do you understand what actions worked well and those that did not (Documentation); what to do to improve the organization’s cybersecurity posture; and to keep the management informed and follow proper chain of command procedures?

In: Computer Science

Consider an array of 10 elements sorted in ascending order. Assume that you sort the table...

Consider an array of 10 elements sorted in ascending order. Assume that you sort the table in descending order by running a sorting algorithm.

a) Count the exact number of changes made to the array (i.e. the number of operations of assignment T [...]=) if the bubble sort is applied (Assuming two assignments per swap).

b) Count the exact number of changes made to the array (i.e. the number of operations of assignment T [...]=) if heap-sort is applied (Assuming two assignments per swap).

In: Computer Science

Describe the implementation of the multiply instruction in the hypothetical machine designed by Wilkes. Use a...

Describe the implementation of the multiply instruction in the hypothetical machine designed by Wilkes. Use a narrative and a flowchart.

In: Computer Science

Java Programming Task #1 Extending the BankAccount Class Copy the files AccountDriver.java (Code Listing 10.1) and...

Java Programming

Task #1 Extending the BankAccount Class

  1. Copy the files AccountDriver.java (Code Listing 10.1) and BankAccount.java(Code Listing 10.2) from the Student CD or as directed by your instructor.BankAccount.java is complete and will not need to be modified.

  2. Create a new class called CheckingAccount that extends BankAccount.

  3. It should contain a static constant FEE that represents the cost of clearing one

    check. Set it equal to 15 cents.

  4. Write a constructor that takes a name and an initial amount as parameters. It

    should call the constructor for the superclass. It should initializeaccountNumber to be the current value in accountNumber concatenated with –10 (All checking accounts at this bank are identified by the extension –10). There can be only one checking account for each account number. Remember since accountNumber is a private member in BankAccount, it must be changed through a mutator method.

  5. Write a new instance method, withdraw, that overrides the withdraw method in the superclass. This method should take the amount to withdraw, add to it the fee for check clearing, and call the withdraw method from the superclass. Remember that to override the method, it must have the same method heading. Notice that the withdraw method from the superclass returns true or falsedepending if it was able to complete the withdrawal or not. The method that overrides it must also return the same true or false that was returned from the call to the withdraw method from the superclass.

  6. Compile and debug this class.

Task #2 Creating a Second Subclass

  1. Create a new class called SavingsAccount that extends BankAccount.

  2. It should contain an instance variable called rate that represents the annual

    interest rate. Set it equal to 2.5%.

  3. It should also have an instance variable called savingsNumber, initialized to 0.

    In this bank, you have one account number, but can have several savings accounts with that same number. Each individual savings account is identified by the number following a dash. For example, 100001-0 is the first savings account you open, 100001-1 would be another savings account that is still part of your same account. This is so that you can keep some funds separate from the others, like a Christmas club account.

  4. An instance variable called accountNumber, that will hide theaccountNumber from the superclass, should also be in this class.

  5. Write a constructor that takes a name and an initial balance as parameters and calls the constructor for the superclass. It should initialize accountNumber to be the current value in the superclass accountNumber (the hidden instance variable) concatenated with a hyphen and then the savingsNumber.

Write a method called postInterest that has no parameters and returns no value. This method will calculate one month's worth of interest on the balance and deposit it into the account.

  1. Write a method that overrides the getAccountNumber method in the superclass.

  2. Write a copy constructor that creates another savings account for the same person. It should take the original savings account and an initial balance as parameters. It should call the copy constructor of the superclass, and assign thesavingsNumber to be one more than the savingsNumber of the original savings account. It should assign the accountNumber to be theaccountNumber of the superclass concatenated with the hyphen and thesavingsNumber of the new account.

  3. Compile and debug this class.

  4. Use the AccountDriver class to test out your classes. If you named and

    created your classes and methods correctly, it should not have any difficulties. If you have errors, do not edit the AccountDriver class. You must make your classes work with this program.

  5. Running the program should give the following output:

Account Number 100001-10 belonging to Benjamin Franklin
Initial balance = $1000.00
After deposit of $500.00, balance = $1500.00
After withdrawal of $1000.00, balance = $499.85
Account Number 100002-0 belonging to William Shakespeare
Initial balance = $400.00
After deposit of $500.00, balance = $900.00
Insufficient funds to withdraw $1000.00, balance = $900.00
After monthly interest has been posted, balance = $901.88
Account Number 100002-1 belonging to William Shakespeare
Initial balance = $5.00
After deposit of $500.00, balance = $505.00
Insufficient funds to withdraw $1000.00, balance = $505.00
Account Number 100003-10 belonging to Isaac Newton

Code Listing 10.1 (AccountDriver.java)

/**
   This program demonstrates the BankAccount and
   derived classes.

*/

public class AccountDriver
{
   public static void main(String[] args)
   {
      double put_in = 500;
      double take_out = 1000;
      String money;
      String money_in;
      String money_out;
      boolean completed;
      // Test the CheckingAccount class.
      CheckingAccount myCheckingAccount =
         new CheckingAccount("Benjamin Franklin", 1000);
      System.out.println("Account Number " +
                         myCheckingAccount.
                         getAccountNumber() +
                         " belonging to " +
                         myCheckingAccount.getOwner());
      money = String.format("%.2f",
                            myCheckingAccount.
                            getBalance());
      System.out.println("Initial balance = $" + money);
      myCheckingAccount.deposit(put_in);
      money_in = String.format("%.2f", put_in);
      money = String.format("%.2f",
                            myCheckingAccount.
                            getBalance());
      System.out.println("After deposit of $" +
                         money_in + ", balance = $" +
                         money);
      completed = myCheckingAccount.withdraw(take_out);
      money_out = String.format("%.2f", take_out);

Copyright © 2016 Pearson Education, Inc., Hoboken NJ

money = String.format("%.2f",
                      myCheckingAccount.
                      getBalance());
if (completed)
{
   System.out.println("After withdrawal of $" +
                      money_out + ", balance = $" +

money);

} else {

   System.out.println("Insuffient funds to " +
                      "withdraw $" + money_out +
                      ", balance = $" + money);
}
System.out.println();
// Test the SavingsAccount class.
SavingsAccount yourAccount =
   new SavingsAccount("William Shakespeare", 400);
System.out.println("Account Number " +
                   yourAccount.getAccountNumber() +
                   " belonging to " +
                   yourAccount.getOwner());
money = String.format("%.2f",
                      yourAccount.getBalance());
System.out.println("Initial balance = $" + money);
yourAccount.deposit(put_in);
money_in = String.format("%.2f", put_in);
money = String.format("%.2f",
                      yourAccount.getBalance());
System.out.println("After deposit of $" +
                   money_in + ", balance = $" +
                   money);
completed = yourAccount.withdraw(take_out);

Copyright © 2016 Pearson Education, Inc., Hoboken NJ

money_out = String.format("%.2f", take_out);
money = String.format("%.2f",
                      yourAccount.getBalance());
if (completed)
{
   System.out.println("After withdrawal of $" +
                      money_out + ", balance = $" +

money);

} else {

   System.out.println("Insuffient funds " +
                      "to withdraw $" + money_out +
                      ", balance = $" + money);
}
yourAccount.postInterest();
money = String.format("%.2f",
                      yourAccount.getBalance());
System.out.println("After monthly interest " +
                   "has been posted, " +
                   "balance = $" + money);
System.out.println();
// Test the copy constructor of the
// SavingsAccount class.
SavingsAccount secondAccount =
   new SavingsAccount(yourAccount, 5);
System.out.println("Account Number " +
                   secondAccount.
                   getAccountNumber() +
                   " belonging to " +
                   secondAccount.getOwner());
money = String.format("%.2f",
                      secondAccount.getBalance());
System.out.println("Initial balance = $" + money);
secondAccount.deposit(put_in);

} }

money_in = String.format("%.2f", put_in);
money = String.format("%.2f",
                      secondAccount.getBalance());
System.out.println("After deposit of $" + money_in +
                   ", balance = $" + money);
secondAccount.withdraw(take_out);
money_out = String.format("%.2f", take_out);
money  = String.format("%.2f",
                       secondAccount.getBalance());
if (completed)
{
   System.out.println("After withdrawal of $" +
                      money_out + ", balance = $" +

money);

} else {

   System.out.println("Insuffient funds " +
                      "to withdraw $" + money_out +
                      ", balance = $" + money);
}
System.out.println();
// Test to make sure new accounts are
// numbered correctly.
CheckingAccount yourCheckingAccount =
   new CheckingAccount("Issac Newton", 5000);
System.out.println("Account Number " +
                   yourCheckingAccount.
                   getAccountNumber() +
" belonging to " +
yourCheckingAccount.getOwner());

Code Listing 10.2 (BankAccount.java)

/**
   The BankAccount class is an abstract class that holds
   general data about a bank account. Classes representing
   specific types of bank accounts should inherit from
   this class.

*/

public abstract class BankAccount
{
   // Class variable so that each account
   // has a unique number
   protected static int numberOfAccounts = 100001;
   // Current balance in the account
   private double balance;
   // Name on the account
   private String owner;
   // Number bank uses to identify account
   private String accountNumber;
   /**
      Default constructor

*/

   public BankAccount()
   {
      balance = 0;
      accountNumber = numberOfAccounts + "";
      numberOfAccounts++;

}

/**
   Standard constructor
   @param name The owner of the account.
   @param amount The beginning balance.

*/

public BankAccount(String name, double amount)
{
   owner = name;
   balance = amount;
   accountNumber = numberOfAccounts + "";
   numberOfAccounts++;

}

/**
   Copy constructor creates another account
   for the same owner.
   @param oldAccount The account with information
          to copy.
   @param amount The beginning balance of the

new account.

*/

public BankAccount(BankAccount oldAccount,
                   double amount)
{
   owner = oldAccount.owner;
   balance = amount;
   accountNumber = oldAccount.accountNumber;

}

/**
   Allows you to add money to the account.
   @param amount The amount to deposit in the account.

*/

public void deposit(double amount)
{
   balance = balance + amount;
}

Copyright © 2016 Pearson Education, Inc., Hoboken NJ

/**
   Allows you to remove money from the account if
   enough money is available, returns true if the
   transaction was completed, returns false if
   there was not enough money.
   @param amount The amount to withdraw from
          the account.
   @return True if there was sufficient funds to
           complete the transaction, false otherwise.

*/

public boolean withdraw(double amount)
{
   boolean completed = true;
   if (amount <= balance)
   {
      balance = balance - amount;
   }

else {

      completed = false;
   }
   return completed;
}
/**
   Accessor method to balance
   @return The balance of the account.

*/

public double getBalance()
{
   return balance;
}
/**
   accessor method to owner
   @return The owner of the account.

*/

public String getOwner()
{
   return owner;
}

/** Accessor method to account number @return The account number.

*/

   public String getAccountNumber()
   {
      return accountNumber;
   }
   /**
      Mutator method to change the balance
      @param newBalance The new balance for the account.

*/

   public void setBalance(double newBalance)
   {
      balance = newBalance;
   }
   /**
      Mutator method to change the account number
      @param newAccountNumber The new account number.

*/

   public void setAccountNumber(String newAccountNumber)
   {
      accountNumber = newAccountNumber;
   }

}

In: Computer Science

Write about Oracle product of Database product. your findings should include Usage, new server versions, Advantages,...

Write about Oracle product of Database product. your findings should include

Usage, new server versions, Advantages, Disadvantage ,components Server and workstations, Physical structure Logical structure, Portability, Backup Recovery Performance and References

In: Computer Science

Do research to assess potential career opportunities in the telecommunications or networking industry. Consider resources such...

Do research to assess potential career opportunities in the telecommunications or networking industry. Consider resources such as the Bureau of Labor Statistics list of fastest growing positions, Network World, and Computerworld. Are there particular positions within these industries that offer good opportunities? What sort of background and education is required for candidates for these positions?

In: Computer Science

Hello so I have written this Quicksort code, but it only seems to work when the...

Hello so I have written this Quicksort code, but it only seems to work when the array size is 100 or less. If it goes over than it takes forever to run and never completes. Please help debug and fix.

public class Test {

public static void main(String[] args) {
int[] myArray = new int[]{5, 10, 12, 55, 24, 90, 52, 900};
System.out.println("Before Sort");
printArray(myArray);
System.out.println("Quicksorted");
quickSort(myArray, 0, myArray.length - 1);
printArray(myArray);

}

public static void quickSort(int array[], int low, int high) {

if (low < high) {
int partitionPoint = partition(array, low, high);
quickSort(array, low, partitionPoint - 1);
quickSort(array, partitionPoint + 1, high);
}
}

public static int partition(int array[], int low, int high) {

int pivot = array[low];
int i = low;
int j = high;

while (i < j) {
while (array[i] < pivot) {
i++;
}

while (array[j] > pivot) {
j--;
}

if (i < j) {
int temp = array[j];
array[j] = array[i];
array[i] = temp;
}
}

int temp = array[j];
array[j] = pivot;
pivot = temp;

return j;

}

public static void printArray(int[] array) {
for (int i = 0; i < array.length; i++) {
System.out.println(array[i] + " ");
}
}
}

Thank you!

In: Computer Science

Using the USPRES.TXT file complete the following: Create a dialog where a user would select 'search...

Using the USPRES.TXT file complete the following:

Create a dialog where a user would select 'search by last name' and 'search by first name'.

use a select statement to determine which routine your will run. You can use procedures and functions if you want.Ensure your code is well documented.

Turn in all work.

Using the USPRES.TXT file complete the following:

Create a dialog where a user would select 'search by last name' and 'search by first name'.

use a select statement to determine which routine your will run. You can use procedures and functions if you want.Ensure your code is well documented.

Turn in all work.

[George Washington

John Adams

Thomas Jefferson

James Madison

James Monroe

John Q. Adams

Andrew Jackson

Martin Van Buren

William Harrison

John Tyler

James Polk

Zachary Taylor

Millard Fillmore

Franklin Pierce

James Buchanan

Abraham Lincoln

Andrew Johnson

Ulysses Grant

Rutherford Hayes

James Garfield

Chester Arthur

Grover Cleveland

Benjamin Harrison

Grover Cleveland

William McKinley

Theodore Roosevelt

William Taft

Woodrow Wilson

Warren Harding

Calvin Coolidge

Herbert Hoover

Franklin Roosevelt

Harry Truman

Dwight Eisenhower

John Kennedy

Lyndon Johnson

Richard Nixon

Gerald Ford

James Carter

Ronald Reagan

George H. W. Bush

Bill Clinton

George W. Bush

Barack Obama]

Update

Case statement for each of the options.

Search for President by first name or last name.

** open file, read in each row, parse out the name part, perform a match on names, if match return full name, else move to next row. Have message if you each the end without a match.

USE METHODS!

Update

Case statement for each of the options.

Search for President by first name or last name.

** open file, read in each row, parse out the name part, perform a match on names, if match return full name, else move to next row. Have message if you each the end without a match.

USE METHODS!

I NEED TO WRITE JAVA PROJECT IN THIS QUESTION

In: Computer Science

Can someone explain why this is the case? It would be much appreciated. Consider the following...

Can someone explain why this is the case? It would be much appreciated.

Consider the following class definitions:

public class Foo

{

public Foo() { }  

public void method1()

{

System.out.println(’’Foo 1’’);

}

public void method2()

{

System.out.println(’’Foo 2’’);

}

}

public class Goo extends Foo

{

public Goo() { }

public void method1()

{

System.out.println(’’Goo 1’’);

}

}

public class Hoo extends Goo

{

public Hoo() { }

public void method2()

{

System.out.println(’’Hoo 2’’);

}

}

Given these class definitions, what will be the output of this code fragment?

Foo[] elements = new Foo[3];

elements[0] = new Hoo();

elements[1] = new Foo();

elements[2] = new Goo();

for (int i = 0; i < elements.length; i++) {

elements[i].method1();

elements[i].method2();

}

           Answer:

                             Goo1

                             Hoo2

                        Foo1

                             Foo2

                        Goo1

                             Foo2

In: Computer Science

This is C Project 1: Due: February 10th at midnight Design and implement an application that...

This is C

Project 1:

Due: February 10th at midnight

Design and implement an application that simulates a simple slot machine in which three numbers between 0 and 9 are randomly selected and printed side by side. Print an appropriate statement if all three of the numbers are the same, or if any two of the numbers are the same. Continue playing until the user chooses to stop.

15 points – source code formatted nicely

15 points – comments

15 points – output formatted nicely

10 points – generates different random numbers each loop

15 points – statement if all three numbers are the same

15 points – statement if any two numbers are the same

15 points - play until user wants to stop

In: Computer Science