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
77julia77 [94]
4 years ago
5

Please help

Computers and Technology
1 answer:
olga2289 [7]4 years ago
5 0
B.............................................................
You might be interested in
Define the missing method. licenseNum is created as: (100000 * customID) licenseYear, where customID is a method parameter. Samp
g100num [7]

Answer:

I am writing the program in JAVA and C++

JAVA:

public int createLicenseNum(int customID){  //class that takes the customID as parameter and creates and returns the licenseNum

       licenseNum = (100000 * customID) + licenseYear;  //licenseNum creation formula

       return(licenseNum);     }

In C++ :

void DogLicense::CreateLicenseNum(int customID){ //class that takes the customID as parameter and creates the licenseNum

licenseNum = (100000 * customID) + licenseYear; } //licenseNum creation formula

Explanation:

createLicenseNum method takes customID as its parameter. The formula inside the function is:

licenseNum = (100000 * customID) + licenseYear;

This multiplies 100000 to the customID and adds the result to the licenseYear and assigns the result of this whole expression to licenseNum.

For example if the SetYear(2014) means the value of licenseYear is set to 2014 and CreateLicenseNum(777) this statement calls createLicenseNum method by passing 777 value as customID to this function. So this means licenseYear = 2014 and customID  = 777

When the CreateLicenseNum function is invoked it computes and returns the value of licenseNum as:

licenseNum = (100000 * customID) + licenseYear;

                     = (100000 * 777) + 2014

                     = 77700000 + 2014

licenseNum = 77702014                                                                                                        

So the output is:

Dog license: 77702014          

To call this function in JAVA:

public class CallDogLicense {

public static void main(String[] args) {//start of main() function

    DogLicense dog1 = new DogLicense();//create instance of Dog class

dog1.setYear(2014); // calls setYear passing 2014

dog1.createLicenseNum(777);// calls createLicenseNum passing 777 as customID value

System.out.println("Dog license: " + dog1.getLicenseNum()); //calls getLicenseNum to get the computed licenceNum value

return; } }

Both the programs along with the output are attached as a screenshot.

3 0
4 years ago
Read 2 more answers
1. Es un símbolo que indica que se ha de realizar cierta operación específica entre uno o varios
irina1246 [14]

Answer:

b) Operador

Explanation:

Un operador en un lenguaje de programación es un símbolo que le dice al compilador o intérprete que realice una operación matemática, relacional o lógica específica y produzca un resultado final.

En el lenguaje de programación computacional, un operador es un símbolo o construcción que se define dentro del lenguaje de programación que indica al intérprete o compilador lo lógico, relacional, matemático, a realizar sobre un valor o entre valores.

Ejemplos de operadores son;

Operador de adición; +

Operador lógico; Y

Operador de asignación; =

Operador de comparación; >

operador typeid; typeid

6 0
3 years ago
1. Controlling Redundancy 2. Restricting Unauthorized Access 3. Providing Persistent Storage for Program Objects 4. Providing St
Dominik [7]

Answer:

Are all jobs of a DBMS (Database Management System).

Explanation:

DBMS or Database Management System is a software tool that is used to manage databases. Popular examples include MS SQL Server, Oracle and MySql. DBMSs can range from command line tools to fully featured programs.

DBMS's main job is to provide a interface for managing database, and also provide efficient and quick results of queries.

DBMSs also provide ways to connect your application to the database through APIs, so that a programmer can provide persistence to the application data.

4 0
4 years ago
What's the difference between a game of skill and game of chance?
Hunter-Best [27]
If its a game of skill, the game depends on how good you are in gaming, if its a game of chance it depends on what are the chances of you winning
5 0
3 years ago
True / False<br> An instruction’s opcode generally indicates the number and type of its operands.
liq [111]

Answer:

True

Explanation:

An opcode is the part of instruction which specifies the operation to be performed by the instruction.

In general, the opcode also provides information about the number and type of operands.

For example, let us consider the MIPS instructions for addition.

  • ADD reg_dest, reg_src1, reg_src2

This instruction adds the contents of registers reg_src1 and reg_src2 and stores the result in reg_dest.

  • Whereas, ADDI reg_src, reg_dest, value

This instruction adds the value to the content of reg_src and stores the result in reg_dest.

As we can see the opcode type indicates the operand type, number and semantics.

7 0
3 years ago
Other questions:
  • What is also known as a visual aid in a presentation?
    14·2 answers
  • Identify the parts used in an electric circuit- Tiles
    9·2 answers
  • You created a vm and installed windows server 2008 r2 over the network, using pxe boot. when you start the vm, it doesn't attemp
    7·1 answer
  • A acrostic sentence for mutualism?
    10·1 answer
  • Write a statement that defines an ifstream object named inputFile and opens a file named "Friends.txt".
    13·1 answer
  • Where could an identity theft access your personal information?
    9·2 answers
  • Write pseudocode instruction to carry out each of thefollowing computational operations.
    10·1 answer
  • In what tab can a user find the workspace option?
    8·1 answer
  • A force from water that brings water to your house​
    6·1 answer
  • what is the system that connects application repositories, systems, and it environments in a way that allows access and exchange
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!