UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit b0771407 authored by Nicholas Yost's avatar Nicholas Yost
Browse files

Merge branch '3-pspublic-update' into 'master'

Resolve "update student activities"

Closes #3

See merge request !9
parents 4de5e7c7 4da81c2b
1 merge request!9Resolve "update student activities"
Pipeline #24898 passed with stage
in 21 seconds
Showing
with 79 additions and 0 deletions
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
:doctype: book
:toc: auto
= ACTIVITY: Find Cmdlets
. Ensure that you have the latest copy of help by updating your help system.
. Which cmdlets deal with the viewing/manipulating of processes?
. Display a list of services installed on your local computer.
. What cmdlets are used to write or output objects or text to the screen?
. What cmdlets can be used to create, modify, list, and delete variables?
. What cmdlet can be used, other than Get-Help, to find and list other cmdlets?
. Find the cmdlet that is used to prompt the user for input.
:doctype: book
:toc: auto
:source-language: powershell
= ACTIVITY 1: Create Functions
* Write a function that returns the Julian date of the current date.
.Example
----
PS> Get-JulianDate
36
----
* Create a function that takes a number(n) as an argument and returns the square(n^2) of the number.
.Example
----
PS> Get-SquareNum 10
100
----
* Create a function that takes three (3) arguments and returns the product of the arguments.
.Example
----
PS> Get-Product 5 5 5
25
----
:doctype: book
:toc: auto
:source-language: powershell
= Function Parameters Activity
* Create a function that takes two(2) integer values, ```$a``` and ```$b```, that are the lengths of two(2) legs of a right triangle and returns the length of the hypotenuse.
[IMPORTANT]
====
Use the Pythagorean Theorem (a^2^ + b^2^ = c^2^) to find the value of the hypotenuse.
====
* Create a function that takes two(2) values, ```$a``` and ```$b```, as two(2) angles in degrees of a triangle. Return the value of the missing angle.
[IMPORTANT]
====
All angles of a triangle add up to be 180 degrees
====
* Create a function that takes the following as mandatory parameters:
** First Name
** Last Name
** Age
** Weight in pounds(lbs)
and returns the information in a hash table using the keys: first, last, age, and weight with the ```weight``` value converted to kilograms(kg) rounded to the nearest whole number
[IMPORTANT]
====
One(1) Kilogram(Kg) = 2.2 pounds(lbs)
====
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment