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

#Create a class called Name. Name should have two attributes

Computers and Technology
1 answer:
prisoha [69]3 years ago
3 0

Answer:

//class Name

class Name {

// attributes gave you 3

String first_name;

String last_name;

int length = 0;

//constructor with 2 parameters

Name(String first_name, String last_name){

}

//methods

public String find_printed_name(){

return first_name + " " + last_name;

}

public void find_sortable_name(){

return last_name + ", " first_name.charAt(0);

}

public static void main(String[] args){

// instantiate the class

Name test_name = new Name("David", "Joyner");

System.out.println(test_name.first_name);

System.out.println(test_name.last_name);

System.out.println(test_name.find_printed_name());

System.out.println(test_name.find_sortable_name());

}

Explanation:

You didn't specify a language so I did it in Java.

You should know how to declare methods in Python.

You might be interested in
A type of computer usually has thousands of users. which of the following is most likely to be the type of computer?
Sunny_sXe [5.5K]
The macbook computer has about 9,000,000 gagets and in its websites about 80T links
4 0
3 years ago
Read 2 more answers
Computers help eliminate the repetitiveness of manual task how can this benefit you in your overall career?
rjkz [21]

Answer:

Explanation:

When I went to high school, our next door neighbor had a pet dinosaur. We used to have to do math problems that were incredibly long and tedious. Things like the gas laws. They involve 5 numbers with 2 decimal places and we were asked to find the 6th number.

Eventually we were taught to use log tables but by then we were too numb to care.

Computers however take repetitiveness in their stride. They don't gag at how many times they have to repeat an operation. They don't mind if they do it a thousand times or a million or 100 million times. Some algorithms like the Monte Carlo method depend on trying an operation a million times. Humans would go crazy if they had to do that. Computers can do simple algorithms a million times while the mouse is on the go command.

If you pick a job like a tax consultant, you will be glad not to do any more than knowing where the numbers that make up your data go.

Same with banks and insurance jobs. I'll bet there are many jobs in medicine that require repetitive calculations.

7 0
2 years ago
FELLING GENEROUS GIVING AWAY POINTS:)
Liula [17]

Answer:

thanksssssssss

3 0
3 years ago
What is the output of the following Python statements? def recurse(a): if (a == 0): print(a) else: recurse(a) recurse(0)
FrozenT [24]

Answer:

d) 0 1 1 2

The above piece of code prints the Fibonacci series.

Explanation:

def a(n):

   if n == 0:

       return 0

   elif n == 1:

       return 1

   else:

       return a(n-1)+a(n-2)

for i in range(0,4):

   print(a(i),end=" ")

5 0
3 years ago
Su prepares a presentation about the industrial revolution. She wants to change the font on the second slide of
tatyana61 [14]

Answer:

The answer to this question with an explanation is given below in the explanation section

Explanation:

Sue prepares a presentation about the industrial revolution. She wants to change the font on the second slide of her presentation. She can accomplish this task with the following option.

By using Font dialog box

Using this option, first, she needs to select the whole second line, as the line gets selected, font dialog box get appear, wherefrom she can change the font to any available font style, size. In this font dialog box, she can also increase and decrease the font, change the font color and can make font bold, italic and underline.

By using the Font drop-down menu

Using this option, first, she needs to select the second line of her slide. Then, go to the Home tab, under Font group section, she can change the font style, size, color and increase spacing, etc.

Why other options are not correct.

<em>By using the mini toolbar</em>

mini toolbar does not have the option that directly allows you to change the font

<em>By using paragraph option</em>

Using this option, you can only modify the paragraph setting, but not the font. Using this option, you can align the text of paragraph to center, left, right and justify, you can do numbering, add or remove the column, and make text direction.

<em>By using WordArt options</em>

Using this option, you can insert WordArt, these styles are predefined and don't allow you to change the font.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Liz will use a CD-R compact disk to write to more than once. Carlo will use a CD-RW compact disk to write to more than once. Who
    8·2 answers
  • HIPAA protects which of the following kinds of data?
    11·2 answers
  • A​ ___________ identifies the content and purpose of the​ visual, along with whatever label and number​ you're using to refer to
    15·1 answer
  • Write a function that takes an integer value and returns the number with its digits reversed. for example, given the number 7631
    10·1 answer
  • Write a C program that uses a while statement to determine and print the largest of 10 numbers input by the user. Your program s
    6·1 answer
  • Choose the answer.
    15·1 answer
  • Word wrap is the same as __________ return and means you let the ______________ control when it will go to a new line.
    11·1 answer
  • When methods have ____, other programs and methods may use the methods to get access to the private data.
    5·1 answer
  • Writing queries in sql to compile data from a database is related to the physical level of databases true or false?.
    10·1 answer
  • The Baltimore Sun reported on a study by Dr. Sara Harkness in which she compared the sleep patterns of 6-month-old infants in th
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!