Answer:
I believe it is windows 8
Hi,
the program is as follows
___________________________________________________________
import java.io.*;
class doubleval
{
public static void main()throws IOException
{
DataInputStream dt=new DataInputStream(System.in);
System.out.println("Enter NUMBER WHOSE DOUBLE U WANT TO PRINT");
int n=Integer.parseInt(dt.readLine());
for(int i=n;i<=100;i=2*i)
{
System.out.println(i);
}
}
}
<span>Hard disk drives
</span><span>RAM<span>Random access memory (RAM)
</span></span><span>External hard disks
<span>USB port
</span></span>CD and DVD drives
<span>Memory cards</span>
Answer:
see explaination
Explanation:
I made use of python program to solve this.
text file name with fun.txt.
6 fun. 3 hello 10 <> 2 25 4 wow!
Program code:
import re
file = open('fun.txt','r') #for reading file
strings="" #declaring empty string
for k in file:
strings=strings+k #all character in file is storing in strings variable for do operations
pattern = '\s' #for pattern \s is for space
result = re.split(pattern, strings) #split the string with space
for k in range(len(result)): #loop through the list of string
if(k%2) == 0: #checking for integer to time of string
p=int(result[k])
print(result[k+1] *p) #print times of the string(k+1)
Check attachment for output
Answer:
Option D is correct.
Explanation:
Option D is correct because when the condition if (list[j] < temp) is tested it only gets true when element in list[] array at <em>jth</em> position is less than the value in <em>temp</em> and after that it increments the value of c by this statement: c++ and so c is incremented from 0 to as much times as much elements in list[] are lesser than temp.