Answer:
num_of_guesses = int(input())
user_guesses = []
for n in range(num_of_guesses) :
guess_value = int(input())
user_guesses.append(guess_value)
print("User guesses :", user_guesses)
Explanation:
Using python
Line 1 prompts the user to input the number of guesses he / she will like to make.
Line 2, initiates an empty list which will be used to store the numbers which will be guessed.
The for loop which uses the condition stated in line 1, that is, the user will only be able to make guesses based on the value enters into num_of_guesses
guess_value prompts user to enter a value which is added to the user_guesses list
The print statement, lists the numbers guessed by the user.
<span>The text, images, sound, and video that make up a web page best defines: The content
in a webpage, content is everything that would enrich the experience of the web surfer when visiting a web page and increase the amount of visiting time that they use to stay on that web page. </span>
Answer:
Due to the change in technology, the requirement is changed day to day and business requirements also are changed so we need to opt for new technology.
Explanation:
In old days we started with black and white with DOS (DISK OPERATING SYSTEM ) later we changed to color mode with windows 3.1 and later we are all in an upgraded version of windows 10 and some people will use mac or chrome book as hardware and operating system.
As far as software concern people currently opted with java and angular js and node js. And database also changed from SQL to NoSQL.
Technology has limitation and improvement so fixing to technology is not possible
Answer:
public class Leo{
public String method1(){
return "Jack 1 Leo 1";
}
public String method2(){
return "Don 2 Jack 2";
}
public String method3(){
return "Jack 3 Leo 3 Don 2";
}
public String toString(){
return "Jack 3 Leo 1"
}
}
public class Jack extends Leo{
}
Explanation:
Leo is the parent class and jack inherits all of its attributes from Leo
So when you call the following code in the main method:
Jack j = new Jack();
System.out.println(j.method1);
it should print Jack 1 Leo 1
This is because the program first checks if method 1 exists in the Jack class
Because it doesn't exist it then goes to the parent class which is Leo.
And in the Leo class method1 displays "Jack 1 Leo 1 "
So it prints that