Write a program forcec that asks the user for two electric


Write a program force.c that asks the user for two electric charges in microCoulomb (µC) and their distance in centimeters (cm), and calculates the electric force between them in Newtons (N) using Coulomb's law:F = k ·q1 ∗ q2/r ∗ r,where k = 89.8755 N ·(cm)2/(µC)2. Declare all variables as double and print the answer to a 4-digitprecision.beginner in programming. not sure how to create a source code that stores the user input for the calculation. can i do it with just if statements or do i create a string; and if so how?

 

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program forcec that asks the user for two electric
Reference No:- TGS01136479

Expected delivery within 24 Hours