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 |

NounsPages 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 NumeralsPages 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. |

AdverbsPages 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 |

ConversionsPages 24-27. |
C Regena | Unexpanded | conversions.prg Screenshot |
Unit conversion calculator. Convert metric lengths into imperial, and vice versa.Controls:Follow on-screen prompts. |

DistancePages 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. |

SquaresPages 28-29. |
C Regena | Unexpanded | squares.prg Screenshot |
Calculate the area, side or perimeter of a square.Controls:Follow on-screen prompts. |

RectanglesPages 29-31. |
C Regena | Unexpanded | rectangles.prg Screenshot |
Calculate the area, side or perimeter of a rectangle.Controls:Follow on-screen prompts. |

CirclesPages 31-34. |
C Regena | Unexpanded | circles.prg Screenshot |
Calculate the radius, diameter, area or circumference of a circle.Controls:Follow on-screen prompts. |

Square RootPages 34-35. |
C Regena | Unexpanded | square root.prg Screenshot |
Calculate the square root of a number.Controls:Follow on-screen prompts. |

Parallel ResistancePages 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 MeanPages 36-37. |
C Regena | Unexpanded | arithmetic mean.prg Screenshot |
Calculate the total & mean of a set of numbers.Controls:Follow on-screen prompts. |

Simple InterestPage 37. |
C Regena | Unexpanded | simple interest.prg Screenshot |
Calculate the simple interest on savings or a loan.Controls:Follow on-screen prompts. |

Compound InterestPages 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 WorthPage 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 AmountPage 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 DepositsPage 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 PaymentsPage 42. |
C Regena | Unexpanded | loan payments.prg Screenshot |
Calculate the monthly repayments on a loan with compound interest.Controls:Follow on-screen prompts. |

AmortizationPages 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 DemoPages 47-48. |
C Regena | Unexpanded | graphics demo.prg Screenshot |
Random coloured squares are displayed while playing random tones.Controls:None. |

DoodlePages 48-50. |
C Regena | Unexpanded | doodle.prg Screenshot |
Lo-res art program, draw simple pictures.Controls:Crsr keys (move), Space (change colour). |

Color CodePages 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 ShapesPages 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 ShapesPages 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 PointsPages 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 KeyboardPages 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 ClefPages 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 ClefPages 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 ItemsPages 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 TaxPages 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 MoneyPages 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 ExpensesPages 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 MoneyPages 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 |

DivisionPages 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 FactorsPages 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 FactorsPages 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 FactorPages 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 MultiplePages 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 FractionsPages 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 FractionsPages 168-169. |
C Regena | Unexpanded | simpl fractions.prg Screenshot |
Reduce a fraction to its lowest terms.Controls:Enter the fraction. |

Multiplying FractionsPages 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 FractionsPages 171-172. |
C Regena | Unexpanded | divide fraction.prg Screenshot |
Divide two fractions, and display the result as a fraction.Controls:Enter the fractions. |

Adding FractionsPages 179-181. |
C Regena | Unexpanded | adding fraction.prg Screenshot |
Add fractions together, with either like or unlike denominators.Controls:Enter the fractions. |

Simultaneous EquationsPages 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 SortPage 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 SortPages 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 SortPage 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 SortPage 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 ScoresPages 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 |

TypingPages 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 WisdomPages 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 CakePages 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 FilePages 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 CapitalsPages 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 AmericaPages 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). |

CountriesPages 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 InvasionPages 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. |

DefendPages 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.

Copyright (C) R.M. Smedley 2023, All Rights Reserved.

This page was last updated 20-Jun-2023.