Can someone help me creating this script in ISE?

Welcome Forums General PowerShell Q&A Can someone help me creating this script in ISE?

  • This topic has 8 replies, 5 voices, and was last updated 4 weeks ago by
    Participant
    .
Viewing 8 reply threads
  • Author
    Posts
    • #200165
      Participant
      Topics: 1
      Replies: 2
      Points: 18
      Rank: Member

      Hello, i need to create the following script for school. But i can’t. Can someone help me out?

       

      1. Create a script based on the rules below that gives the correct results when executed.

      – “Add the sum of $ a and $ b equal to $ sum” »
      – “The difference between $ a and $ b equals $ difference” »subtract
      – “The product of $ a and $ b equals $ product” »multiply
      – “The quotient of $ a and $ b equals $ quotient” »share

      !! Make sure you declare the numbers correctly!
      !! Use the correct quotes

      2. Save the script and test it several times with various numbers to check if it works correctly and without errors.

      3. Make the extension based on the previous script that the user first asks for his name, and then asks (provided with the name!) Which numbers to use. When showing the results, you again show the name that the user has entered. Also check this script extensively!

    • #200174
      Participant
      Topics: 2
      Replies: 1780
      Points: 3,735
      Helping Hand
      Rank: Community Hero

      Either you google it or you should talk about it with your teacher. If we do your homework you will not learn anything from it.

    • #200180
      Participant
      Topics: 1
      Replies: 2
      Points: 18
      Rank: Member

      I did. He says i have to find out myself. i already googled alot but i can’t figure it out

       

    • #200186
      Participant
      Topics: 5
      Replies: 11
      Points: 67
      Rank: Member

      Hi, a good point to start is divide (divide and you will win),

      Then, put it in your own words, find a good logic to work, and then you can google it easier.

      Hope it helps 😀

    • #200207
      Participant
      Topics: 2
      Replies: 1780
      Points: 3,735
      Helping Hand
      Rank: Community Hero

      I did. He says i have to find out myself. i already googled alot but i can’t figure it out

      So you may start with learning the very basics of Powershell first. A good starting point usually is this: Microsoft Channel 9 – Getting Started with Microsoft PowerShell 3.0

      It takes a little time but it gives you everything you need to start.

    • #200222
      Participant
      Topics: 2
      Replies: 1013
      Points: 2,077
      Helping Hand
      Rank: Community Hero

      Also tagging into what Olaf said, on learning, Youtube is your friend.

      Search:

      ‘Beginning PowerShell’

      ‘PowerShell ISE’

      ‘Intermediate PowerShell’

      ‘Advanced PowerShell’

      ‘learning PowerShell’

      ‘powershell math’

      ‘powershell in a month of lunches videos’

       

      • This reply was modified 1 month ago by postanote.
      • This reply was modified 1 month ago by postanote.
    • #200294
      Senior Moderator
      Topics: 3
      Replies: 117
      Points: 605
      Helping Hand
      Rank: Major Contributor

      Hello, i need to create the following script for school. But i can’t. Can someone help me out?

      You say that you can’t – why can’t you? What have you tried so far? (and also, is this your first time writing script in general?)

      We would be happy to help you, but unhappy to do the work for you (because that doesn’t actually help you).

    • #200771
      Participant
      Topics: 1
      Replies: 2
      Points: 18
      Rank: Member

      pls??? i cannot figure it out whatever i try i have been working on it the whole night

    • #200777
      Participant
      Topics: 2
      Replies: 1780
      Points: 3,735
      Helping Hand
      Rank: Community Hero

      pls??? i cannot figure it out whatever i try i have been working on it the whole night

      Did you at least watch the videos I linked in my answer above?

      So please show your code. If there’s samething to improve I’m sure here are some colleagues unable to resist to improve whatever you come up with. 😉 😀

      At least we could try to give tips where and what to read to learn to accomplish your task.

      BTW: You can never be sure not to get caught cheating! 😉

      Technet Forum : Create a script for me?

      • This reply was modified 4 weeks ago by Olaf.
Viewing 8 reply threads
  • You must be logged in to reply to this topic.