Write a Powershell script program (evenodd) which adds the odd numbers in odd lines and adds the even numbers in even lines. Write the result on the standard output! In each lines there are at least 2 numbers. The filename is given by a parameter.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

Write a Powershell script program (evenodd) which adds the odd numbers in odd lines and adds the even numbers in even lines. Write the result on the standard output! In each lines there are at least 2 numbers. The filename is given by a parameter.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

On Powershell language please. Not shell script can you guys even read? I asked this question like 3 times specifying that it has to be done on POWERSHELL. But i always get it in linux shell script. Is there any way i get my question refunded? Cause this isnt what i asked for at all. Thank you.

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT