Questions
1. Depend on the energy charge of the cell, the glycerol compound could follow two different...

1. Depend on the energy charge of the cell, the glycerol compound could follow two different metabolic pathway. Mention and briefly describe both pathways

2. Mention the form of the compounds as final product of purine metabolism. Which one of the compound cause Goat diseases

In: Biology

1.-¿which is why the control of electronic devices is based on a computer? 2.- Describes the...

1.-¿which is why the control of electronic devices is based on a computer?

2.- Describes the operations that occur in the “op code fetch”:

3.- Draw the diagram to blocks of a generic CPU. Mention the function of each block. Mention the name of the records typically found in each block.

In: Computer Science

To give your friend a sense of time, you decide to describe the age of the...

To give your friend a sense of time, you decide to describe the age of the universe in terms of one year, from January 1 to December 31. List the important dates that you would mention and why you consider them to be noteworthy. What would you say to your friend to convey the idea of the Big Picture?

In: Physics

-Explain how the kidney and small intestine assists in the regulation of cardiovascular functions such as...

-Explain how the kidney and small intestine assists in the regulation of cardiovascular functions such as blood pressure, blood volume, or blood solute concentration. Describe how these organs use specific hormones to control blood concentrations and what effects it has on other systems. As you mention the specific hormones make sure to mention where they are released from (specific region within the organ), what triggers their release and the direct effects they have on the blood and body functions. Lastly mention what would happen if the small intestine were removed or if the kidneys were impaired (disease or donation).

In: Anatomy and Physiology

Write in C++ Abstract/Virtual Rock Paper Scissors Create an abstract Player class that consists of private...

Write in C++

Abstract/Virtual Rock Paper Scissors

Create an abstract Player class that consists of private data for name, selection, wins, and losses. It must have a non-default constructor that requires name. It may not contain a default constructor. Create overloaded functions for the ++ and - - operator. The overloaded ++operator will add to the number of wins, while the - - operator will add to the losses.

You will create two different child classes of player, Human and Computer. Neither of which will have any private data, as they will use the parent’s data. Both will contain a virtual function called makeSelection() that will determine and set the selection for the particular player.

Your main() program will contain a NON-member function called playGame() that will take in your two players. You should ask the user if they would like to pay against another human, or a computer, or if they would like to see two computers play.

You will then need to create the appropriate objects and start the game play. After each round, you must display the number of wins and losses for each player and continue playing the game until the user decides to quit.

In: Computer Science

Java instructions: 1. Modify abstract superclass (Employee10A) so it comment out the abstract payPrint method and...

Java instructions:

1. Modify abstract superclass (Employee10A) so it comment out the abstract payPrint method and uses a toString method to print out it’s instance variables. Make sure toString method cannot be overridden.​​​​​​ Source code below:

public abstract class Employee10A {
  
private String firstName, lastName;
static int counter = 0;
  
public Employee10A(String firstName, String lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
  
@Override
public String toString() {
return ("The employee's full name is " + firstName + " " + lastName + ".");
}

abstract void payPrint();
}

2. Create an interface named PartTimeEmployee10A that contains the weekly pay for the Hourly, Salaried, and Commission part time employees as constants: hourly earns $300, salary earns $200, and commission earns $175. Meaning there's no need to calculate weekly pay for hourly, salaried, and commission part time employees, instead use these flat amounts as weekly pay.​

3. Modify all three subclasses (HourlyEmployee10A, SalariedEmployee10A, CommissionEmployee10A) so they implement the interface created. Add code that correctly calculates and sets the weekly pay according to whether the employee is part time or full time. Change the payPrint method in each subclass so that it uses the toString method when printing out the objects. Source code below:

HourlyEmployee10A source code:

public class HourlyEmployee10A extends Employee10A {
  
Scanner sc = new Scanner(System.in);
  
private int hrsWorked, otHrs;
private double hrlyRate, regularPay, otPay, wklyPaycheck;
  
public HourlyEmployee10A(String firstName, String lastName, int hrsWorked,
int otHrs, double hrlyRate, double regularPay, double otPay) {
  
super (firstName, lastName);
this.hrsWorked = hrsWorked;
this.otHrs = otHrs;
  
if (hrsWorked > 40) {
System.out.println("Enter the number of overtime hours worked "
+ "by the employee:");
otHrs = sc.nextInt();

otPay = ((hrlyRate * 1.5) * otHrs);
regularPay = hrlyRate * 40;
}
else {
otPay = 0;
regularPay = hrlyRate * hrsWorked;
}
  
this.hrlyRate = hrlyRate;
this.regularPay = regularPay;
this.otPay = otPay;
counter++;
}
  
//method that calculates the weekly paycheck
public void WklyPaycheck() {
wklyPaycheck = regularPay + otPay;
}
  
//getter(method) that retrieves the "wklyPaycheck"
public double getWklyPaycheck() {
return wklyPaycheck;
}
  
@Override
public String toString() {
return String.format("%s The employee is an Hourly Employee and its "
+ "weekly paycheck amount is $%.2f.", super.toString(), wklyPaycheck);
}


@Override
public void payPrint() {
WklyPaycheck();
}
}

SalariedEmployee10A source code:

public class SalariedEmployee10A extends Employee10A {
  
private double yrlySalary, bonusPercent, wklyPaycheck;
private static final double weeks = 52;
private static final double toDecimal = 100;
  
public SalariedEmployee10A(String firstName, String lastName, double yrlySalary,
double bonusPercent) {
  
super(firstName, lastName);
this.yrlySalary = yrlySalary;
this.bonusPercent = bonusPercent;
counter++;
}
  
public void WklyPaycheck() {
wklyPaycheck = (yrlySalary * (1.0 + bonusPercent/toDecimal)) / weeks;
}
  
@Override
public String toString() {
return String.format("%s The employee is a Salaried Employee and its "
+ "weekly paycheck amount is $%.2f.", super.toString(), wklyPaycheck);
}


@Override
public void payPrint() {
WklyPaycheck();
}
}

CommissionEmployee10A source code:

public class CommissionEmployee10A extends Employee10A {

private int soldItems;
private double itemCost, wklyPaycheck;
private static final double baseComm = 200;
private static final double employeePercent = .1;
  
public CommissionEmployee10A(String firstName, String lastName, int soldItems,
double itemCost) {
  
super(firstName, lastName);
this.soldItems = soldItems;
this.itemCost = itemCost;
counter++;
}
  
public void WklyPaycheck() {
wklyPaycheck = baseComm + ((employeePercent) * (double)soldItems * itemCost);
}
  
@Override
public String toString() {
return String.format("%s The employee is a Commission Employee and its "
+ "weekly paycheck amount is $%.2f.", super.toString(), wklyPaycheck);
}


@Override
public void payPrint() {
WklyPaycheck();
}
}

4. Modify driver class (EmployeeTest10A) so it adds code to create a part time employee of each type and a fulltime employee of each type (6 employees/objects). Print all 6 objects using payPrint. Add all 6 objects to the superclass array. Use the instanceof and downcasting to search for and print out the object of your choice. Source code below:

public class EmployeeTest10A {
  
public static void main(String[] args) {
  
Scanner sc = new Scanner(System.in);
  
String firstName, lastName;
int otHrs = 0;
int answer, hrsWorked, soldItems;
double otPay = 0;
double regularPay = 0;
double hrlyRate, wklyPaycheck, bonus, itemCost;
  
//create an array of type Employee10A to store objects of its subclasses
Employee10A[] employees = new Employee10A[3];
  
System.out.println("Enter any number to continue or enter a -1 to exit "
+ "the program.");
answer = sc.nextInt();
  
while(answer != -1) {
  
System.out.println("Please provide information for Hourly Employee.");
System.out.println("Enter the employee's first name:");
firstName = sc.next();
  
System.out.println("Enter the employee's last name:");
lastName = sc.next();
  
System.out.println("Enter the employee's hourly rate of pay:");
hrlyRate = sc.nextDouble();

System.out.println("Enter the number of hours worked by the employee:");
hrsWorked = sc.nextInt();
  
//creating object of "HourlyEmployee10A" and storing it in Employee10A type array
employees[0] = new HourlyEmployee10A(firstName, lastName, hrsWorked, otHrs, hrlyRate, regularPay, otPay);
// calling method from "HourlyEmployee10A" to calculate weekly paycheck
employees[0].payPrint();
// printing results
System.out.println(employees[0]);
  
System.out.println("\nPlease provide information for Salaried Employee.");
System.out.println("Enter the employee's first name:");
firstName = sc.next();

System.out.println("Enter the employee's last name:");
lastName = sc.next();

System.out.println("Enter the employee's yearly salary:");
regularPay = sc.nextDouble();

System.out.println("Enter the employee's bonus percent:");
bonus = sc.nextDouble();

//creating object of "SalariedEmployee10A" and storing it in Employee10A type array
employees[1] = new SalariedEmployee10A(firstName, lastName, regularPay, bonus);
//calling method from "SalariedEmployee10A" to calculate weekly paycheck
employees[1].payPrint();
// printing results
System.out.println(employees[1]);
  
System.out.println("\nPlease provide information for Commission Employee.");
System.out.println("Enter the employee's first name:");
firstName = sc.next();

System.out.println("Enter the employee's last name:");
lastName = sc.next();

System.out.println("Enter the number of items sold by the employee:");
soldItems = sc.nextInt();

System.out.println("Enter the price of each item:");
itemCost = sc.nextDouble();

//creating object of "CommissionEmployee10A" and storing it in Employee10A type array
employees[2] = new CommissionEmployee10A(firstName, lastName, soldItems, itemCost);
//calling method from "CommissionEmployee10A" to calculate weekly paycheck
employees[2].payPrint();
//printing results
System.out.println(employees[2]);
  
System.out.println("\nEnter any number to continue or enter a -1 to "
+ "exit the program and calculate the total number of paychecks.");
answer = sc.nextInt();
}

System.out.println("\nTotal number of paychecks calculated: " + Employee10A.counter);
}
}

In: Computer Science

12. Name some representatives of the Phylum Coelenterata. 13. Describe the role of the nematocyst. 14....

12. Name some representatives of the Phylum Coelenterata.
13. Describe the role of the nematocyst.
14. Mention how gas exchange and excretion occur in coelenterates.
15. Describe the meaning of the term polymorphism and mention some examples.
  16. What are some examples from the Hydrozoa class?

In: Biology

Please provide an overview of the problems that Europe has encountered in integrating migrants who are...

Please provide an overview of the problems that Europe has encountered in integrating migrants who are part of this current wave. Furthermore, please mention clearly to what these issues have been attributed. In addition, please mention what steps, if any are being taken to try to overcome these problems

In: Economics

Can anyone please explain Rings concept of abstract algebra? (including polynomials, it would be great if...

Can anyone please explain Rings concept of abstract algebra? (including polynomials, it would be great if you attach examples)

In: Advanced Math

How many elements of order 2 are there in S5 and in S6? How many elements...

How many elements of order 2 are there in S5 and in S6? How many elements of order 2 are there in Sn? (abstract algebra)

In: Advanced Math