Answer:
public class Class {
private String name ="";
private int score = 0;
//Method SetName
public void setName(String newName){
name = newName;
}
//Method SetScore
public void setScore(int newScore){
score = newScore;
}
//Method GetName
public String getName() {
return name;
}
//Method GetScore
public int getScore() {
return score;
}
}
Explanation:
- The class called Class is implemented in Java programming language
- It has two fields (instance variables name and score)
- Methods for setting the values of variables (mutator methods) or setters
- Methods for getting the values of the variables (accessor methods) getters
To prepare for giving an effective and engaging business presentation;
1. Know your subject and be able to answer questions.
2. Practice your presentation until you are confident in your delivery
3. Get plenty of sleep the night before and have a light breakfast the day of.
Answer:
Explanation:
iname=input("Enter the file name: ")
inputfile=open(iname,'r')
lines=[]
for line in inputfile:
lines.append(line)
inputfile.close()
print("The file has ",len(lines)," lines")
while True:
linenumber=int(input("Enter the line number or 0 to quit: "))
if linenumber==0:
break
elif linenumber > len(lines):
print("Error: line number must be less than ", len(lines))
else:
print(linenumber, " : ", lines[linenumber - 1])
Answer:
Amtex Electronics promotes the process of memory retrieval and stimulate purchase.
Explanation:
Recall or retrieval of memory refers to information from the past, which has encoded and stored in the brain. It is known as remembering.
For example, the memory of your son drinking juice is an example of retrieval. Memory had been stored in long- term memory.
Many types of memory retrieval are recall and recognition. This information must be retrieved from memories.