1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Shalnov [3]
3 years ago
14

Melissa is working on her Cell class by adding new methods. However, in her most recent version, she is receiving errors in some

of her methods. Select the header of the method that is giving her trouble.
public class Cell
{
private int chromosomes, rna;
public double time, h2o;
private static int cellCount = 0;
private static double mCount = 4.0;

public Cell()
{
chromosomes = 23;
rna = 1;
h2o = 2.0;
mCount = rna/h2o;

cellCount++;
System.out.println("There are now " + cellCount + " cells");
}

public Cell(int a_chromosomes, int a_rna, double a_h20)
{
this();
chromosomes = a_chromosomes;
rna = a_rna;
h2o = a_h20;
mCount = rna/h2o;

cellCount++;
System.out.println("There are now " + cellCount + " cells");
}

public void printInfo() {
System.out.println("chromosomes: " + chromosomes);
System.out.println("rna: " + rna);
System.out.println("h2o: " + h2o);
}

public int getChromosomes()
{
if (chromosomes = cell_2.get_mCount()) {
return cell_1;
} else {
return cell_2;
}
}
}

A. public Cell(int a_chromosomes, int a_rna, double a_h20)
B. public int getChromosomes()
C. public double get_mCount()
D. public static Boolean getLargerCell_mCount(Cell cell_1, Cell cell_2)
Computers and Technology
1 answer:
ollegr [7]3 years ago
8 0

Answer:

mfjkdjbchbnbjnjnnbbjbjvbfbgjbbbgbnbbcbbbnmbhnmbkggkjhjgghggfgfgghhjjhjhgfcghjiokijuyfdsfghuijopiuytrdfcgvhbjklp[oiu98y7t6rdfcvbnjklpo09876rdxfcvb nmlkoiu8y7trfdxcv bnjkloi9u87tyfgvbnm,lpoi98uygvbnm,loihuuuuuuuuuujhgftr5kjihugytfrdeujbhgytfrdfghuytfgvhuytfghuytgfgtgfghyt

Explanation:

You might be interested in
A ________ is a virus that is triggered on a certain date.
marysya [2.9K]
A time bomb virus is a virus that is triggered on a certain date. It is a malicious program that is designed to release virus unto a system. Once the time has arrived, it will automatically start working what it is programmed to do since any virus could do anything depending on what it is designed to do.
8 0
4 years ago
What is a variable in programming?
HACTEHA [7]
A symbol or set of characters in a programming statement whose value can be changed
3 0
3 years ago
A perfect binary tree is a complete binary tree with all levels fully filled. Add a method in the BST class to return true if th
algol [13]

Answer:

class BST {

static class Node

{

int val;

Node left, right;

}

static boolean checkPerfectBT(Node node, int h, int d)

{

if (node == null)

return true;

 

if (node.left == null && node.right == null)

{

if(h==d+1)

return true;

else

return false;

}

 

if (node.left == null || node.right== null)

return false;

 

return checkPerfectBT(node.left, h, d+1) && checkPerfectBT(node.right, h, d+1);

}

static int height(Node node)

{

int dep = 0;

while (node != null)

{

node = node.right;

dep=dep+1;

}

return dep;

}

static boolean isPerfectBT(Node node)

{

int h = height(node);

return checkPerfectBT(node, h, 0);

}

 

static Node addNode(int x)

{

Node node = new Node();

node.val= x;

node.right = null;

node.left = null;

return node;

}

public static void main(String args[])

{

int i,j,k;

Node node= null;

node = addNode(34);

node.left = addNode(2);

node.right = addNode(322);

 

node.left.left = addNode(21);

node.left.right = addNode(23);

node.right.left = addNode(37);

node.right.right = addNode(54);

 

if (isPerfectBT(node) == true)

System.out.println("This is a Perfect Binary tree");

else

System.out.println("This is Not a perfect Binary Tree");

}

}

Explanation:

  • Calculate the depth of BST by using a while loop until it reaches a null value.
  • In the addNode method, make an object of Node class.
  • In the main method, pass the values to addNode method.
  • Finally display the relevant message to show if it's Perfect or not.
6 0
3 years ago
Enter just the letter of the correct answer
Viefleur [7K]

Answer:

C. WDS

Explanation:

DND is for rolling dice and arguing about alignments

WiFi Analyzer just monitors your WiFi's stats and health

--> WDS lets you wirelessly connect two routers for larger range

DHCP is for IP address distribution.

3 0
4 years ago
Write a program that accepts two integers from the user and perform one of the four arithmetic operations based on user’s choice
alex41 [277]

Answer:

do you still need the answer? or am i to lateeee

Explanation:

6 0
3 years ago
Other questions:
  • In round-robin scheduling,a) the time quantum should be larger than the context switch time. b) the time quantum should be as sm
    15·1 answer
  • When you perform an in-place upgrade to windows 8.1 from windows 7, what will be names of the “windows” folders in windows 7 and
    5·1 answer
  • Could someone give an example or tell me what all of these mean? (For internet source citing) Evaluation: • Domain Name: • Autho
    7·1 answer
  • Who is a data base administrator
    12·1 answer
  • Write a Java application that uses the Math class to determine the answers for each of the following: a. The square root of 37 b
    10·1 answer
  • What is a traditional tool used to align and mark vertical points from top to bottom?
    10·1 answer
  • Deb needs to add borders on the cells and around the table she has inserted into her Word document.
    7·1 answer
  • Examples of email use that could be considered unethical include _____.
    14·2 answers
  • Find the total cost of a $125 coat purchased in Los Angeles County where the sales tax is 9%. Use the expression c + 0.09c
    10·1 answer
  • In order to control access to a company's intranet and other internal networks, all communications pass through a _____ server.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!