Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write an assembly program that reads two lists of floating point numbers A and B

ID: 3686489 • Letter: W

Question

Write an assembly program that reads two lists of floating point numbers A and B from users, and displays the measures given above on the simulator’s console. The program’s specifications are given below:

• Each input vector should be of size 10, i.e., N=10

• The program should use PROCEDURES to compute dot product.

Sample input vectors: A = [0.11 0.34 1.23 5.34 0.76 0.65 0.34 0.12 0.87 0.56]

B = [7.89 6.87 9.89 7.12 6.23 8.76 8.21 7.32 7.32 8.22]

The program’s output should be similar to given in the following:

The dot product of A and B = 78.45

Explanation / Answer

#include #include void main() { float x,y; float add,mul,divi,sub; printf("enter A value : 0.11 0.34 1.23 5.34 0.76 0.65 0.34 0.12 0.87 0.56"); scanf("%f",&A); printf("enter B value : 7.89 6.87 9.89 7.12 6.23 8.76 8.21 7.32 7.32 8.22"); scanf("%f",&B); double dot_product(double v[], double u[], int n) int i; for (i = 0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote