Task 1: Write a program, which repeatedly prompts for and reads
a value of x between 2.7 and 5.1. For each value of x, it calculates and
outputs the value of y using linear interpolation between the points (2.7,
5) and (5.1, 7.89). A value of x not in the range given,
will signal termination of the program.
Task
2:
A composite machine element consists of an elastoplastic tube with a
cylindrical core made of a different elastoplastic material. The force -
elongation curve for the composite element is given by
Here a is related to the length of the element and it is
about 1 mm.
Write a
program that calculates and displays the value of the force for a given value
of delta and a. Linear interpolation must be used to calculate the force.
Start
working on
HW4 and PA4.
|