







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The process of software engineering through the development of a simple loan calculation program in fortran. The five-step process includes problem analysis and specification, data organization and algorithm design, program coding, execution and testing, and program maintenance. A detailed explanation of each step, including the use of pseudocode and actual fortran code.
Typology: Study notes
1 / 13
This page cannot be seen from the preview
Don't miss anything!








SOFTWARE ENGINEERING is THE APPLICATION OF SCIENTIFICALLY TESTED TECHNIQUES AND METHODOLOGIES TO THE PROGRAMMING OF COMPUTERS. DEVELOPING PROGRAMS IN FORTRAN (WHAT YOU WILL BE DOING ALL SEMESTER IN YOUR LAB) REQUIRES FIVE BASIC STEPS: TOP DOWN DESIGN
2 (1000)]=(1.01) 3 (1000) AND IT'S CLEAR THAT THE GENERAL FORMULA IS: amount_owed=initial_amount(1+rate) time NOW WE CAN EXPRESS THE ENTIRE PROGRAM IN MORE DETAIL AND MORE CONCISELY AS "PSEUDOCODE" AN INFORMAL FORTRAN-LIKE LANGUAGE: Input: The initial_amount of a loan; the rate of interest per day compounded daily; the time in days that the loan is outstanding Output: The amount_owed
PROGRAM Interest_Rate !------------------------------------------------------------------------- ! This program calculates the amount owed to fully repay a loan where the ! initial loan amount, the daily interest rate compounded daily, and the ! duration of the loan in days is given. ! Variables used are: ! initial_amount : amount of original loan ! rate : the daily interest rate ! time : duration of loan in days ! amount_owed : amount to fully repay the loan ! ! Input: initial_amount, rate, time ! Output: amount_owed !------------------------------------------------------------------------- IMPLICIT NONE REAL :: initial_amount, rate, time, amount_owed ! Get values of initial_amount, rate, time, amount_owed WRITE (,) "Enter: initial amount of loan, the rate, and the time separated by spaces" READ (,) initial_amount, rate, time ! Calculate the amount owed at the given rate after the specified number of days amount_owed=initial_amount((1.0+rate)time) ! Display amount_owed WRITE(,500) amount_owed 500 FORMAT (10X,'The amount owed is', F10.2) END PROGRAM Interest_Rate CLEARLY, THIS IS TOO SMALL TO READ, SO WE'LL RUN IT FROM EOS.
{Proofs on non-existence are difficult}