You are on page 1of 3

Problems on Factual Programming

1) Bridget went to a shop to buy a number of fruit bars. The number bought
and the price of a fruit bar is entered in a main procedure. Send these
numbers to a function to calculate the amount due. The amount due must
include 14% VAT. Return this value to the main procedure and display the
amount on the screen.
2) Danny invested an amount that must be entered at the beginning of the
program at the SAVE-A-LOT BANK. The monthly interest rate is also
entered. The program must calculate and display the amount of interest
earned as well as the balance at the end of every month for the next 15
months. At the end of the program the total amount of interest must be
displayed. Use functions and sub procedures where possible. Remember
when you test your program to use a monthly interest rate e.g. an annual
interest rate of 10% = 0.83% per month.
3) Do the planning and write a VB.NET program to calculate the final mark a
student obtained for Programming 3. This final mark is calculated by using
the marks of different assessments and their particular weights:
Assessment Weight Test 1 15% Test 2 20% The best mark of 2 class tests
15% Examination 50% Code a function to determine and return the mark of
the highest class test. Use a sub procedure to calculate the final mark and
to determine whether it is a pass or fail (message) and another sub
procedure to display the mark and the message result.

You might also like