Professional Documents
Culture Documents
NOTE:
Q1. A year is a leap year if it is divisible by 4 unless it is a century year (one that ends in 00) in
which case it has to be divisible by 400. Write a program in ‘C’ to read in a year and report
whether it is a leap year or not. [30]
Q2. Write and test an assembly language a program that puts the sum of the numbers at memory
locations labeled A, B, and C into register 11. [20]
Q3. Write a menu driven program in FoxPro, which should be able to calculate the interest and
amount for any loan amount, for any number of years and for any rate of interest. The menu
options given to the user should be either by simple interest method or by the compound interest
method.
In this program, just after supplying the values of Capital amount, Interest rate and Number of
years, it should show the two choices. For choice 1, it should calculate interest and amount using
the simple interest method. For choice 2, it should calculate interest and amount using the
compound interest method.
Write a menu driven program in FoxPro, which should be able to calculate the interest and
amount for any loan amount, for any number of years and for any rate of interest. The menu
options given to the user should be either by simple interest method or by the compound interest
method. [30]
PR-I-A1-V: AUGUST 2004
NOTE:
Q1. Write a C Program that Convert decimal number into binary number. eg. The number 70 in
decimal is expressed as 1000110 in binary. [30]
Q2. Write an assembly program that displays a message on the screen, waits for 5 seconds (create
a delay sec subroutine that your program calls), and then clears the message and exits. [20]