Answer:
import sys, time
from os import walk, remove
from os.path import exists, join, getsize, getctime
file_counter = [ ]
folder_name, file_size = argv
isExist = exists( folder_name )
if folder_name == True:
for root, folder, files in walk( folder_name ):
for file in files:
if getsize( join ( root, file ) ) >= file_size:
file_log = [ ]
file_log.append( file )
file_log.append( join ( root, file) )
file_log.append( time.ctime( getctime( file ) ) )
file_counter.append( file_log )
else:
remove ( join ( root, file ) )
Explanation:
The python script above output the filename, size and file creation date of any folder passed to it.
Answer:
Alphabet and digits
Explanation:
A digit cannot be placed at the start of a variable name, but it can be used after the first character has been placed
Answer:
cloud has the On demand and ubiquitous access characteristics
Explanation:
The specific characteristics of cloud that would be helpful for his problem to be addressed is the fact that cloud offers on demand usage and ubiquitous access.
What is meant by on demand access is that the cloud customer can pay for cloud services and use them whenever they are needed. As long as the cloud service is authorized.
By Ubiquitous access it means that the cloud customer has reliable access without the presence of any form of disturbances or issues and it can be accessed from anywhere. Different range of devices are supported on the cloud platform and with the presence of internet lots of services can be accessed.
Based on the issues being faced by customers, this characteristics of cloud will be useful to address the problems.
Answer:
In Python:
cprice= int(input("Current price: "))
lmonth= int(input("Last month's price: "))
print("This house is $"+str(cprice))
print("The change is $"+str(cprice-lmonth)+" since last month")
print("The current mortage $"+str((cprice * 0.051) / 12)+" since last month")
Explanation:
Get current price
cprice= int(input("Current price: "))
Get last month's price
lmonth= int(input("Last month's price: "))
Print the current price
print("This house is $"+str(cprice))
Print the change
print("The change is $"+str(cprice-lmonth)+" since last month")
Print the mortgage
print("The current mortage $"+str((cprice * 0.051) / 12)+" since last month")
Answer:
See explaination
Explanation:
Given a partial grammar which represents the specification for C++ style variable declaration. In this range a - z indicates terminals that represents the variable names.
'S' is the start symbol of the
non-terminal.
Hence, given,
S= TV
V= CX
Please kindly refer to attachment for further instructions and complete step by step solution.