Answer:
You are most likely to automatically encode information about the sequence of your day's events.
Answer:
Number of CDs = 7
Explanation:
We know that
1 GB = 1024 MB
So it means the 4 GB of data can be interpreted as:
4 GB = 1024*4 MB
4GB = 4096 MB
So a DVD hold 4096 MB of data while a CD holds 650 MB of data.
We need to find how many CDs could hold 4096 MB of data, to make it equivalent to a DVD
Number of CDs = 4096/650
Number of CDs= 6.3
As a CD can not be 0.3, a whole 1 CD will be used.
Number of CDs = 7
Answer:
Following are the code to the given question:
x= input()#defining a variable x that inputs value from the user-end
l = x.split(" ")#defining variable l that splits the x variable value with a space
t= int(l[len(l)- 1])#defining a variable t that decrease the l length and convert the value into integer
for i in range(1, (len(l) - 1)):#use for loop to calculate the range of the list
if int(l[i]) < t:#defining if block that checks the list value is lessthan t
print(l[i])#print list values
Output:
Please find the attached file.
Explanation:
In the above-given code, an "x" variable is declared that inputs the value from the user-end, and use the "l" variable that splits all the value and defined a "t" variable that adds value into the list and convert the value into an integer.
In the next step, for loop is declared that counts the lists and use a conditional statement that checks list value is less than t and use the print the method that prints the list values.
Answer:
new Scanner(inputFile)
Explanation:
In Java when inputting a file using Scanner class. A Scanner breaks the input into tokens with the help of delimiting patterns, by default which matches the whitespaces and then the tokens that are received may be converted into values of different types by suing different next methods.