Software

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   hear noise   go to next page

Answer:

Does the computer controlling an automobile engine have:

  • Input devices? Yes — various sensors throughout the car deliver data to the computer.
  • Output devices? Yes — various actuators have their actions controlled by data.
  • Main storage? Yes — ROM holds the program and there must be enough RAM to hold the current data and results.
  • Secondary storage? No — Hard disks do not hold up well next to a car engine.

Software

Computer software consists of both programs and data. Programs consist of instructions for the processor. Data can be any information that a program needs: character data, numerical data, image data, audio data, and countless other types. The distinction between programs and data is not as clear-cut as you might think, however.

Fundamental Idea: Both programs and data are saved in computer memory in the same way. The electronics of computer memory (both main memory and secondary memory) make no distinction between programs and data.

The insight that both programs and data can be saved using the same electronic methods is one of the most important ideas in computer science. Computer systems can use their memory for whatever needs arise.

QUESTION 11:

Which of the following can be saved on a disk?

  • A game program
  • Accounting data (numbers)
  • Audio data
  • Graphics data
  • Digital photographs
  • Video data