![sparkyjones02](/avatars/20963.jpg)
sparkyjones02
21.03.2020 •
Computers and Technology
Create a script that prompts for the user to input a directory and then prints out the number of sub-directories in the given directory, as well as the number of files (use the numbers only for the directory given, you do NOT need to do this recursively for all sub-directories).
Solved
Show answers
More tips
Answers on questions: Computers and Technology
- B Biology Which structure is continuous with the very delicate corneal epithelium that covers the surface of the cornea? which structure is continuous with the very delicate...
- S Social Studies You find a reduviidae specimen that prefers to inhabit human homes. these are described as...
- C Chemistry Write a balanced equation for the reaction between aqueous strontium chloride and aqueous lithium phosphate to form solid strontium phosphate and aqueous lithium...
- B Business With advertising on twitter an advertiser can target individuals who used a specific word in their tweets, such as vacation or jeans. promoted accounts promoted tweets...
- B Biology You work for the drug company novartis and are developing a drug to treat prader-willi syndrome. which region of the brain would be best for your drug to target?...
- H History Why does lippmann advise the united states to concentrate its efforts on europe, not the rest of the world?...
- S Social Studies Why were nonsense syllables used in the earliest studies of forgetting? so that the stimulus materials were simple enough that even children could read and remember...
- S Social Studies You are conducting a study on the organization of information in long-term memory. in the study, participants are told to say the first word that comes to their mind...
- C Chemistry Determine the number of electrons transferred in the balanced chemical equation. h2o...
- C Chemistry Asample of c3h8o that contains 200 molecules contains carbon atoms....
Ответ:
Below is the required code:
Explanation:
Python Code
import os
import bin
dir = input("Please specify the location to the directory")
list = os.walk(dir)
a = length(list[1])
b = length(list[2])
print "Files: %n , Sub-dirs : %n" % (b,a)
decision = _(" Do you want to continue? (y/n) "))
if(decision):
cls
else :
exit()
Ответ:
Has a central powerful computer
Explanation:
When operating a client - server network, a certain access mediun is created such that clients can access information, materials and services from a central computer, this poses great advantage in the area of security and control. Clients would be able to gain access from this central computer using either a local or wide area network. The accessibility provided through this powerful, central computer allows the the network to monitor what actions are being performed and make appropriate restrictions on the network, hence, preventing the invasion of malware and viruses. Hence, the central control is a great feature of a client - server network.