RSS Forums RSS
Please support our Assembly advertiser: Programming Forums
Views: 1180 | Replies: 7
Closed Thread
Join Date: Mar 2007
Posts: 3
Reputation: jash00 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jash00 jash00 is offline Offline
Newbie Poster

urgent i have only 24 hours

  #1  
Mar 21st, 2007
hi my friends. I need your help, I have to solve these three problems ASAP. Please help me with this:

1)###########################################
For a set of numbers read into an integer array (arr1) populate another array (arr2) with A*x2 + B*x + c, where A, B, and C are integer constants and x represents value from arr1. The pseudocode: for (i = 0; i < size; i++) { x = arr1[i]; arr2[i] = A*x2 + B*x + C; } Your program should be able to input integers A, B, C and the values in arr1 from the keyboard.
2) ###############################################
Write a recursive routine for Binary Search of an element from a sorted list of N integers. You should be able to input N, the sorted list and the value to search from the keyboard. A main (driver) function should call the routine. Notes: A binary search is a technique for finding a particular value in a linear array, by "ruling out" half of the data at each step. A binary search finds the median, makes a comparison to determine whether the desired value comes before or after it, and then searches the remaining half in the same manner. The search begins by examining the value in the center of the list; because the values are sorted, it then knows whether the value occurs before or after the center value, and searches through the correct half in the same way. The pseudocode:
function search(a, value, left, right)
if right < left
return not found
mid := (left + right) / 2
if a[mid] = value
return mid
if value < a[mid]
search(a, value, left, mid-1)
else
search(a, value, mid+1, right)
3)########################################################
Write a program that prints the content of the instruction memory, in effect, disassembling the program. Start with the default program memory address of 0x00400000; read words from the memory sequentially and output the first N instructions on the console. N will be an integer read from the keyboard.
As an example, if you have:

Address Content
---------------------------------------
[0x00400000] 0x3408010a
[0x00400004] 0x3409000c
[0x00400008] 0x01195120
in the memory, the result of running your program with N = 3, would print the following to the console window:
0x3408010a
0x3409000c
0x01195120


################################################
please please i really really need you guys

Thanks
AddThis Social Bookmark Button
 
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,565
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 977
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: urgent i have only 24 hours

  #2  
Mar 21st, 2007
sorry -- we are not a software factory.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
 
Join Date: Mar 2007
Posts: 3
Reputation: jash00 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jash00 jash00 is offline Offline
Newbie Poster

Re: urgent i have only 24 hours

  #3  
Mar 21st, 2007
Come on guys I'm running out of time
Who ever solve it I'm gonna pay him
if I didn't hand it by tomorrow they gonna kick me out of the school
please any thing, it has not be perfect just any thing:rolleyes:
 
Join Date: Jan 2007
Posts: 49
Reputation: Purple Avenger is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Purple Avenger Purple Avenger is offline Offline
Light Poster

Re: urgent i have only 24 hours

  #4  
Mar 22nd, 2007
Sounds like you should be kicked out of school if you waited till the last day to start the assignment. Sympathy is a word in the dictionary.
 
Join Date: Mar 2007
Posts: 3
Reputation: jash00 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jash00 jash00 is offline Offline
Newbie Poster

Re: urgent i have only 24 hours

  #5  
Mar 22nd, 2007
Originally Posted by Purple Avenger View Post
Sounds like you should be kicked out of school if you waited till the last day to start the assignment. Sympathy is a word in the dictionary.



And sounds like you should shut the **** up if you don't have nothing usefull
 
Join Date: Jan 2007
Posts: 49
Reputation: Purple Avenger is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Purple Avenger Purple Avenger is offline Offline
Light Poster

Re: urgent i have only 24 hours

  #6  
Mar 23rd, 2007
Bite me slacker. You deserve your fate.
 
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,034
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: urgent i have only 24 hours

  #7  
Mar 23rd, 2007
Why don't you try the assignment yourself and show us what you're having a problem with, where you're stuck, or what it's not doing that you want it to do. And then we'll help you out. But it's very discouraging when people just ask us to do their assignments for them.
Dani the Computer Science Gal
 
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,565
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 40
Solved Threads: 977
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: urgent i have only 24 hours

  #8  
Mar 26th, 2007
Thread closed.
<<Freelance Programmer>> << Hobby Site>>
Signature links for sale. PM me for details
 
Closed Thread

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:56 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC