UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit b116c0e5 authored by David Ellen's avatar David Ellen
Browse files

Update arrays_and_math.adoc added code sample needed to generate the file.txt...

Update arrays_and_math.adoc added code sample needed to generate the file.txt file with data for processing in the activity
parent 80cf0ad3
1 merge request!5Ps move activities to public for easier access by students and inclusion into private Field Guides
Pipeline #14546 passed with stage
in 10 seconds
===== Activity: Array Indexing and Math (1340-1410) Review to 1440
* Copy C:\file.txt to your Desktop
* Write a PowerShell scrip to do the following:
* Create file.txt on your desktop by running the following PS script:
[source,]
----
#This code will generate a file with the data for the exercise
[int]$i = $Null
do
{
$i ++
Add-Content C:\Users\$env:UserName\Desktop\file.txt $i
}
while ($i -lt 1000)
----
* Write a PowerShell script to do the following:
** Read file.txt on your desktop
** Extract the 135th(x), the 227th(y), the 578th(z) and the 892nd(n) numbers
** Add x and y and output the result
......
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