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
Nikitich [7]
3 years ago
11

Dynamically allocatе mеmory for a DNA objеct and storе its addrеss in a variablе namеd dnaPtr

Computers and Technology
1 answer:
borishaifa [10]3 years ago
4 0

Answer:

 DNA obj =new DNA;//obj object created dynamically.

   DNA *dnaPtr=&obj.//dnaPtr to store the address of the object.

Explanation:

The above written statements are in C++.The DNA object is created dynamically and it is done in C++ by using new keyword which allocates the heap memory for the object.

Then a dnaPtr is created of type DNA so that it can store the address of the DNA objects.

You might be interested in
________ is a model of computing in which firms and individuals obtain computing power and software applications over the intern
Irina-Kira [14]
Pretty sure the answer is A.
4 0
2 years ago
Implement a program that requests the user to enter the x and y coordinates (each between 10 and 10) of a dart and computes whet
igomit [66]

Answer:

Following are the program in the Python Programming Language.

#import math package

from math import sqrt

#define function

def circle(x,y):

 #return the square root

 return sqrt( (x)**2 + (y)**2 )

#get input from the user

x = float(input("Enter first number between -10 and 10: "))

#get input from the user

y = float(input("Enter first number between -10 and 10: "))

#check condition

if(circle(x,y)<8):

 #then, print message

 print("It is in!")

#otherwise

else:

 #print message

 print("It is not in!")

<u>Output:</u>

Enter first number between -10 and 10: 1.5

Enter first number between -10 and 10: 2.6

It is in!

Explanation:

Here, in the following program in the Python Programming Language.

  • Define the function "circle" and pass the argument "x" and "y" then, return square root of x and y.
  • Set a variable "x" which get float type input from the user.
  • Set a variable "y" which get float type input from the user.
  • Set the if conditional statement to check that the function return the value less than 8 then, print the message.
  • Otherwise, it print the following message.
4 0
3 years ago
when you select cells in your worksheet and then click the copy button, what happens? select one: a. the formatting is removed f
Amiraneli [1.4K]
Hey there! Hello!

Not sure if you still need this answer, but I'd love to help out if you do.

In terms if Excel Spreadsheet, your answer will be D. A<span> moving dashed line border appears around the cells. What the copy button does is take the contents in your cell(s) and copies them so that you can paste them elsewhere. B and C would apply here if you were cutting the text, which clears whatever you have selected so that you can paste them elsewhere without having to go back and delete it. 

I have attached an example of what happens to a cell when you either right click it and press copy, or press ctrl/command+c, which is the keyboard shortcut for copying text or contents. 

Hope this helped you out! Feel free to ask me any additional questions if you have any. :-)</span>

4 0
3 years ago
A Flash Translation Layer translates user data to a format that can be written on the NVM. tracks which physical block contains
masha68 [24]

Answer:

tracks which physical block contains only valid pages.

Explanation:

Flash translation layer or FTL is a system made up of software and hardware that manages solid-state drive or SSD operations. It implements data concurrency techniques like striping, interleaving, and pipelining to generate a high throughput. It also performs logical to physical addressing amongst other functionalities.

The FTL also tracks which physical block in the memory that contains only valid pages by performing a bad block management process, isolating and discarding the blocks with no valid pages

7 0
2 years ago
Calcium has an atomic number of 20 and an atomic mass (weight) of 40 therefore, we know that calium has
klio [65]
20 protons
20 electrons
20 neutrons
7 0
3 years ago
Other questions:
  • What type of video games do you prefer buying?
    14·1 answer
  • CodeHS 3.4.5. What is the code for four colored triangles.
    8·1 answer
  • Four possible skills a person could have
    15·1 answer
  • How do you change between worksheets inside an Excel Workbook?
    7·1 answer
  • A citizen of any group both
    6·1 answer
  • jeff has just upgraded from windows 7 to windows 10 and he is confused. He has started several universal apps but he can't figur
    11·1 answer
  • Jen's house contains the following devices:
    13·1 answer
  • When computer network are joined together they form a bigger network called the​
    5·1 answer
  • A construction-based client would like to develop an application that can analyze an image of machinery and overlay information
    8·1 answer
  • 8. Software ____ are individual programs that can be purchased, installed, and run separately, but extract data from the common
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!