Answer:
list1=[]
n=10
for i in range(n):
z=int(input("Enter number:"))
list1.append(z)
print(list1)
To put it into simple terms, software is always a continuous
process of coding and updating, thus, you will never code and be done. Professional
software not only consists of programs that are developed for a client, but
also the compilation of documentation, configuration of data, support websites,
requirements, design manuals, and evolution to make these programs operational
and complete.
A professionally done software system consists of more than one
program and configuration files used to set up these programs.
A complete program with the method ShowCar:
import java.util.Scanner; // header file
public class ShowChar
{
public static void main(String[] args)
{
String lnOfText;
int i;
Scanner input = new Scanner(System.in);
System.out.print("Enter a line of text:");
lnOfText = input.nextLine();
System.out.print(" Enter your index: ");
i = input.nextInt();
show_Char(lnOfText,i);
}
public static void show_Char(String str_a, int i)
{
System.out.print(str_a.charAt(i));
}
}
In this program, both the inputs ie. a sentence or line of text as well as the index position is obtained. A method is written to find the string at that particular position. Finally the method prints that character at the particular index.
Answer is D. 1024
8 bits is enough to represent 256 different numbers. 9 bits is enough to represent 512 numbers. 10 bits can represent 1024 numbers.