Results 1 to 5 of 5

Thread: Write an algorithm in pseudocode

  1. #1
    swingtrader is offline Junior Member
    Last Online
    11th December 2010 @ 06:42 PM
    Join Date
    10 Dec 2010
    Gender
    Male
    Posts
    3
    Threads
    1
    Credits
    970
    Thanked
    0

    Question Write an algorithm in pseudocode

    Salam,

    Kisi ko pata hain ye question kaise karna hain?
    i m student studying and need help to answer this question

    thanks in advance

    Write an algorithm in pseudocode that accepts a list of integers input by the user and finds, and displays the largest of all the POSITIVE numbers entered and the sum of those positive numbers. Any negative numbers entered should be accepted as valid input, but otherwise ignored. The user should indicate that s/he has finished entering numbers by entering a zero.

    For example the user might enter

    3 4 -9 8 -2 0

    in which case, the algorithm should report that the largest of the positive numbers entered is 8 and that the sum of the positive numbers entered is 15.

    State what tests you would carry out to verify that your pseudocode works as expected. Show your dry test runs (one per test that you have defined).


    I have tried to do it lakin mujhe kuch samaj nahi aa raha hain... can anybody help me please?

  2. #2
    Net-Rider's Avatar
    Net-Rider is offline Advance Member+
    Last Online
    18th January 2014 @ 04:34 AM
    Join Date
    09 Jun 2009
    Location
    **PAKISTAN**
    Gender
    Male
    Posts
    28,932
    Threads
    1755
    Credits
    0
    Thanked
    6986

    Default

    Move AAE to EDUCATION ......

  3. #3
    suraj goyal's Avatar
    suraj goyal is offline Senior Member
    Last Online
    14th March 2019 @ 02:28 PM
    Join Date
    05 Jul 2010
    Location
    suncity(jodhpur)
    Age
    34
    Gender
    Male
    Posts
    1,950
    Threads
    43
    Credits
    69
    Thanked
    89

    Default

    i will help you but only if u show me how much u tried about this.

  4. #4
    blackberry is offline Senior Member+
    Last Online
    20th August 2012 @ 09:52 AM
    Join Date
    03 Jan 2010
    Location
    Heaven
    Gender
    Female
    Posts
    171
    Threads
    10
    Credits
    1,085
    Thanked
    4

    Default

    hmm.. interesting
    but i will charge money for that ...lolzzzz

  5. #5
    umairqureshi_6 is offline Senior Member+
    Last Online
    6th September 2016 @ 08:24 AM
    Join Date
    20 Nov 2007
    Location
    karachIiIIi
    Age
    35
    Posts
    676
    Threads
    27
    Credits
    960
    Thanked
    6

    Default

    bhai algo asaan hia ...

    but ye apka homework hai .. kch aap try kar k yahan post karein
    phr main usko complete krdun Insha Allah

    [IMG]http://i238.***********.com/albums/ff224/umairqureshi_6/qbr.jpg[/IMG]

Similar Threads

  1. Algorithm..>!
    By Faraz abbasii in forum Educational Help
    Replies: 1
    Last Post: 12th July 2013, 12:40 PM
  2. need algorithm
    By hasib ahmed in forum Ask an Expert
    Replies: 4
    Last Post: 17th September 2011, 09:44 AM
  3. algorithm
    By hasib ahmed in forum Educational Help
    Replies: 1
    Last Post: 16th September 2011, 10:58 AM
  4. need algorithm
    By suraj goyal in forum Ask an Expert
    Replies: 3
    Last Post: 6th February 2011, 03:37 AM
  5. Need algorithm or source code....
    By suraj goyal in forum Ask an Expert
    Replies: 4
    Last Post: 18th December 2010, 09:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •