Main Memory • Main memory: where computer stores a program while program is running as well as the data that the program working with • Known as Random Access Memory or RAM • CPU is able to quickly access data in RAM • Volatile memory used for temporary storage while program is running • Contents are erased when computer is off
Secondary Storage Devices • Secondary storage: can hold data for long periods of time • Programs normally stored here and loaded to main memory when needed • Types of secondary storage devices • Disk drive: magnetically encodes data onto a spinning circular disk • Solid state drive: faster than disk drive, no moving parts, stores data in solid state memory • Flash memory: portable, no physical disk
Input Devices • Input: data the computer collects from people and other devices • Input device: component that collects the data • Examples: keyboard, mouse, touchscreen, scanner, camera • Disk drives can be considered input devices because they load programs into the main memory
How a Program Works (cont’d.) • CPU executes program in cycle: • Fetch: read the next instruction from memory into CPU • Decode: CPU decodes fetched instruction to determine which operation to perform • Execute: perform the operation
The IDLE Programming Environment • IDLE (Integrated Development Program): single program that provides tools to write, execute and test a program • Automatically installed when Python language is installed • Runs in interactive mode • Has built-in text editor with features designed to help write Python programs
The followings are requirements for a course registering software_ (1) Students shall search the course schedules; (2) The system should be operated around the clock and 7 days a week (24_7 mode) in the registr (2)