a. Mention any four sources of business startup ideas.
(1 Mark)
b. State and briefly explain any four habits you would cultivate in
developing entrepreneurial mindset.
c. State and briefly explain the four types of innovation.
d. State and briefly explain any two benefits and three drawbacks
of owning your own business.
e. State and briefly explain any two criteria you would consider in
establishing your own business.
f. Differentiate between a business opportunity and a business
environment. (1 Mark)
In: Finance
Discuss the relationship between 5 methyl-cytosine and 5 hydroxymethyl-cytosine, mention enzymes responsible for their placement and how each modification affects gene expression.Define, compare and contrast heterochromatin and euchromatin and how they relate to gene expression
1. What does the field of epigenetics aim to study?
2. What would happen to a developing cell if its nucleus were switched for a nucleus of a differentiated cell?
3. Histone deacetylation enhances chromosome ______, thus the chromosomal segment cannot be ______. (options are Condensation; decondensation for the first part and translated or transcribed for the second part).
4. Explain the mechanism of DNA methylation, including what DNA residue is modified, by what enzymes, and the impact on gene expression and chromatin state. Draw it!
In: Biology
Please use your own Wire-Shark tool and answer the following questions. If possible please mention the steps or pictures on how the questions were answered.
1. What is the MAC address of the server?
2. What is the MAC address of the client?
3. What version of the web server is the server running?
4. Which web browser and what version is the client running?
5. Which cipher suites are supported by the client?
6. Which cipher suite does the server agree upon?
7. How many bytes were able to be decrypted? (Use Follow SSL stream to find out)
8. What is in the "<head>" tag of the client GET request of the client?
9. What port is used by the client to communicate with HTTPS on the server?
10. What is the version of OpenSSL running on the server?
In: Computer Science
Chapter 7 hand-in Homework
1) Mention three thing about the standard error of the mean
2) Why is the Central Limit Theorem important in statistics?
3) The diameter of a brand of tennis balls is
approximately normally distributed, with a mean of 2.63 inches and
a standard deviation of 0.03 inch. If you select a random sample of
nine tennis balls,
a) What is the sampling distribution of the
mean?
b) Assume the diameter of a brand of tennis balls was
known to have a right skewed distribution with a mean of 2.63
inches and a standard deviation of 0.03 inch. Suppose we collect a
random sample of 100 tennis balls. Describe the sampling
distribution of the mean diameter for these 100 tennis
balls.
c) How will the mean of the sampling distribution compare to the population mean in this problem?
d) How will the standard deviation of the sampling distribution (standard error of the mean) compare to the population standard deviation?
e) Find the approximate probability that the mean diameter of nine tennis balls exceeded 2.61.
f) Find the approximate probability that the mean diameter of the nine tennis balls exceeded 2.68.
g) Find the approximate probability that the mean
diameter of the nine tennis balls was no more than 2.60
inches.
4) n a random sample of 64 people, 48 are classified
as “successful”.
a) Determine the sample proportion, p, of “successful” people.
b) Determine the standard error of the proportion.
c) What proportion of the samples will have between 20% and 30% of people who will considered “successful”?
d) What proportion of the samples will have less than 75% of people who will be considered “successful”?
e) 90% of the samples will have less than what percentage of people who will be considered “successful”?
f) 90% of the samples will have more than what percentage of people who will be considered “successful”?
In: Math
problem 3-1
You are going to build a C++ program which runs a single game of Rock, Paper, Scissors. Two players (a human player and a computer player) will compete and individually choose Rock, Paper, or Scissors. They will then simultaneously declare their choices and the winner is determined by comparing the players’ choices. Rock beats Scissors. Scissors beats Paper. Paper beats Rock.
The learning objectives of this task is to help develop your understanding of abstract classes, inheritance, and polymorphism.
Your task is to produce a set of classes that will allow a human player to type instructions from the keyboard and interact with a computer player.
Your submission needs to contain the following files, along with their header files:
Part 1: Abstract
Classes
Define and implement an abstract class named
Player that has the following behaviours:
void move();
string getMoves();
char getMove(); //returns the most recent move made
bool win(Player * opponent); //compares players’ moves to see who
wins
Declare the move() and getMoves() functions as pure virtual and set proper access modifiers for the attributes and methods.
If no one wins, the game should output “draw! go again”, and the game continues until a winner is determined.
Part 2: Polymorphism
Computer Class:
Define and implement a class named Computer that inherits from Player. By default, Computer will use Rock for every turn. If it is constructed with another value (Paper or Scissors), it will instead make that move every turn.
The Computer class has the following constructor and behaviours:
Computer(string letter); //set what move the computer will
//make (rock, paper, or scissors)
//if the input is not r, R, p, P, s, S or
//a string starting with one of these letters,
//set the move to the default ‘r’
string getMoves(); //returns all moves stored in a string
void move(); //increments number of moves made
To explain, if the computer was constructed with Computer(‘s’), and it made 3 moves, getMoves() should return:
sss
For advice about testing, please use the debugging manual (Links to
an external site.).
Person Class:
Define and implement a class named Person that inherits from Player. The Person can choose Rock, Paper, or Scissors based on the user’s input.
The Player class has the following behaviours:
void move(); //allow user to type in a single character to
//represent their move. If a move is impossible,
//“Move unavailable” is outputted and the user is
//asked to input a character again.
//Otherwise, their input is stored
string getMoves(); //returns all moves stored in a string
Write a main function that uses Computer and Person to play Rock, Paper, Scissors. The Computer can be made with either constructors, but should set the default move to ‘r’. The player should be asked to input a move which is then compared against the computer’s move to determine who wins.
All the Player’s previous moves should be outputted, followed by all the Computer’s moves outputted on a new line.
Example Test Cases
In: Computer Science
I need to make changes to code following the steps below. The code that needs to be modified is below the steps. Thank you.
1. Refactor Base Weapon class:
a. Remove the Weapon abstract class and create a new Interface class named WeaponInterface.
b. Add a public method fireWeapon() that returns void and takes no arguments.
c. Add a public method fireWeapon() that returns void and takes a power argument as an integer type.
d. Add a public method activate() that returns void and takes an argument as an boolean type.
2. Refactor the specialization Weapon Classes:
a. Refactor the Bomb class so that it implements the WeaponInterface class.
b. Refactor the Gun class so that that it implements the WeaponInterface class.
3. Refactor the Game Class:
a. Remove all existing game logic in main().
b. Create a private helper method fireWeapon() that takes a WeaponInterface as an argument as a weapon. For the passed in weapon activate the weapon then fire the weapon.
c. Create an array of type WeaponInterface that can hold 2 weapons.
d. Initialize the first array element with a Bomb.
e. Initialize the second array element with a Gun.
f. Loop over the weapons array and call displayArea() for each weapon.
------
// Weapon.java
public abstract class Weapon {
public void fireWeapon(int power)
{
System.out.println("Class Name
:"+this.getClass().getSimpleName());
System.out.println("Mathod Name
:"+new Throwable().getStackTrace()[0].getMethodName());
System.out.println("Power
:"+power);
}
public abstract void activate(boolean enable);
}
______________________
// Bomb.java
public class Bomb extends Weapon {
@Override
public void fireWeapon(int power)
{
System.out.println("Class Name
:"+this.getClass().getSimpleName());
System.out.println("Mathod Name
:"+new Throwable().getStackTrace()[0].getMethodName());
System.out.println("Power
:"+power);
}
public void fireWeapon()
{
System.out.println("Class Name
:"+this.getClass().getSimpleName());
System.out.println("Mathod Name
:"+new Throwable().getStackTrace()[0].getMethodName());
super.fireWeapon(67);
}
@Override
public void activate(boolean enable) {
System.out.println("Class Name
:"+this.getClass().getSimpleName());
System.out.println("Mathod Name
:"+new Throwable().getStackTrace()[0].getMethodName());
System.out.println("Enable
:"+enable);
}
}
_____________________________
// Gun.java
public class Gun extends Weapon {
@Override
public void fireWeapon(int power)
{
System.out.println("Class Name
:"+this.getClass().getSimpleName());
System.out.println("Mathod Name
:"+new Throwable().getStackTrace()[0].getMethodName());
System.out.println("Power
:"+power);
}
public void fireWeapon()
{
System.out.println("Class Name
:"+this.getClass().getSimpleName());
System.out.println("Mathod Name
:"+new Throwable().getStackTrace()[0].getMethodName());
super.fireWeapon(98);
}
@Override
public void activate(boolean enable) {
System.out.println("Class Name
:"+this.getClass().getSimpleName());
System.out.println("Mathod Name
:"+new Throwable().getStackTrace()[0].getMethodName());
System.out.println("Enable
:"+enable);
}
}
_____________________________
// Game.java
public class Game {
public static void main(String args[]) {
Bomb b = new Bomb();
Gun g = new Gun();
b.fireWeapon(45);
g.fireWeapon(60);
}
}
In: Computer Science
Chapters:
36) Asking people to choose reasons themselves might backfire. Two groups were given an ad by BMW. Group A saw an ad saying “So many reasons to buy a BMW. Can you name 10?” Group B saw an ad saying “So many reasons to buy a BMW. Can you name 1?” After the ad both groups were asked to evaluate their likelihood of buying a BMW. Similar to what’s described in Chapter 5, people who had to name 10 reasons actually named Mercedes-Benz, a competitive brand, as their probable choice, while Group B named BMW as their likely next vehicle, compared to Mercedes-Benz.
37) People like stocks with more pronounceable names. Research of stock tickers between 1999 and 2004 looked at the relationship between the phonetic fluency of the stock and its rise through IPO, then 12 months later, then throughout its lifetime. The result? Stocks with more pronounceable names produced higher returns, even though nobody yells out the tickers on the exchange floor anymore.
38) Rhyming makes the phrases more convincing. People were asked to evaluate the practical value of parables “Caution and measure will win you treasure” and “Caution and measure will win you riches”. In general proverb A was considered to be more practical and insightful than proverb B.
39) Amount of information is context-dependent. A group of people was given an ad for department store A, extolling in great detail the 6 departments that A had. Another group was given a short blurb on store A, presenting mainly abstract information. After that store B was presented to both groups with information on 3 departments given to both groups. The first group thought they preferred A, since A volunteered more information and B seemed shadier in comparison. The second group did exactly the opposite and preferred store B, which volunteered detailed info on 3 departments, while A’s message was an abstract blurb.
These four chapters are about "Fluency" -- How easy a message can be understood affects its effectiveness.
After reading all the chapters, write an email message that satisfies the requirements below:
(1) Audience: All first-year students at Salem State
(2) Objectives: To persuade students to exercise regularly in their freshman year.
(3) Format:
(a) Headline is required.
(b) IN the body of the email message, use the FIVE-STEP motivation sequence. To show that you use the sequence correctly, separate your message's content by using the list format as below:
[Attention]
[Show a Need]
[Provide Solution]
[Proof] (Hint: This is where you can, if you choose, use your
"FLUENCY" idea. Of course, you can also use other social Proof
methods you learned from the Yes! book. But, see the next
requirement. )
[Action]
In: Operations Management
Submit your complete implementation of our abstract list type using an array, ArrayList.java.
public class ArrayList {
public static void main(String[] args) {
ArrayList list = new ArrayList();
}
private String[]a = new String[1000];
private int end = -1;
// Throw an IndexOutOfBoundsException if the index is invalid public String get(int index); // Return the first index in the list with the given value, or -1 if it's not found public int find(String val); // Return true if the element is successfully added, false if the list is full public boolean add(String val); // Throw an IndexOutOfBoundsException if the index is invalid public void add(int index, String val); // This method should return true only if the value is in the list and removed, // false if the value isn't found in the list public boolean remove(String val); // return the value that's removed; throw an IndexOutOfBoundsException if the index is invalid public String remove(int index); // LENGTH() → int public int size(); // Return true if the list is empty, false if it's not public boolean isEmpty(); // Return true if the value is in the list, false if it's not public boolean contains(String value); // DELETE_ALL() public void clear(); // Convert the contents into a single string with values separated by commas. // It's OK to have a comma at the end of the String. public String toString();
In: Computer Science
Java
Create an abstract Product Class
Add the following private attributes:
name
sku (int)
price (double)
Create getter/setter methods for all attributes
Create a constructor that takes in all attributes and sets them
Remove the default constructor
Override the toString() method and return a String that represents
the building object that is formatted
nicely and contains all information (attributes)
Create a FoodProduct Class that extends Product
Add the following private attributes:
expDate (java.util.Date) for expiration date
refrigerationTemp (int) if 70 or above, none necessary, otherwise it will be a lower number
servingSize (int) in grams
caloriesPerServing (int)
allergens (ArrayList<String>)
Create getter/setter methods for all attributes
Create a constructor that takes in all attributes for product and food product. Call the super constructor and then set the expDate, refrigerationTemp, servingSize, caloriesPerServing and allergens.
Remove the default constructor
Override the toString() method and return a String that represents the food product object that is formatted nicely and contains all information (super toString and the private attributes)
Create a CleaningProduct Class that extends Product
Add the following private attributes:
String chemicalName
String hazards
String precautions
String firstAid
ArrayList<String> uses (e.g. kitchen, bath, laundry, etc)
Create getter/setter methods for all attributes
Create a constructor that takes in all attributes for product and food product. Call the super constructor and then set the chemical name, hazard, precautions, firstAid and uses. TIP: try generating the constructor, it will add the super stuff for you. (Also, see Lynda inheritance videos.)
Remove the default constructor
Override the toString() method and return a String that represents the cleaning product object that is formatted nicely and contains all information (super toString() and the private attributes)
Create the interface Edible which contains the following method signatures:
public Date getExpDate();
public void setRefrigerationTemp(Int refrigerationTemp)
public int getRefrigerationTemp();
public void setExpDate(Date expDate) ;
public int getServingSize() ;
public void setServingSize(int servingSize) ;
public int getCaloriesPerServing() ;
public void setCaloriesPerServing(int caloriesPerServing);
public String getAllergens() ;
public void setAllergens(ArrayList<String> allergens) ;
Create the interface Chemical which contains the following method signatures
public String getChemicalName();
public void setChemicalName(String chemicalName) ;
public String getHazards() ;
public void setHazards(String hazards);
public String getPrecautions() ;
public void setPrecautions(String precautions) ;
public ArrayList<String> getUses() ;
public void setUses(ArrayList<String> uses) ;
public String getFirstAid() ;
public void setFirstAid(String firstAid) ;
Modify the FoodProduct Class to implement Edible, be sure to add the @Override before any methods that were there (get/set methods) that are also in the Edible interface.
Modify the CleaningProduct Class to implement Chemical, be sure to add the @Override before any methods that were there (get/set methods) that are also in the Chemical interface.
Create your main/test class to read products from a file, instantiate them, load them into an ArrayList and then print them nicely to the console at the end of your program. See instructor note about reading the file as the lengths of the lines may be different depending on the list of allergens. It is also comma delimited rather than by spaces. You will have to read an entire line, split its contents and then store the information into variables. The last element(s) are the allergens that you will have to store to an ArrayList.
2 note files:
Frosted Mini Wheats,233345667,4.99,10/2020,70,54,190,Wheat Ingredients Activa YoCrunch Yogurt,33445654,2.50,10/2018,35,113,90,Dairy,Peanuts
Lysol,2344454,4.99,Alkyl (50%C14 40%C12 10%C16) dimethyl benzyl
ammonium saccharinate,Hazard to humans and domestic animals.
Contents under pressure,Causes eye irritation,In case of eye
contact immediately flush eyes thoroughly with water, kitchen,
bath
Windex,4456765,3.99,Sodium citrate (Trisodium citrate),To avoid
electrical shock do not spray at or near electric lines,Undiluted
product is an eye irritant, if contact with eye occurs flush
immediately with plenty of water for at least 15 to 20 minutes,
glass, upholstery, clothing
In: Computer Science
Length of Stay ~ Health insurers and federal government are both putting pressure on hospitals to shorten the average length of stay (LOS) of their patients. The average LOS for women is 4.5774 days according to Statistical Abstract of the United States: 2005.
A first study conducted on a random sample of 18 hospitals in Michigan had a mean LOS for women of 3.8911 days and a standard deviation of 1.2279 days.
A medical researcher wants to determine if the mean LOS for women in Michigan is less than 4.5774 days. The null and alternative hypothesis are given by
H0: μ = 4.5774 u< 2.5774
Note: Numbers are randomized for each instance of this question. Use the numbers given above.
What is the estimated effect size dˆ? Give your answer to 4 decimal places.
In: Statistics and Probability