Sponsored Links

Results 1 to 4 of 4

Thread: CS502 Assignment Solution Required!!!!!!!!

  1. #1

  2. #2
    Administrator Xpert's Avatar
    Join Date
    May 2010


     Question # 1 Solution
    y=0;     //Initialize y=0
    x=0;     //Initialize x=0
    for (i=n; i>0;i=i-1)       //  This loop will run approximately n times
    { y=y+1;}                     // The loop will run approximately n times and add the value of 1 in y.
    for (i=1;i<=n;i=i*3)   //This statement will run approximately 2n-1 times.
    {           //First loop Start
    for (j=1;j<=3n;++j) // In the nested loop, The variable j depends upon the value of 3n.
    {           //Second loop Start
    for(k=0;k<n; k=k+5) //In the nested loop again, The statement will run n/5 times
    {           //Third loop Start
    x=x+5;             // The statement add 5 in the X variable.
    }           //Third loop close
    }           //Second loop close
    }           //First loop close

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Bundle of Thanx

  4. #4

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CS502 Fundamentals of Algorithms Assignment No. 04 Solution July 2014
    By vuassignments in forum Assignments & Solutions
    Replies: 3
    Last Post: 07-25-2014, 01:52 AM
  2. Replies: 4
    Last Post: 11-23-2011, 01:02 AM
  3. cs502 assignment solution required assignment no 1
    By mc100200446 in forum Get Solution In 24 Hour
    Replies: 0
    Last Post: 11-01-2011, 02:58 AM
  4. CS502 Assignment 6 Idea Solution 31 July 2010
    By viki in forum Assignments & Solutions
    Replies: 0
    Last Post: 07-31-2010, 04:24 PM
  5. CS502 Assignment 2 Solution Spring 2010 May 8
    By viki in forum Assignments & Solutions
    Replies: 0
    Last Post: 05-08-2010, 05:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft