Question: C PROGRAMMNG LANGUAGE WRTE THS CODE PLEASE BE FAST JUST SEND CODE I DONT NEED EXPLAN. Find the inner products of a vector in three-dimensional

C PROGRAMMNG LANGUAGE WRTE THS CODE PLEASE BE FAST JUST SEND CODE I DONT NEED EXPLAN.

Find the inner products of a vector in three-dimensional space whose coordinates are entered from the keyboard with the constant vectors v1 and v2. a program that calculates and prints on the screen, and also specifies which constant vector has greater inner product you are asked to write the code. For this, a vector structure and two constant vectors are defined as follows:

struct vektor {double x, y, z

// variables that hold the vector's coordinates in three dimensions double result; // variable to hold the result of the vector's inner product with another vector } v1 = {1.0, 1.0, 0}, v2 = {-1, 0, 1}; // initial values of the x, y, z elements of the constant v1 and v2 vectors

a) takes two variables with vector structure as parameters, calculates the inner products of vectors, the result a function named ic_carpim that returns that vector after assigning it to the result element of one of them write.

b) Until the Zero Vector is entered from the keyboard (see screen output), insert the vector v1 and v2 with the vectors a main () function that calculates its products using ic_carpim and prints the results to the screen write. Note: inner product of two vectors = x1 * x2 + y1 * y2 + z1 * z2

C PROGRAMMNG LANGUAGE WRTE THS CODE PLEASE BE FAST JUST SEND CODE

JUST C PROGRAMMNG LANGUAGE

Koordinatlar klavyeden girilen boyutlu uzaydaki bir vektrn, sabit vi ve v2 vektrleri ile i arpmlarn hesaplayp ekrana yazdran, ayrca hangi sabit vektrle i arpmnn daha byk olduunu belirten bir program kodu yazmanz isteniyor. Bunun iin bir vektr yaps ve iki sabit vektr aadaki gibi tanmlanmtr: struct vektor { double x, y, z; double sonuc; } v1 = (1.0, 1.0, 0}, v2 = {-1, 0, 1); // vektorun boyuttaki koordinatlarnu tutan deikenler // vektrn baka bir vektrle i arpm sonucunu tutacak deiken // sabit vi ve v2 vektorlerinin x, y, z elemanlarnn balang deerleri yaznz. a) vektor yapsna sahip iki tane deikeni parametre olarak alan, vektrlerin i arpmlarn hesaplayan, sonucu bunlardan bir tanesinin sonuc elemanna atadktan sonra o vektr dndren ic_carpim isimli bir fonksiyon b) Klavyeden Sifir Vektr girilene kadar (ekran ktsna baknz) girilen vektrn v1 ve v2 vektrleri ile i arpmlarn ic_carpim fonksiyonunu kullanarak hesaplayan ve sonular ekrana yazdran bir main() fonksiyonu yaznz. Not: iki vektrn i arpm = x1*x2 + y1*y2 + 21*22 3-boyutlu bir vektor giriniz (programdan cikmak icine e girin): 111 Girdiginiz vektorun vi ve v2 vektorleri ile ic carpimlari: 2.ee ve 0.00 vi vektoru ile ic carpimi daha buyuktur 3-boyutlu bir vektor giriniz (programdan cikmak icin @ ee girin): -1 m 2 Girdiginiz vektorun vi ve v2 vektorleri ile ic carpimlari: -1.00 ve 3.00 V2 vektoru ile ic carpimi daha buyuktur 3-boyutlu bir vektor giriniz (programdan cikmak icin @ girin): @@@ Process exited after 60 seconds with return value o Press any key to continue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!