Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 10 Weeks Ago, 1 Day Ago |
Questions Answered: | 4870 |
Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
I need help with this by midnight....I have been trying to figure it out since Wednesday and no luck
UNIT 2 LAB 3: CREATING SELECTION STATEMENTSOVERVIEWMost scripts contain at least one selection statement. These statements are often used todetermine whether certain lines of code are executed; they are also used to choose betweenmultiple blocks of code to execute. In this lab, you will practice constructing selectionstatements using the if, elseif, and else statements and the switch statement.OBJECTIVES5.1.Use input and output commands.5.3.Create selection statements.5.4.Initialize data structures.5.8.Use arithmetic, string, and logical operatorsPREREQUISITESLab - Creating a Basic Script is completeTASKSCREATING AN INVENTORY SCRIPTIn this step, you will create an inventory script. The pseudo code for this task is shown below.Display a menu with options for creating an inventory.Prompt the user to choose an option.Execute code based on the option the user chose.At this point, we are just investigating how the logic will work and will implement the actualcode for each option we create later.CREATING A SCRIPT FROM A TEMPLATEUse the following steps to create a new script from the previously created template:1.Login to the DC-1 Virtual Machine.2.Open PowerShell ISE.3.Open the template.ps14.Rename the script Get-Inventory.ps15.In theSYNOPSISsection,changethetextto read “This is a script to inventory computersystem hardware and software”6.In theDESCRIPTIONsection,changethetextto read “This script provides a menu witha list of options for inventorying computer system hardware and software”