Write the following programs using BBC Basic: