Uploaded by Christoper Asuar

comprg

advertisement
Name: Christoper Asuar & John Harold Lopez
Subject: Computer Programming
Section: CE3-1
Activity 4.3 (Input/Output Statements)
PRG1. Write a program that will compute for depreciation. The straight line formula for computing
depreciation is given by the following:
D= (F – S)/N
Where D = depreciation
F = Face Value
S = Salvage Value
N = Number of years
PRG2. Write a program that computes for the circumference of a circle where C=2*pi*r.
PRG3. Write a program that converts an input inch(es) into its equivalent centimeters where 1 in = 2.54
cm
PRG4. An airplane accelerates down a runway at A (m/s2 ) for T (s) until is finally lifts off the
ground. Write a program will determine the distance D traveled before takeoff where D=VoT+ (½ )AT2
Download