Answer:
Create the student class object which inherit the printinfo() from the abstract class People
Explanation:
Classes in object-oriented programming are blueprints of a defined type of data structure.
An object of an abstract class cannot be instantiated. So, the People class in question, is only inherited by the Student class which able to use the define printinfo() method.
This is an incomplete question. The complete question is given below:
Mike has never used slide presentation software before but he needs to create a presentation by the end of the week what resource would be most helpful to mike
a. The 350-page printed manual from the slide presentation software publisher
b. A free tutorial the slide presentation software publisher has posted on the company website
c. A trouble-shooting website created by a third party
d. The 350-page online manual from the slide presentation software publisher
Answer:
b - A free tutorial the slide presentation software publisher has posted on the company website
Explanation:
As Mike has a short time and no prior experience with a slide software, then in this scenario, the best, simplest and fastest way to learn and create a presentation a free tutorial which the slide presentation software publisher has posted on the company website as this is the same company that has created this particular software so he can be rest-assured that the resource he is relying on is authentic and up-to-date with information on latest features.
Moreover, it's efficient and quick way to learn from a free tutorial rather than from 350-page printed or online manual especially for a beginner.
Besides, his purpose is to create the presentation using the software and not trouble-shooting so trouble-shooting website created by a third party is not useful for him and it also might not be authentic or updated as well.
Solution :
public class NewMain {
public_static void main_(String[] args) {
boolean[] _locker = new boolean_[101];
// to set all the locks to a false NOTE: first locker is the number 0. Last locker is the 99.
for (int_i=1;i<locker_length; i++)
{
locker[i] = false;
}
// first student opens all lockers.
for (int i=1;i<locker.length; i++) {
locker[i] = true;
}
for(int S=2; S<locker.length; S++)
{
for(int k=S; k<locker.length; k=k+S)
{
if(locker[k]==false) locker[k] = true;
else locker[k] = false;
}
}
for(int S=1; S<locker.length; S++)
{
if (locker[S] == true) {
System.out.println("Locker " + S + " Open");
}
/* else {
System.out.println("Locker " + S + " Close");
} */
}
}
}
Answer:
The Proper codes in Line a and Line b is given below
average=Sum/3
print (" Average is = ", average)
Explanation:
In the given question it calculated the sum but the program does not calculate the average of the 3 numbers.The average of the 3 number is calculated by using average=Sum/3 statement so we add this code in Line a then After that print the value of average by using the print function so we add this code in Line b.