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
patriot [66]
4 years ago
15

Code a call to function aNonclassFunction passing co.

Computers and Technology
1 answer:
Doss [256]4 years ago
6 0

Answer:

a)aNonclassFunction (co);

Explanation:

When we call a function we just have to write the name of the variable that we are passing to the function.We don't have to write any operator.

So the function call is like this:-

function_name(var_name);

In our case it is

aNonclassFunction(co);

Hence the answer is option a.

You might be interested in
JAVA Write a program that first asks the user to type a letter grade and then translates the letter grade into a number grade. L
ale4655 [162]

Answer:

Follows are the code to this question:

import java.util.*;//import package for user input

class GradePrinter//defining class GradePrinter

{

double numericValue = 0;//defining double variable

String grade = "";//defining String variable

GradePrinter()//defining default constructor  

{

Scanner xb = new Scanner(System. in );//defining Scanner  class object

System.out.print("Enter Grade: ");//print message

grade = xb.nextLine();//input string value  

}

double getNumericGrade()//defining double method getNumericGrade

{

if (grade.equals("A+") || grade.equals("A"))//defining if block that check input is A+ or A

{

numericValue = 4.0;//using  numericValue variable that hold float value 4.0

}

else if (grade.equals("A-"))//defining else if that check grade equals to A-

{

numericValue = 3.7;//using  numericValue variable that hold float value 3.7

}

else if (grade.equals("B+"))//defining else if that check grade equals to B-

{

numericValue = 3.3;//using  numericValue variable that hold float value 3.3

}

else if (grade.equals("B"))//defining else if that check grade equals to B

{

numericValue = 3.0;//using  numericValue variable that hold float value 3.0

}

else if (grade.equals("B-"))//defining else if that check grade equals to B-  

{

numericValue = 2.7;//using  numericValue variable that hold float value 2.7

}

else if (grade.equals("C+"))//defining else if that check grade equals to C+  

{

numericValue = 2.3; //using  numericValue variable that hold float value 2.3

}

else if (grade.equals("C")) //defining else if that check grade equals to C  

{

numericValue = 2.0; //using numericValue variable that hold float value 2.0

}

else if (grade.equals("C-")) //defining else if that check grade equals to C-  

{

numericValue = 1.7;//using umericValue variable that hold float value 1.7

}

else if (grade.equals("D+"))//defining else if that check grade equals to D+  

{

numericValue = 1.3;//using umericValue variable that hold float value 1.3

}

else if (grade.equals("D"))//defining else if that check grade equals to D

{

numericValue = 1.0;//using umericValue variable that hold float value 1.0

}

else if (grade.equals("F"))//defining else if that check grade equals to F

{

numericValue = 0;//using umericValue variable that hold value 0

}

else//defining else block

{

System.out.println("Letter not in grading system");//print message

}

return numericValue;//return numericValue

}

}

class Main//defining a class main

{

public static void main(String[] args)//defining main method

{

GradePrinter ob = new GradePrinter();// creating class GradePrinter object

double numericGrade = ob.getNumericGrade();//defining double variable numericGrade that holds method Value

System.out.println("Numeric Value: "+numericGrade); //print Value numericgrade.

}

}

Output:

Enter Grade: B

Numeric Value: 3.0

Explanation:

In the above-given code, a class "GradePrinter" is defined inside the class a string, and double variable "grade and numericValue" is defined, in which the grade variable is used for input string value from the user end.

After input, the sting value a method getNumericGrade is defined, which uses multiple conditional statements is used, which holds double value in the which is defined in the question.

In the main class, the "GradePrinter" object is created and defines a double variable "numericGrade", that calling method and store its value, and also use print method to print its value.

4 0
3 years ago
Louisa wants to purchase a used SUV that costs $12,750 from an automobile superstore. She has $4,000 to make a down payment and
liq [111]

Answer:

its a numbre

Explanation:

4 0
3 years ago
Kyra is protesting corruption in the mayoral office. She is afraid that the mayor has access to her emails where she discusses h
Marianna [84]

Answer: B. Electronic Communications Privacy Act

Explanation: If you look up what  Electronic Communications Privacy Act it tells you the answer in the meaning or definition. Therefore Electronic Communications Privacy Act is the correct answer. Please rate me a 5/5. Your welcome.

3 0
3 years ago
The main advantage of using the Gray code is:
zzz [600]

Answer:

a) only one digit changes as the number increases.

Explanation:

Let us first understand what does it mean when we say only one digit changes as the number increases using the Reflected Binary code (also called Gray code)

consider the 4 bit representation of Binary coded decimal and RB codes

Decimal | Binary code  | Reflected binary (RB) code

0              0000               0000

1               0001                0001

2              0010                0011

3              0011                 0010

4              0100                0110

5              0101                 0111

As you can see in the case of binary codes, there are more than one digit changes between two consecutive numbers.

But notice that in the case of Gray codes, there is always one digit change between two consecutive numbers.

The problem with the binary codes is that the more digits change there states the greater is the chance of ending up with random transitional values rather than real values which can be incorrect. The RB code solves this problem by only changing one digit at a time.

The RB code is widely used in linear and rotary encoders, error correction and digital logic design.

8 0
3 years ago
To someone on the internet or another outside network, it appears that all information is coming from a single computer when ___
aev [14]
Application gateway or application layer gateway
6 0
3 years ago
Other questions:
  • In the 219th meeting of the American Astronomical Society, what planet's borders were said to be recognizable from space? Hint:
    12·1 answer
  • What process combines data from a list with the content of a document to provide personalized documents?
    10·1 answer
  • Do most of you agree on a primary interpretation? Why?
    14·1 answer
  • What is the process in which a server is partitioned into smaller components
    7·1 answer
  • What social media category allows users to publish content as posts but restricts the size of the post to a certain numbers of c
    8·1 answer
  • What do you understand by storage devices ? Name any two storage devices.​
    11·2 answers
  • What is digital marketing?
    5·1 answer
  • The Fed: decreases the money supply when the economy contracts. performs banking services for commercial banks in districts wher
    7·1 answer
  • What was the strategy the company adopted for ERP implementation?
    6·1 answer
  • Bruce realizes he's getting a cramp in his neck after texting with his buddy for several minutes. he puts the phone down and tak
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!