blob: 7712c8105ca6d66d76e899554f79dc00ca7f0323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clear;
clc;
printf("\t\t\tProblem Number 2.2\n\n\n");
// Chapter 2: Work, Energy, and Heat
// Problem 2.2 (page no. 62)
// Solution
//Given
k=100; // Unit:lbf/in. //k=spring constant
l=2; //Unit:inch //l= length of compression of string
work=(1/2)*k*l^2; //force-displacement relation //Unit:in*lbf
printf("Workdone is %f inch*lbf",work);
|