Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS502 Assignment Solution Required!!!!!!!!
#1
Plz any one can send the solution of Cs502 . Today is extended day .........
Reply
#2
Code:
[COLOR=#000000][FONT=Times New Roman][FONT=arial][FONT=Arial][SIZE=3] Question # 1 Solution[/SIZE][/FONT] [FONT=Arial][SIZE=3]y=0; //Initialize y=0[/SIZE][/FONT] [FONT=Arial][SIZE=3]x=0; //Initialize x=0[/SIZE][/FONT] [FONT=Arial][SIZE=3]for (i=n; i>0;i=i-1) // This loop will run approximately [B]n [/B]times[/SIZE][/FONT] [FONT=Arial][SIZE=3]{ y=y+1;} // The loop will run approximately [B]n [/B]times and add the value of 1 in y.[/SIZE][/FONT] [FONT=Arial][SIZE=3]for (i=1;i<=n;i=i*3) //This statement will run approximately [B]2n-1 [/B]times.[/SIZE][/FONT] [FONT=Arial][SIZE=3]{ //First loop Start[/SIZE][/FONT] [FONT=Arial][SIZE=3]for (j=1;j<=3n;++j) // In the nested loop, The variable j depends upon the value of 3n.[/SIZE][/FONT] [FONT=Arial][SIZE=3]{ //Second loop Start[/SIZE][/FONT] [FONT=Arial][SIZE=3]for(k=0;k<n; k=k+5) //In the nested loop again, The statement will run n/5 times[/SIZE][/FONT] [FONT=Arial][SIZE=3]{ //Third loop Start[/SIZE][/FONT] [FONT=Arial][SIZE=3]x=x+5; // The statement add 5 in the X variable.[/SIZE][/FONT] [FONT=Arial][SIZE=3]} //Third loop close[/SIZE][/FONT] [FONT=Arial][SIZE=3]} //Second loop close[/SIZE][/FONT] [FONT=Arial]} //First loop close[/FONT][/FONT][/FONT][/COLOR]
Reply
#3
Bundle of Thanx
Reply
#4
welcome....
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,322 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,909 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,928 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,165 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,242 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 1,967 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,664 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,801 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,701 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,799 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)