Question: (b) The electrostatic force (F) acting on a point charge (QI) as a result of the presence of a second point charge (Q2) at distance

 (b) The electrostatic force (F) acting on a point charge (QI)

(b) The electrostatic force (F) acting on a point charge (QI) as a result of the presence of a second point charge (Q2) at distance of separation (d) is given by Coulomb's Law: [Daya elektrostatik (F) menintak atas satu titik cas (Q1) hasil kehadiran titik cas kedua (Q) dalam jarak pemisahan (d) diberikan oleh hukum Coulomb:] kQ1Q2 F= d2 where the Coulomb's constant, k = 9 x 109 Nm2/C2. [dimana pemalar Coulomb, k = 9x 109 Nm/C2) Write a program in C that reads the values of first point charge (Q1), second point charge (Q2), distance of separation (d) and computes the electrostatic force (F). The program should have the functions below: [Tuliskan sebuah aturcara dalam yang membaca nilai-nilai titik cas pertama (Q1), titik cas kedua (Q2), jarak pemisahan (d) dan menghitung daya elektrostatik (F). Aturcara tersebut seharusnya mengandungi rangkap-rangkap berikut:] read_value - This function is used to read the values from the user. [read_value - Rangkap ini digunakan untuk membaca nilai-nilai daripada pengguna. calc_force - This function is used to compute the electrostatic force (F). (calc_force - Rangkap ini digunakan untuk menghitung daya elektrostatik (F).] print_force - This function is used to display the electrostatic force (F) to the user. [print_force Rangkap ini digunakan untuk memaparkan daya elektrostatik (F) kepada pengguna.) (12 Marks/ Markah) (c) Pass by value and pass by reference are the methods that can be used to pass the information from one function to other functions in C programming. Justify "pass by value is unable to modify the value of variable in the invoker function with a suitable program and estimate its output. ("Pass by value" dan "pass by reference" adalah kaedah-kaedah yang boleh digunakan untuk menghantar maklumat dari satu rangkap kepada rangkap-rangkap yang lain dalam pengaturcaraan C. Justifikasikan "pass by value tidak dapat mengubah nilai pembolehubah di dalam rangkap penyeru dengan satu aturcara yang sesuai dan anggarkan keluarannya.] (6 Marks/ Markah)

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!