»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 05-01-2004, 04:08 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2003
Posts: 15
ruthless is on a distinguished road
Talk Assembler and C Programming Assignment

Hey,

I have this programming assingment where I have to write a program in C and Assembler. This is for my grade 12 computer engineering class. The program I have to write is "Find the y=mx+b equation that best approximates the line formed by eight points. (x and y are 8-bit values)". I asked the teacher how the program is supposed to work and he said pick random points (make sure they are all above the line of slope of 1) so you do not have to deal with fraction numbers. He said then pick any two points and find the slope between them. Do this for a different set of points a couple of times and u will have different number of slopes. Then what u do is average all the slopes and find the equation of the Trend Line. So basically we have random points on a graph and then we try to find the equation of the trend line. Remember there is no graphing involved and there is no user input he said just store your points in a variable or array. Please help me in writing this porgram. The Assembler part is more important than the C part so i would really appreciate it if some helps me with Assembler.

Thanx

Peace Out

ruthless is offline   Reply With Quote
Reply




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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 07:24 PM.