Programming with Numbers and Strings 2

Total Page:16

File Type:pdf, Size:1020Kb

Programming with Numbers and Strings 2 ,,. 26 Chapter 1 Introduction CHAPTER I � 2 4. In secondary storage, typically a hard disk. 21. Is the number of minutes at most 300? I 5. The central processing unit. a. If so, the answer is $29.95 x 1.125 = $33.70. PROGRAMMING 6. (1) It would be very tedious to do so. b. If not, (2) Programs that are written for one CPU are 1. Compute the difference: (number of WITH NUMBERS not portable to a different CPU type. minutes)- 300. 7. Ease of use and portability. 2. Multiply that difference by 0.45. 8. The answer varies among systems. A typical 3. Add $29.95. AND STRINGS answer might be /home/dave/csl/hel lo/hello. py 4. Multiply the total by 1.125. That is the or c:\Users\Dave\Workspace\hello\hello. py answer. 9. You back up your files and folders. 22. No. The step If it is more attractive than the "best © samxmeg/iStockphoto. 1 O. Change World to your name (here, Dave): so far" is not executable because there is no objective way f deciding which of two photos print("Hello, Dave!") ? is more attractive. To define and use variables and constants 11. print("H") 23. Pick the first photo and call it "the most expensive so far". print("e") To understand the properties and limitations of integers and floating-point numbers print("l ") For each photo in the sequence print("l ") If it is more expensive than "the most expensive so far" To appreciate the importance of comments and good code layout print("o") Discard "the most expensive so far". Call this photo "the most expensive so far". To write arithmetic expressions and assignment statements I 12. No. The interpreter would look for an The photo called "the most expensive so far" is the most To create programs that read and process inputs, and display the results item whose name is He11 o. You need to expensive photo in the sequence. enclose He11 o in quotation marks: To learn how to use Python strings print("Hello") 24. The first black marble that is preceded by a white one is marked in blue: To create simple graphics programs using basic shapes and text 13. My lucky numbers are 17 29 oeo•• 14. Hello Switching the two yields f CHAPTER CONTENTS a blank line World 2.1 VARIABLES 28 eoo•• 2.4 STRINGS 46 1 5. This is a compile-time error at the point of the The next black marble to be switched is T: Syntax 2. Assignment 29 Special Topic 2.4: Character Values 51 ! symbol. eoo•• Common Error2. T: Using Undefined Special Topic 2.5: Escape Sequences 52 16. This is a compile-time error at the point of the yielding Variables 34 Computing & Society 2. T: International Alphabets { symbol. •o•o• Programming Tip2. T: Choose Descriptive and Unicode 52 17. This is a compile-time error. The interpreter Variable Names 34 The next steps are 2.5 INPUT AND OUTPUT 53 will either complain of an indentation error or Programming Tip2.2: Do Not Use Syntax 2.3: a syntax error because plain sentences cannot eeoo• Magic Numbers 35 String Format Operator 55 Programming Tip 2.4: Don't Wait to Convert 58 be used as instructions. ••o•o 2.2 ARITHMETIC 3 5 How To 2. T: Writing Simple Programs 58 18. It is a run-time error. After all, the program •••oo Syntax 2.2: had been compiled in order for you to run it. Calling Functions 38 Worked Example2.2: Computing the Cost Now the sequence is sorted. Common Error2.2: Roundoff Errors 41 of Stamps 61 19. When a program has compile-time errors, the 2 5. The sequence doesn't terminate. Consider the Common Error2.3: Unbalanced Parentheses 41 Computing & Society 2.2: The Pentium Floating· interpreter stops translating the instructions input oeoeo. The first two marbles keep Programming Tip2.3: and does not execute the program. Use Spaces in Point Bug 63 getting switched. Expressions 42 20. 4 years: 2.6 GRAPHICS: SIMPLE DRAWINGS 63 Special Topic 2. T: Other Ways to Import How To 2.2: 0 10,000 Modules 42 Graphics: Drawing Graphical 1 12,000 Special Topic 2.2: Combining Assignment and Shapes 70 Toolbox 2. T: Symbolic Processing with 2 14,400 Arithmetic 42 Special Topic 2.3: SymPy 73 3 17,280 Line Joining 43 4 20,736 2.3 PROBLEM SOLVING: FIRST DO IT BY HAND 43 Worked Example 2. T: Computing Travel Time 45 • Numbers and character strings (such as the ones on this 2.1 Variables 29 display board) are important data types in any Python program. In this chapter, you will learn how to work with Syntax 2. 1 Assignment numbers and text, and how to write simp le programs that perform useful tasks with them. Syntax variableName = value © samxmeg/iStockphoto. A variableis defined total = 0 ./1 Namesof previously the first timeit /" / definedvariables is assigneda value. t otal= bottles * BOTTLE_VOLUME Theexpression that replacesthe previousvalue When you r program carries out computations, you will want to store values so th at you can use them later. In a Python program, you use variables to store values. In this section, you will learn how to define and use variables. total = total+ cans* CAN_VOLUME To illustr ate the use of variables , we will develop a program that solves the Thesame name ~ following probl em. Soft drinks are sold canoccur on both sides. Namesof previously in cans and bottles. A store offers a six­ See Figure2. definedvariables pack of 12-ounce cans for the same price as a two-liter bottle. Which shou ld yo u buy? (Twelve fluid ounces equal approx­ imately 0.355 liters.) You use the assignment statement to place a value into a variable. Here 1s an In our program, we will define vari­ An assi gnment sta tem ent stores a example ables for the number of cans per pack value in a variable. and for the volume of each can. Then we cansPerPack = 6 C, ~ will compute the volume of a six-pack in What contains more soda? A six -pack of The left-hand side of an assignment statement consists of a variable. The right-hand liters and print out the answer. I 2-ounce cans or a t wo-liter bottle? side is an expression that has a value. That value is stored in the variable. The first tim e a variable is assigned a value, th e variable is created and initialized with that value. Aft er a variabl e has been defined, it can be used in other statements. For example, 2 .1 .1 Defining Variables A variab le is created the first time it is print(can s PerPa ck) ass igned a value . A variable is a storage location in a compute r program . Each variable has a name and cansPerPack . A va riable is a will print the value stored in the variable storage location holds a value. Assigning a va lue If an existing variable is assigned a new value, th at value repla ces th e previous con­ with a name. A variable is similar to a parking space in a parkin g garage. The parking space has to an existing tents of the variab le. For examp le, an identifier (such as "J 053"), and it can hold a vehicle. A variable has a name (such as variab le replaces the previo usly cansPerPack = 8 ~ cansPe rPack ), and it can hold a value (such as 6). sto red value. changes the value conta in ed in variable cansPerPack from 6 to 8. Figure 1 illustrates the two assignment statements used above . The assign ment Th e = sign does not mean that th e left-hand side is equal to th e right -h and side. ope rator= does not Instead, the valu e on the right-h and side is placed into the varia ble on the left. denot e mathematical Do not confus e this assignment operator with the = used in algebra to denot e equa lity. equalit y. Assignment is an instruction to do something-namely, place a value into a variable. 0 Because this is the first assignme nt, f) The variab le is initializ ed. The second assignment overwrites the variab le is created. the stored value. cansPerPack cansPerPack = 6 cansPerPack = 8 Like a variable in a comp uter program, a parking space has an identifie r and a contents. Figure 1 Executing Two Assignm ent s 28 30 Chapter 2 Programming with Numbers and Strings 2 . 1 Variable s 31 h1I iI Figure 2 0 Compute rhe value of rhe rigbr-band side I Executing the Assignment Table 1 Number Literals in Pytho n can s PerPack = cansPerPack + 2 ca nsPerPack = I Number Type Comment I ! can s PerP a ck + 2 6 int An integer bas no fractional part . I ~ -6 int 10 Integer s can be negative. 0 int Zero is an integer . f) Store the value in rhe variable ) 0.5 fl oat A number with a fractional part has type fl oat . ca ns Pe rPack = 1~ 1. 0 float An integer with a fractional part .0 has type float . l EG fl oat A numbe r in exponential notation: 1 x 106 or 1000000. Numbers in exponential notation always have type float. 2.96E-2 float Negative exponent: 2.96 x 10-2 = 2.96 I 100 = 0.0296 For exampl e, in Python, it is perf ectly legal to w rite (S)100,000 Error: Do no t use a comma as a decimal separator.
Recommended publications
  • Configuring UNIX-Specific Settings: Creating Symbolic Links : Snap
    Configuring UNIX-specific settings: Creating symbolic links Snap Creator Framework NetApp September 23, 2021 This PDF was generated from https://docs.netapp.com/us-en/snap-creator- framework/installation/task_creating_symbolic_links_for_domino_plug_in_on_linux_and_solaris_hosts.ht ml on September 23, 2021. Always check docs.netapp.com for the latest. Table of Contents Configuring UNIX-specific settings: Creating symbolic links . 1 Creating symbolic links for the Domino plug-in on Linux and Solaris hosts. 1 Creating symbolic links for the Domino plug-in on AIX hosts. 2 Configuring UNIX-specific settings: Creating symbolic links If you are going to install the Snap Creator Agent on a UNIX operating system (AIX, Linux, and Solaris), for the IBM Domino plug-in to work properly, three symbolic links (symlinks) must be created to link to Domino’s shared object files. Installation procedures vary slightly depending on the operating system. Refer to the appropriate procedure for your operating system. Domino does not support the HP-UX operating system. Creating symbolic links for the Domino plug-in on Linux and Solaris hosts You need to perform this procedure if you want to create symbolic links for the Domino plug-in on Linux and Solaris hosts. You should not copy and paste commands directly from this document; errors (such as incorrectly transferred characters caused by line breaks and hard returns) might result. Copy and paste the commands into a text editor, verify the commands, and then enter them in the CLI console. The paths provided in the following steps refer to the 32-bit systems; 64-bit systems must create simlinks to /usr/lib64 instead of /usr/lib.
    [Show full text]
  • Copy on Write Based File Systems Performance Analysis and Implementation
    Copy On Write Based File Systems Performance Analysis And Implementation Sakis Kasampalis Kongens Lyngby 2010 IMM-MSC-2010-63 Technical University of Denmark Department Of Informatics Building 321, DK-2800 Kongens Lyngby, Denmark Phone +45 45253351, Fax +45 45882673 [email protected] www.imm.dtu.dk Abstract In this work I am focusing on Copy On Write based file systems. Copy On Write is used on modern file systems for providing (1) metadata and data consistency using transactional semantics, (2) cheap and instant backups using snapshots and clones. This thesis is divided into two main parts. The first part focuses on the design and performance of Copy On Write based file systems. Recent efforts aiming at creating a Copy On Write based file system are ZFS, Btrfs, ext3cow, Hammer, and LLFS. My work focuses only on ZFS and Btrfs, since they support the most advanced features. The main goals of ZFS and Btrfs are to offer a scalable, fault tolerant, and easy to administrate file system. I evaluate the performance and scalability of ZFS and Btrfs. The evaluation includes studying their design and testing their performance and scalability against a set of recommended file system benchmarks. Most computers are already based on multi-core and multiple processor architec- tures. Because of that, the need for using concurrent programming models has increased. Transactions can be very helpful for supporting concurrent program- ming models, which ensure that system updates are consistent. Unfortunately, the majority of operating systems and file systems either do not support trans- actions at all, or they simply do not expose them to the users.
    [Show full text]
  • Preview Objective-C Tutorial (PDF Version)
    Objective-C Objective-C About the Tutorial Objective-C is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language. This is the main programming language used by Apple for the OS X and iOS operating systems and their respective APIs, Cocoa and Cocoa Touch. This reference will take you through simple and practical approach while learning Objective-C Programming language. Audience This reference has been prepared for the beginners to help them understand basic to advanced concepts related to Objective-C Programming languages. Prerequisites Before you start doing practice with various types of examples given in this reference, I'm making an assumption that you are already aware about what is a computer program, and what is a computer programming language? Copyright & Disclaimer © Copyright 2015 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book can retain a copy for future reference but commercial use of this data is not allowed. Distribution or republishing any content or a part of the content of this e-book in any manner is also not allowed without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at [email protected] ii Objective-C Table of Contents About the Tutorial ..................................................................................................................................
    [Show full text]
  • Keyboard Shortcuts for Windows Computers
    AbilityNet Factsheet – May 2019 Keyboard Shortcuts for Windows computers This factsheet highlights some of the actions you can carry out quickly on your computer by using key combinations rather than using the mouse to navigate menus and options. These key combinations are referred to as shortcuts as they are often a much quicker way of carrying out tasks. They can also be particularly useful for repetitive actions. AbilityNet Factsheet: Keyboard Shortcuts Page 1 of 12 www.abilitynet.org.uk/factsheets May 2019 Contents 1. What are shortcuts ............................................................................................. 3 A note on Apple (Mac) computers ........................................................................... 3 Conventions ............................................................................................................. 3 Navigating Within Windows Using the Keyboard ..................................................... 4 Reference Chart ...................................................................................................... 7 Autocorrect as a shortcut ......................................................................................... 9 2. How can AbilityNet help? ................................................................................. 10 Free advice and home visits .................................................................................. 10 My Computer My Way ........................................................................................... 10 Workplace
    [Show full text]
  • The Linux Kernel Module Programming Guide
    The Linux Kernel Module Programming Guide Peter Jay Salzman Michael Burian Ori Pomerantz Copyright © 2001 Peter Jay Salzman 2007−05−18 ver 2.6.4 The Linux Kernel Module Programming Guide is a free book; you may reproduce and/or modify it under the terms of the Open Software License, version 1.1. You can obtain a copy of this license at http://opensource.org/licenses/osl.php. This book is distributed in the hope it will be useful, but without any warranty, without even the implied warranty of merchantability or fitness for a particular purpose. The author encourages wide distribution of this book for personal or commercial use, provided the above copyright notice remains intact and the method adheres to the provisions of the Open Software License. In summary, you may copy and distribute this book free of charge or for a profit. No explicit permission is required from the author for reproduction of this book in any medium, physical or electronic. Derivative works and translations of this document must be placed under the Open Software License, and the original copyright notice must remain intact. If you have contributed new material to this book, you must make the material and source code available for your revisions. Please make revisions and updates available directly to the document maintainer, Peter Jay Salzman <[email protected]>. This will allow for the merging of updates and provide consistent revisions to the Linux community. If you publish or distribute this book commercially, donations, royalties, and/or printed copies are greatly appreciated by the author and the Linux Documentation Project (LDP).
    [Show full text]
  • Use of Seek When Writing Or Reading Binary Files
    Title stata.com file — Read and write text and binary files Description Syntax Options Remarks and examples Stored results Reference Also see Description file is a programmer’s command and should not be confused with import delimited (see [D] import delimited), infile (see[ D] infile (free format) or[ D] infile (fixed format)), and infix (see[ D] infix (fixed format)), which are the usual ways that data are brought into Stata. file allows programmers to read and write both text and binary files, so file could be used to write a program to input data in some complicated situation, but that would be an arduous undertaking. Files are referred to by a file handle. When you open a file, you specify the file handle that you want to use; for example, in . file open myfile using example.txt, write myfile is the file handle for the file named example.txt. From that point on, you refer to the file by its handle. Thus . file write myfile "this is a test" _n would write the line “this is a test” (without the quotes) followed by a new line into the file, and . file close myfile would then close the file. You may have multiple files open at the same time, and you may access them in any order. 1 2 file — Read and write text and binary files Syntax Open file file open handle using filename , read j write j read write text j binary replace j append all Read file file read handle specs Write to file file write handle specs Change current location in file file seek handle query j tof j eof j # Set byte order of binary file file set handle byteorder hilo j lohi j 1 j 2 Close
    [Show full text]
  • File Storage Techniques in Labview
    File Storage Techniques in LabVIEW Starting with a set of data as if it were generated by a daq card reading two channels and 10 samples per channel, we end up with the following array: Note that the first radix is the channel increment, and the second radix is the sample number. We will use this data set for all the following examples. The first option is to send it directly to a spreadsheet file. spreadsheet save of 2D data.png The data is wired to the 2D array input and all the defaults are taken. This will ask for a file name when the program block is run, and create a file with data values, separated by tab characters, as follows: 1.000 2.000 3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 10.000 20.000 30.000 40.000 50.000 60.000 70.000 80.000 90.000 100.000 Note that each value is in the format x.yyy, with the y's being zeros. The default format for the write to spreadsheet VI is "%.3f" which will generate a floating point number with 3 decimal places. If a number with higher decimal places is entered in the array, it would be truncated to three. Since the data file is created in row format, and what you really need if you are going to import it into excel, is column format. There are two ways to resolve this, the first is to set the transpose bit on the write function, and the second, is to add an array transpose, located in the array pallet.
    [Show full text]
  • Strings in C++
    Programming Abstractions C S 1 0 6 X Cynthia Lee Today’s Topics Introducing C++ from the Java Programmer’s Perspective . Absolute value example, continued › C++ strings and streams ADTs: Abstract Data Types . Introduction: What are ADTs? . Queen safety example › Grid data structure › Passing objects by reference • const reference parameters › Loop over “neighbors” in a grid Strings in C++ STRING LITERAL VS STRING CLASS CONCATENATION STRING CLASS METHODS 4 Using cout and strings int main(){ int n = absoluteValue(-5); string s = "|-5|"; s += " = "; • This prints |-5| = 5 cout << s << n << endl; • The + operator return 0; concatenates strings, } and += works in the way int absoluteValue(int n) { you’d expect. if (n<0){ n = -n; } return n; } 5 Using cout and strings int main(){ int n = absoluteValue(-5); But SURPRISE!…this one string s = "|-5|" + " = "; doesn’t work. cout << s << n << endl; return 0; } int absoluteValue(int n) { if (n<0){ n = -n; } return n; } C++ string objects and string literals . In this class, we will interact with two types of strings: › String literals are just hard-coded string values: • "hello!" "1234" "#nailedit" • They have no methods that do things for us • Think of them like integer literals: you can’t do "4.add(5);" //no › String objects are objects with lots of helpful methods and operators: • string s; • string piece = s.substr(0,3); • s.append(t); //or, equivalently: s+= t; String object member functions (3.2) Member function name Description s.append(str) add text to the end of a string s.compare(str) return
    [Show full text]
  • The NTFS File System
    The NTFS File System OVERVIEW: This lab is part of a series of lab exercises intended to support courseware for Forensics training. The development of this document is funded by the Department of Labor (DOL) Trade Adjustment Assistance Community College and Career Training (TAACCCT) Grant No. TC-22525-11-60-A-48. In this lab, students will enumerate hosts on the network using various tools. This lab includes the following tasks: 1 – Examining the NTFS File System 2 – Using a HEX Editor to explore an NTFS Partition 3 – Verifying and viewing the image details 4 – Analyzing an NTFS Partition With Autopsy Key TermDescription The acronym NTFS stands for New Technology File System. The NTFS File System was originally introduced with the Windows NT. NTFS is a journaling file system which means it keeps a log of changes being written to the disk. If a computer is shutdown improperly, it will have a better NTFS chance of recovery if it has a journaling file system. Files and folder access can be restricted with the security feature of NTFS. Starting with Windows 2000, Microsoft included the Encrypted File System, or EFS, as an NTFS feature. EFS allows users to encrypt files to protect against unauthorized access. A Feature of the NTFS File system that allows you to encrypt files and folders. The feature EFS became available on the NTFS File system starting with Windows 2000, and is still available today on Windows 10 and Server 2016. An Alternate Data Stream, or ADS, is a feature of the NTFS file system that allowed compatibility ADS with older versions of the Mac OS.
    [Show full text]
  • Mac Keyboard Shortcuts Cut, Copy, Paste, and Other Common Shortcuts
    Mac keyboard shortcuts By pressing a combination of keys, you can do things that normally need a mouse, trackpad, or other input device. To use a keyboard shortcut, hold down one or more modifier keys while pressing the last key of the shortcut. For example, to use the shortcut Command-C (copy), hold down Command, press C, then release both keys. Mac menus and keyboards often use symbols for certain keys, including the modifier keys: Command ⌘ Option ⌥ Caps Lock ⇪ Shift ⇧ Control ⌃ Fn If you're using a keyboard made for Windows PCs, use the Alt key instead of Option, and the Windows logo key instead of Command. Some Mac keyboards and shortcuts use special keys in the top row, which include icons for volume, display brightness, and other functions. Press the icon key to perform that function, or combine it with the Fn key to use it as an F1, F2, F3, or other standard function key. To learn more shortcuts, check the menus of the app you're using. Every app can have its own shortcuts, and shortcuts that work in one app may not work in another. Cut, copy, paste, and other common shortcuts Shortcut Description Command-X Cut: Remove the selected item and copy it to the Clipboard. Command-C Copy the selected item to the Clipboard. This also works for files in the Finder. Command-V Paste the contents of the Clipboard into the current document or app. This also works for files in the Finder. Command-Z Undo the previous command. You can then press Command-Shift-Z to Redo, reversing the undo command.
    [Show full text]
  • MULTIPLE ACCUDRAW SHORTCUT FILES by Seth M
    MULTIPLE ACCUDRAW SHORTCUT FILES By Seth M. Cohen, ProSoft NET Is your MicroStation desktop cluttered with toolframes & toolbars? Are you sacrificing precious desktop real estate because “YOU GOTTA HAVE THAT ICON”? If so, then creating multiple AccuDraw key-in shortcuts will let you reclaim your desktop! What is AccuDraw? According to the MicroStation/J help, “AccuDraw is a drafting aid that evaluates such parameters as your current pointer location, the previously entered data point, the last coordinate directive, the current tool's needs, and any directive you have entered via either keyboard shortcuts or AccuDraw options. AccuDraw then generates the appropriate precision coordinates and applies them to the active tool”. The topic that we will be discussing is AccuDraw shortcuts. ACCUDRAW SHORTCUTS The functionality of AccuDraw shortcuts is to run MicroStation key-in commands. This is accomplished by the user creating a shortcut to a desired key-in by associating two alphanumeric characters to that key-in. Here is an example of how to create an AccuDraw shortcut, and how they can make drafting more efficient, and increase your MicroStation desktop. Wouldn’t it be nice if…….you could turn off the display of, let’s say, 150 reference files without having to: 1) Open the Reference File Dialog box 2) Select all the reference files 3) Click the display toggle on the Reference File Dialog to off 4) Click the Update All icon to refresh the view Well with AccuDraw, you could set two shortcuts to toggle all the reference files on and off. Here’s how: First, we will define two shortcuts that will act like switches.
    [Show full text]
  • Powershell Integration with Vmware View 5.0
    PowerShell Integration with VMware® View™ 5.0 TECHNICAL WHITE PAPER PowerShell Integration with VMware View 5.0 Table of Contents Introduction . 3 VMware View. 3 Windows PowerShell . 3 Architecture . 4 Cmdlet dll. 4 Communication with Broker . 4 VMware View PowerCLI Integration . 5 VMware View PowerCLI Prerequisites . 5 Using VMware View PowerCLI . 5 VMware View PowerCLI cmdlets . 6 vSphere PowerCLI Integration . 7 Examples of VMware View PowerCLI and VMware vSphere PowerCLI Integration . 7 Passing VMs from Get-VM to VMware View PowerCLI cmdlets . 7 Registering a vCenter Server . .. 7 Using Other VMware vSphere Objects . 7 Advanced Usage . 7 Integrating VMware View PowerCLI into Your Own Scripts . 8 Scheduling PowerShell Scripts . 8 Workflow with VMware View PowerCLI and VMware vSphere PowerCLI . 9 Sample Scripts . 10 Add or Remove Datastores in Automatic Pools . 10 Add or Remove Virtual Machines . 11 Inventory Path Manipulation . 15 Poll Pool Usage . 16 Basic Troubleshooting . 18 About the Authors . 18 TECHNICAL WHITE PAPER / 2 PowerShell Integration with VMware View 5.0 Introduction VMware View VMware® View™ is a best-in-class enterprise desktop virtualization platform. VMware View separates the personal desktop environment from the physical system by moving desktops to a datacenter, where users can access them using a client-server computing model. VMware View delivers a rich set of features required for any enterprise deployment by providing a robust platform for hosting virtual desktops from VMware vSphere™. Windows PowerShell Windows PowerShell is Microsoft’s command line shell and scripting language. PowerShell is built on the Microsoft .NET Framework and helps in system administration. By providing full access to COM (Component Object Model) and WMI (Windows Management Instrumentation), PowerShell enables administrators to perform administrative tasks on both local and remote Windows systems.
    [Show full text]