Books > BASIC Programs for Small Computers
BASIC Programs for Small Computers (US)
C Regena
Compute! Books, 1984
Download all programs from this book on one disk:
![]() Basic Progs Small Comp.d64 |
57 programs
Chapter 1: Conserving Memory
Program | Author | Requirements | Files | Info |
Nouns![]() Pages 5-8. |
C Regena | Unexpanded | nouns.prg Screenshot |
Word quiz. Ten words are displayed, and you must identify whether each word is a person, place, thing, or non-noun. Controls: Select the correct answer (1-4). |
Chapter 2: Translating BASIC
Program | Author | Requirements | Files | Info |
Roman Numerals![]() Pages 15-17. |
C Regena | Unexpanded | roman numerals.prg Screenshot |
A number is displayed in Roman Numerals. Can you correctly enter the normal value? Controls: Type the correct answer. |
Adverbs![]() Pages 18-20. |
C Regena | Unexpanded | adverbs.prg Screenshot |
Word quiz. Ten sentences are displayed, and you must identify the adverb in each sentence. Controls: Type the adverb. |
Chapter 3: Quick Calculations
Program | Author | Requirements | Files | Info |
Conversions![]() Pages 24-27. |
C Regena | Unexpanded | conversions.prg Screenshot |
Unit conversion calculator. Convert metric lengths into imperial, and vice versa. Controls: Follow on-screen prompts. |
Distance![]() Pages 27-28. |
C Regena | Unexpanded | distance.prg Screenshot |
Perform distance calculations, using the formula Distance = Rate * Time. If two of the three values are known, then this program will calculate the missing value. Controls: Follow on-screen prompts. |
Squares![]() Pages 28-29. |
C Regena | Unexpanded | squares.prg Screenshot |
Calculate the area, side or perimeter of a square. Controls: Follow on-screen prompts. |
Rectangles![]() Pages 29-31. |
C Regena | Unexpanded | rectangles.prg Screenshot |
Calculate the area, side or perimeter of a rectangle. Controls: Follow on-screen prompts. |
Circles![]() Pages 31-34. |
C Regena | Unexpanded | circles.prg Screenshot |
Calculate the radius, diameter, area or circumference of a circle. Controls: Follow on-screen prompts. |
Square Root![]() Pages 34-35. |
C Regena | Unexpanded | square root.prg Screenshot |
Calculate the square root of a number. Controls: Follow on-screen prompts. |
Parallel Resistance![]() Pages 35-36. |
C Regena | Unexpanded | resistance.prg Screenshot |
Calculate the total resistance of a number of resistors that are connected in parallel. Controls: Follow on-screen prompts. |
Arithmetic Mean![]() Pages 36-37. |
C Regena | Unexpanded | arithmetic mean.prg Screenshot |
Calculate the total & mean of a set of numbers. Controls: Follow on-screen prompts. |
Simple Interest![]() Page 37. |
C Regena | Unexpanded | simple interest.prg Screenshot |
Calculate the simple interest on savings or a loan. Controls: Follow on-screen prompts. |
Compound Interest![]() Pages 38-39. |
C Regena | Unexpanded | compnd interest.prg Screenshot |
Calculate the compound interest on savings or a loan. Controls: Follow on-screen prompts. |
Single Payment Present Worth![]() Page 39. |
C Regena | Unexpanded | single payment.prg Screenshot |
If you wanted to save a specific amount for the future (e.g. 25000 in 20 years time), then this calculates how much money you need to have now for it to reach the desired total with interest. Controls: Follow on-screen prompts. |
Uniform Series Compound Amount![]() Page 40. |
C Regena | Unexpanded | uniform series.prg Screenshot |
If you deposit the same amount every month, find out how much your savings will be worth with compound interest. Controls: Follow on-screen prompts. |
Sinking Fund Deposits![]() Page 41. |
C Regena | Unexpanded | sinking fund.prg Screenshot |
If you want to save a specific total, work out how much you need to save each month with compound interest to get the required amount. Controls: Follow on-screen prompts. |
Loan Payments![]() Page 42. |
C Regena | Unexpanded | loan payments.prg Screenshot |
Calculate the monthly repayments on a loan with compound interest. Controls: Follow on-screen prompts. |
Amortization![]() Pages 43-44. |
C Regena | Unexpanded | amortization.prg Screenshot |
Calculate the monthly repayments on a loan with compound interest, and displays an amortization schedule. Controls: Follow on-screen prompts. |
Chapter 4: Graphics
Program | Author | Requirements | Files | Info |
Graphics Demo![]() Pages 47-48. |
C Regena | Unexpanded | graphics demo.prg Screenshot |
Random coloured squares are displayed while playing random tones. Controls: None. |
Doodle![]() Pages 48-50. |
C Regena | Unexpanded | doodle.prg Screenshot |
Lo-res art program, draw simple pictures. Controls: Crsr keys (move), Space (change colour). |
Color Code![]() Pages 53-55. |
C Regena | Unexpanded | color code.prg Screenshot |
Mastermind logic game, guess the colour of four hidden pegs. A red heart means you have a correct colour in the correct place, and a green diamond means you have a correct colour in the wrong place. Controls: 1, 3, 6, 7, 8 (enter colour), 0 (clear colours). |
Matching Shapes![]() Pages 59-61. |
C Regena | Unexpanded | matching shapes.prg Screenshot |
Educational game for young children. Four random shapes are shown. Choose the one that matches the shape at the top of the screen. Controls: 1-4 (choose matching shape). |
Counting Shapes![]() Pages 68-70. |
C Regena | Unexpanded | counting shapes.prg Screenshot |
Educational game for young children. Count how many shapes are displayed on the screen. Controls: 1-9 (number of shapes shown). |
Locating Points![]() Pages 76-78. |
C Regena | Unexpanded | locating points.prg Screenshot |
Educational game teaching how to locate points on a grid. Examples of coordinates are shown, then you are asked to read some coordinates from the grid, and finally you are asked to place a point at specific coordinates on the grid. Controls: Follow on-screen prompts. For the final part, use F1 (up), F3 (left), F5 (right), F7 (down) to position the dot on the grid. |
Chapter 5: Sound
Program | Author | Requirements | Files | Info |
Musical Keyboard![]() Pages 89-92. |
C Regena | Unexpanded | music keyboard.prg Screenshot |
Learn how to read the keys on a piano keyboard. Controls: Go through the tutorial, then identify each note (A-G). |
Treble Clef![]() Pages 96-99. |
C Regena | Unexpanded | treble clef.prg Screenshot |
Learn how to read the notes on a treble clef. Controls: Go through the tutorial, then identify each note (A-G). |
Bass Clef![]() Pages 104-106. |
C Regena | Unexpanded | bass clef.prg Screenshot |
Learn how to read the notes on a bass clef. Controls: Go through the tutorial, then identify each note (A-G). |
Chapter 6: Math Competency
Program | Author | Requirements | Files | Info |
Buying Items![]() Pages 113-116. |
C Regena | Unexpanded | buying items.prg Screenshot |
Maths quiz. A shopping list is displayed. First you must work out how much it costs to buy everything on the list. Second you are told how much money you've got, and you must identify which two items you can afford. Controls: Follow on-screen prompts. |
Sales Tax![]() Pages 122-124. |
C Regena | Unexpanded | sales tax.prg Screenshot |
How to calculate sales tax. A shopping list is displayed. First you must work out how much it costs to buy everything on the list. Second you are shown how to calculate the sales tax. Controls: Follow on-screen prompts. |
Earning Money![]() Pages 127-130. |
C Regena | Unexpanded | earning money.prg Screenshot |
How to calculate weekly wages. First work out how much somebody will earn per week, given an hourly rate and the number of hours worked. Second work out how much they will earn over a number of weeks. Controls: Follow on-screen prompts. |
Weekly Expenses![]() Pages 136-139. |
C Regena | Unexpanded | weekly expenses.prg Screenshot |
You are taking part in summer activities, and an itemized list of costs is shown. First how much does it cost to stay each week? Second how much does it cost for a particular number of weeks? Controls: Follow on-screen prompts. |
Saving Money![]() Pages 142-144. |
C Regena | Unexpanded | saving money.prg Screenshot |
Work out how much money you need to save each week to purchase a specific item. Controls: Follow on-screen prompts. |
Chapter 7: Homework Helpers
Program | Author | Requirements | Files | Info |
Division![]() Pages 149-150. |
C Regena | Unexpanded | division.prg Screenshot |
Calculate divisions. Type the divisor & dividend, and the quotient & remainder will be shown. Controls: Enter the divisor and dividend. |
Find All Factors![]() Pages 151-152. |
C Regena | Unexpanded | find factors.prg Screenshot |
Calculate all the factors of a number, i.e. divisors that will yield an integer answer. Controls: Enter a number. |
Prime Factors![]() Pages 153-154. |
C Regena | Unexpanded | prime factors.prg Screenshot |
Calculate the prime factors of a number. Multiplying the prime factors together gives the original number. Controls: Enter a number. |
Greatest Common Factor![]() Pages 155-156. |
C Regena | Unexpanded | grt com factor.prg Screenshot |
Calculate the greatest common factor of two numbers, i.e. the biggest integer value that can be used to evenly divide both numbers. Controls: Enter two numbers (1-10000). |
Least Common Multiple![]() Pages 159-160. |
C Regena | Unexpanded | lst cm multiple.prg Screenshot |
Calculate the lowest common denominator of two or three numbers, i.e. the smallest number that can be evenly divided by all of the selected numbers. Controls: Enter two or three numbers (1-1000). |
Equivalent Fractions![]() Pages 163-165. |
C Regena | Unexpanded | equiv fractions.prg Screenshot |
Solves problems of the form A/B = C/D where one of the values is missing. Controls: Enter the three known values. |
Simplify Fractions![]() Pages 168-169. |
C Regena | Unexpanded | simpl fractions.prg Screenshot |
Reduce a fraction to its lowest terms. Controls: Enter the fraction. |
Multiplying Fractions![]() Pages 171-172. |
C Regena | Unexpanded | mltply fraction.prg Screenshot |
Multiply two or more fractions together, and display the result as a fraction. Controls: Enter the fractions. |
Dividing Fractions![]() Pages 171-172. |
C Regena | Unexpanded | divide fraction.prg Screenshot |
Divide two fractions, and display the result as a fraction. Controls: Enter the fractions. |
Adding Fractions![]() Pages 179-181. |
C Regena | Unexpanded | adding fraction.prg Screenshot |
Add fractions together, with either like or unlike denominators. Controls: Enter the fractions. |
Simultaneous Equations![]() Pages 186-188. |
C Regena | Unexpanded | simul equations.prg Screenshot |
Solve up to six simultaneous equations. Controls: Enter the number of equations, followed by the matrix of known values. |
Chapter 8: Computer Sorting
Program | Author | Requirements | Files | Info |
Bubble Sort![]() Page 195. |
C Regena | Unexpanded | bubble sort.prg Screenshot |
The computer displays fifty random numbers, then puts them in order using bubble sort. Controls: None. |
Shell Sort![]() Pages 196-197. |
C Regena | Unexpanded | shell sort.prg Screenshot |
The computer displays fifty random numbers, then puts them in order using shell sort. Controls: None. |
Maximum and Minimum Sort![]() Page 198. |
C Regena | Unexpanded | max min sort.prg Screenshot |
The computer displays fifty random numbers, then puts them in order using maximum & minimum sort (each pass moves the lowest & highest numbers to the endpoints). Controls: None. |
Quick Sort![]() Page 200. |
C Regena | Unexpanded | quick sort.prg Screenshot |
The computer displays fifty random numbers, then puts them in order using quick sort (a combination of the techniques from max & min sort and shell sort). Controls: None. |
Test Scores![]() Pages 202-203. |
C Regena | Unexpanded | test scores.prg Screenshot |
The computer displays a list of student names, their results in three tests, together with a total and average score. The list is then sorted into numerical order according to total score, using bubble sort. Controls: Follow on-screen prompts. |
Chapter 9: Fun in Less Than 4K
Program | Author | Requirements | Files | Info |
Typing![]() Pages 209-212. |
C Regena | Unexpanded | typing.prg Screenshot |
Typing tutor. Practice touch typing, by typing letters & words using keys on the middle row of the keyboard. Controls: Follow on-screen prompts. |
Teeth Wisdom![]() Pages 217-219. |
C Regena | Unexpanded | teeth wisdom.prg Screenshot |
Dental quiz. You are shown the names of the teeth. When you have remembered them, you must name the teeth in a quiz. Controls: Identify the flashing teeth (1-5). |
Bake a Cake![]() Pages 223-228. |
C Regena | Unexpanded | bake a cake.prg Screenshot |
Cooking aid. Display the ingredients to bake various types of cake, and optionally reduce or enlarge the recipe by a desired fraction. You can also tell the computer what ingredients you have got, to find out what recipes can be made. Controls: Follow on-screen prompts. |
Cookie File![]() Pages 228-231. |
C Regena | Unexpanded | cookie file.prg Screenshot |
Cooking aid. Display the ingredients to bake various types of cookie, and optionally reduce or enlarge the recipe by a desired fraction. You can also tell the computer what ingredients you have got, to find out what recipes can be made. Controls: Follow on-screen prompts. |
States and Capitals![]() Pages 231-233. |
C Regena | Unexpanded | states capitals.prg Screenshot |
Geography quiz. All fifty American states are shown in random order, and you must name the capital of each state. Controls: Type the correct answer to each question. |
South America![]() Pages 238-239. |
C Regena | Unexpanded | south america.prg Screenshot |
Geography quiz. You must identify the capital city of various South American countries. Controls: Select the correct answer (A-L). |
Countries![]() Pages 241-242. |
C Regena | Unexpanded | countries.prg Screenshot |
Geography quiz. For each country, you must identify the continent where it is located. Controls: Select the correct answer (1-7). |
Multiplication Invasion![]() Pages 245-247. |
C Regena | Unexpanded | multiply invade.prg Screenshot |
Multiplication puzzles are moving up the screen. Move over a problem and type the correct answer. If any of the problems reach the top of the screen then the game ends. Controls: Press F1 & F3 to move left & right, then use the number keys to type your answer. You need to press Return when typing one-digit answers. |
Defend![]() Pages 252-255. |
C Regena | Unexpanded | defend.prg Screenshot |
Shoot the incoming invaders before they reach the left side of the screen. Controls: ArrowUp (up), Crsr-Down (down), Space or F7 (fire). |
With thanks to DLH's Commodore Archive and Internet Archive for making this book available in PDF format.