Checkpoint 10.43 Write an interface named Nameable that specifies the following methods: _______{ public void setName(String n) public String getName()} Fill in the blank.

Answers

Answer 1
Answer:

Answer:

Fill the blank with

public interface Nameable {

Explanation:

Required

Complete code segment with the interface definition

The given code segment is divided into three parts

1. The interface

2. The method that returns nothing

3. The method that returns string

The blank will be filled with the definition of the interface.

The definition is as follows:

public interface Nameable {

Analyzing the above definition

public -----> This represents the modifier

interface ------> This represents that the definition is an interface

Nameable ------> This represents the name of the interface


Related Questions

What error can you identify? (Points : 4)A double quotation mark was incorrectly inserted.You cannot compare apples to oranges.Assumes indentation has a logical purposeNo error
Write a program that reads the contents of a text file. The program should then create a structure that has 3 fields: a word, the frequency of the word, the list of line numbers where the word appears. Then the program will open a text file and read the content of the file. It will create another text file as output file. The output file should contain an alphabetical listing of the words, their frequency, and the list of line numbers where the word appears. -g
A constructor (check all that apply): Group of answer choices will always result in a run time error and program crash if it fails to test a parameter's value for validity before assigning the parameter's value to member. This will happen the first time we run a program, and alert us to the fact that there is a problem. must use mutators to initialize class data. must use assignment statements to initialize class data. may use assignment statements to initialize class data. may use mutators to initialize class data. will receive a compiler error if it fails to test a parameter's value for validity before assigning the parameter's value to member.
How do you suppose the Anagram Server works?
Two friends are eating dinner at a restaurant. The bill comes in the amount of 47.28 dollars. The friends decide to split the bill evenly between them, after adding 15% tip for the service. Calculate the tip, the total amount to pay, and each friend's share, then output a message saying "Each person needs to pay: " followed by the resulting number.

What is the function of control unit? in computer.

Answers

regulates and integrates the operations of the computer. It selects and retrieves instructions from the main memory in proper sequence and interprets them

List two reasons why “buying a computer is no easy task” ?

Answers

The price of it and the quality of it.

Price also important matter all computer users needs are not equal so we should concern requirement features

(Display nonduplicate words in ascending order)Write a program that prompts the user to enter a text in one line and displays all the nonduplicate words in ascending order.
Sample Run
Enter a text: Good morning Good afternoon Good evening
Good afternoon evening morning

Answers

The programreturns uniqueelements in the string passed in with no duplicates. The programis written in python 3 thus :

text = input('Enter text : ')

#promptsuserto enterstring inputs

split_text = text.split()

#splitinputtedtext basedonwhitespace

unique = set(split_text)

#usingtheset function,takeonlyuniqueelementsin thestring

combine = ' '.join(unique)

#usethejoinfunctiontocombinethestringstoformasingle lengthstring.

print(combine)

Asamplerunoftheprogramisattached

Learn more : brainly.com/question/15086326

Answer:

The program to this question as follows:

Program:  

value = input("Input text value: ") #defining variable value and input value by user

word = value.split() #defining variable word that split value

sort_word = sorted(word) #defining variable using sorted function

unique_word = [] #defining list

for word in sort_word: #loop for matching same value

   if word not in unique_word: #checking value

       unique_word.append(word) #arrange value using append function

print(' '.join(unique_word)) #print value

Output:

Input text value: Good morning Good afternoon Good evening

Good afternoon evening morning  

Explanation:

In the above python code, a value variable is defined that uses input function to input value from the user end, and the word variable is declared, which uses the split method, which split all string values and defines the sort_word method that sorted value in ascending order.

  • Then an empty list "unique_word" is defined, which uses the for loop and inside the loop, a conditional statement is used.
  • In if block, it matches all value is unique if this is condition is true it will arrange all values and uses the print function to print all value.  

Which of the following function declarations correctly expect an array as the first argument?Question 1 options:

void f1(int array, int size);

void f1(int& array, int size);

void f1(int array[100], int size);

void f1(float array[], int size);

All of the above

C and D

A and B

Answers

Answer:

Only

Option: void f1(float array[], int size);

is valid.

Explanation:

To pass an array as argument in a function, the syntax should be as follows:

functionName (type arrayName[ ] )

We can't place the size of the array inside the array bracket (arrayName[100]) as this will give a syntax error. The empty bracket [] is required to tell the program that the value that passed as the argument is an array and differentiate it from other type of value.

Why is a bedroom considered a poor study environment?Bedrooms are dimly lit.
Bedrooms are too small.
Bedrooms are too comfortable.
Bedrooms are messy and cluttered.

Answers

Bedrooms are too comfortable, I'm not sure if this is the answer

Answer:

It would basically be based on how you study and what your room is like. But my opinion would be

Bedrooms are Too Comfortable- which causes you to want to sleep or not due your work

Bedrooms are dimly lit- Which makes it hard for you to see your work and see anything

Bedrooms are too small- You will fell crushed and hard to focus (I would most likely choose this answer)

Bedrooms are messy and cluttered- You will not be able to concentrate and make it hard to study or do school work. ( I would choose this because I have experienced with this and I score higher in a cleaner environment and able to focus more)

Explanation: This would all depend on how you best work.

Hope this Helps!!

Which technology is suitable to cover the whole city for internet?​

Answers

Answer:

Municipal broadband deployments are broadband Internet access services provided either fully or partially by local governments. Common connection technologies include unlicensed wireless (Wi-Fi, wireless mesh networks), licensed wireless (such as WiMAX), and fiber optic cable.

Explanation:

plz mark it as brainliest ..

Other Questions
#Imagine you're writing a program to check if a person is #available at a certain time. # #To do this, you want to write a function called #check_availability. check_availability will have two #parameters: a list of instances of the Meeting class, and #proposed_time, a particular date and time. # #check_availability should return True (meaning the person #is available) if there are no instances of Meeting that #conflict with the proposed_time. In other words, it should #return False if proposed_time is between the start_time and #end_time for any meeting in the list of meetings. # #The Meeting class is defined below. It has two attributes: #start_time and end_time. start_time is an instance of the #datetime class showing when the meeting starts, and #end_time is an instance of the datetime class indicating #when the meeting ends. # #Hint: Instances of the datetime have at least six #attributes: year, month, day, hour, minute, and second. # #Hint 2: Comparison operators work with instances of the #datetime class. time_1 < time_2 will be True if time_1 is #earlier than time_2, and False otherwise. # #You should not assume that the list is sorted. #Here is our definition of the Meeting class: from datetime import datetime class Meeting: def __init__(self, start_time, end_time): self.start_time = start_time self.end_time = end_time #Write your function here! #Below are some lines of code that will test your function. #You can change the value of the variable(s) to test your #function with different inputs. # #If your function works correctly, this will originally #print: True, then False meetings = [Meeting(datetime(2018, 8, 1, 9, 0, 0), datetime(2018, 8, 1, 11, 0, 0)), Meeting(datetime(2018, 8, 1, 15, 0, 0), datetime(2018, 8, 1, 16, 0, 0)), Meeting(datetime(2018, 8, 2, 9, 0, 0), datetime(2018, 8, 2, 10, 0, 0))] print(check_availability(meetings, datetime(2018, 8, 1, 12, 0, 0))) print(check_availability(meetings, datetime(2018, 8, 1, 10, 0, 0)))