Before attending this lab you should have read and be famili

Before attending this lab, you should have read and be familiar with Chapter 5 section 5.1 of Delores Etter\'s Engineering Problem Solving with C. Write a statement that calculates the percent error between a variable containing an average measured temperature and a defined symbolic constant containing the boiling point of an unspecified substance. Percent Error = |A -B/B| * 100% (B is the known constant)

Solution

#include<stdio.h>

main()

{

int a,b;

float per_error;

printf(\"enter average measured temperature\");

scanf(\"%d\",&a);

printf(\"enter boiling point of unknown substance\");

scanf(\"%d\",&b);

per_error=mod((a-b)/b)*100;

printf(\"percent Error=\"%f\",per_error);

}

 Before attending this lab, you should have read and be familiar with Chapter 5 section 5.1 of Delores Etter\'s Engineering Problem Solving with C. Write a stat

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site