Formulae to calculate their center point

Assignment Help Programming Languages
Reference no: EM13762404

(1) Given n points in the 3D space (xo, yo, zo), (x1, y1, z1), (xn-1,yn-1, zn-i), we use the following formulae to calculate their center point (xc, yc, zc)

xc=(x0+x1 + xn-1)/n
ye= (y0+ y1 + ••• Yn-1)/ n
zc= (Zo + Z1+ ••• Zn-1)/ n

Create an assembly program to implement the above formulae. The data segment of your program should look like the following.


.data

n:      .word 7

x:      .word 30, 12, 45, 34, 40, 14, 30

y:     .word 32, 10, 39, 89, 24, 12, 67

z:      .word 42, 20, 76, 23, 23, 65, 15

xc:    .space 4

yc:    .space 4

zc:    .space 4

 

# This example has 7 points

# xo, xi, • • • Xn-I

# y0, y1, • • • yn-1

# z0, zi, • • • zn-1

# a word result

# a word result

# a word result

xc, yc, and zc are all integers. Ignore the remainders if there are any.

Please name your program xxxx.asm, where xxxx is the last four digits of your ID and e¬mail xxxx.asm to me. In your e-mail, just write Question 1 in the title and attach xxxx.asm to it.

Also in order to help comment on your program, please submit a hardcopy of your source code for this question. When the marker checks it, s/he will make comments on your hardcopy

Reference no: EM13762404

Questions Cloud

Importing and analyzing data for johnson equipment : Importing and Analyzing Data for Johnson Equipment-Johnson Equipment, the medium-sized laboratory equipment manufacturing company where you work, is in the process of acquiring Sloan Manufacturing, a smaller equipment /manufacturer in the same indu..
Viability of upgrading to windows : Provide a detailed upgrade plan for the organization, including the sales staff.
Shock therapy and rapid privatization in russia : Why were the IMF and U.S. Treasury stubbornly committed to shock therapy and rapid privatization in Russia? What was their political objective? What "imminent danger" worried them?
Basic components of organization : The two basic components of organization are selection and arrangement.
Formulae to calculate their center point : Given n points in the 3D space (xo, yo, zo), (x1, y1, z1), (xn-1,yn-1, zn-i), we use the following formulae to calculate their center point (xc, yc, zc)
Health care industry : What role do you plan to have in the industry?
Why does socrates believe that the soul lives beyond death : In what sense does Socrates think that philosophy is a preparation for death? What are his arguments for making that claim? Why does Socrates believe that the soul lives beyond death?
Sources of opinion testimony : You must be sure that the sources of opinion testimony are trusted by your listeners because opinion testimony cannot be verified, it must simply be accepted.
What have been the results of the second experiment : Describe the failures of the first experiment. What were its outcomes - What have been the results of the second experiment, the transition of Russia and Eastern and Southeastern Europe to market-based economies?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd