The document provides instructions for writing 3 simple Pascal programs. The first program calculates simple interest on a loan based on inputted loan amount and repayment time. The second program finds the square of two inputted numbers and their product. The third program calculates a person's age based on their inputted name and year of birth.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
44 views
Assignment
The document provides instructions for writing 3 simple Pascal programs. The first program calculates simple interest on a loan based on inputted loan amount and repayment time. The second program finds the square of two inputted numbers and their product. The third program calculates a person's age based on their inputted name and year of birth.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
WRITING SIMPLE PASCAL PROGRAMS
1. Write a simple program that prompts the user to input the
loan amount and the time to be taken to repay the loan. It then uses this information to calculate then output the simple interest that would be accrued on the loan. 2. Write a simple program that prompts the user to input two numbers. The program should then find and output the square of each number and the product of the two numbers 3.
Write a simple program that prompts the user to enter their
name and year of birth. It should then calculate the persons age using this current year. It should output (name) your age is (age)