Computing, Programs, and Responsibility

1. Computing, Programs, and Responsibility#

How does an appointment reminder become a program that people can trust? This chapter connects a precise procedure and checkable output to the hardware, software, and people involved in computing. You will consider professional responsibility and AI suggestions, then create, edit, and run a first saved C# program. Installation and detailed Git workflows remain in the appendices.

  • Computing: Hardware, software, and data work together to process information.

  • Problem solving: Inputs, algorithms, and observable outputs define a task you can check.

  • Responsibility: Privacy, accessibility, attribution, and honest communication shape program design.

  • Execution: Source code is built and run through a compiler, runtime, editor, and terminal.

  • First program: Sequential statements produce output you can predict, change, and verify.

Chapter Video

What is C#? [Pt 1] | C# for Beginners (1:43) by dotnet.

Hosted on YouTube; property of its original creator, embedded here for educational reference only.

A short orientation to C# and the kinds of applications it supports. The content sections supply problem solving, responsibility, and the first edit/build/run workflow.

Learning Objectives

By the end of this chapter, you will be able to:

  1. Describe hardware, software, data representation, and the input-process-output model for a business task.

  2. Turn a small business request into a checkable specification, an algorithm, and a result predicted by hand.

  3. Evaluate a computing decision for stakeholders, harm, personal data, accessibility, attribution, and AI suggestions that still need verification.

  4. Explain how source code becomes a running program through the compiler, runtime, SDK, editor, and terminal.

  5. Create, edit, and run a C# console program, predict its output, and repair simple compile and logic errors.

Chapter Flow

Before the local steps in Your First C# Program, complete C# Setup and Verification. Browser examples remain available while preparing your environment.

Glossary

#

Term

Explanation

1

Program

A set of instructions that a computer carries out.

2

Hardware

The physical equipment: processor, memory, storage, and input and output devices.

3

Software

Instructions that a computer carries out.

4

Operating system

Software that manages the hardware and offers services, such as reading a file, to other programs.

5

Bit

A binary digit, written 0 or 1.

6

Byte

A group of eight bits, with 256 possible patterns.

7

Binary place value

The value of a bit position, a power of two, as each decimal position is a power of ten.

8

Encoding

An agreement that gives a bit pattern its meaning, such as a number or a letter.

9

ASCII

A text encoding that assigns numbers to letters, digits, and symbols; under it, 65 is A.

10

Input-process-output (IPO) model

A description of a task by the information it receives, the work it performs, and the result it produces.

11

Feedback

Output that influences later input, as when a user checks a report and corrects the next run.

12

Algorithm

A precise, step-by-step procedure that a person could follow without inventing a missing rule.

13

Software development life cycle (SDLC)

The activities that take a program from requirements through design, implementation, testing, deployment, and maintenance.

14

Specification

A statement of a program’s inputs, outputs, and the rules connecting them.

15

Acceptance criterion

An observable condition that decides whether a result meets a requirement.

16

Pseudocode

Precise plain-language instructions written without a programming language’s punctuation.

17

Trace

A step-by-step record of what is known after each step of a procedure.

18

Decomposition

Dividing a task into smaller parts, each with a purpose and a result you can explain.

19

Abstraction

A representation that keeps the details a purpose needs and sets the others aside.

20

Source code

Program text written in a programming language.

21

Compiler

A tool that checks source code against the language’s rules and translates it into a form that can run.

22

Interpreter

A program that carries out another program as it reads it.

23

Terminal

A text window where you type commands that start tools.

24

Intermediate language (IL)

The form the C# compiler produces, which is not tied to one processor.

25

Just-in-time (JIT) compilation

Translating each method into machine instructions when it is first needed at run time.

26

Common Language Runtime (CLR)

The .NET runtime that runs IL and manages memory, type safety, and exceptions.

27

Base Class Library (BCL)

Ready-made .NET operations for text, collections, files, and more.

28

.NET

The platform that supplies the compiler, runtime, libraries, and tools for C#.

29

Software development kit (SDK)

The tools that create and build projects, used through dotnet commands.

30

Integrated development environment (IDE)

A tool that combines editing, building, and debugging in one window.

31

Professional responsibility

Taking care in your work, being truthful about its limits, and considering the people it affects.

32

Stakeholder

A person or group affected by a system or by a decision about it, including people who never use it.

33

Harm

A negative consequence, such as financial loss, exposed information, exclusion, or lost trust.

34

Expected result

The result worked out from the requirement before the program runs, to compare with what the program produces.

35

Personal data

Information that identifies a person or can be connected to one.

36

Privacy

The appropriate collection, use, sharing, and retention of information about people.

37

Security

Protecting information and systems from unauthorized access or change and keeping them available.

38

Data minimization

Limiting the information you handle to what the purpose needs.

39

Masking

Replacing most characters of a value with a symbol so a person can recognize it without seeing all of it.

40

Synthetic data

Invented records that describe no real person.

41

Least privilege

Giving each person and program only the access its task requires.

42

Accessibility

Designing a system so that people with disabilities can perceive, understand, navigate, and act on it.

43

Attribution

Identifying the source of work you use.

44

License

A statement of the conditions for using software.

45

Accountability

Being able to explain your decisions and the evidence behind them.

46

Generative AI

AI systems that produce content such as text and code.

47

Large language model (LLM)

A model that generates text, including code, from a prompt.

48

Prompt

The instructions and context you give an AI system.

49

Syntax

The rules for how a language’s text must be written.

50

Build

Checking and translating source code so that the program can run.

51

Console application

A program that communicates through text in a terminal window.

52

Project

A folder holding one application’s source files and the settings needed to build it, described by a .csproj file.

53

Top-level statements

A shorter program form, without a visible Program class and Main method, that this book does not use.

54

Class

For now, the named container for a program’s code, such as Program.

55

Method

A named block of instructions, such as Main.

56

Entry point

The method .NET runs first when the program starts: Main.

57

Namespace

A named group that keeps your class names apart from other people’s.

58

Reserved keyword

A word with a fixed meaning in C#, such as class or void, that you cannot use as a name.

59

Statement

One complete instruction; most simple statements end with a semicolon.

60

Sequential execution

Running statements one at a time, from top to bottom.

61

Programming constructs

The three basic ways to order work: sequence, selection, and iteration.

62

Comment

A note for human readers that the compiler skips.

63

String literal

Fixed text written between double quotation marks in the code.

64

Escape sequence

A backslash and a code character that together stand for one character, such as \n for a new line.

65

Expression

Code that produces a value, such as 6 * 4.

66

String interpolation

Inserting expression values into text by writing $ before the string and the expressions in braces.

67

Syntax error

A break in the language’s rules; the compiler refuses to build, so nothing runs.

68

Compiler diagnostic

A message from the compiler giving the file, position, error code, and problem.

69

Run-time error

A failure while a program that built is running, such as reading text that is not a number.

70

Logical error

A mistake that follows the language’s rules but produces the wrong result.

71

Expected output

The output written from the requirement before the program runs, to compare with the actual output.

72

Regression check

A check that parts that worked before still work after a change.

Lecture Slides

Chapter 1 lecture slides follow the current reading order. Supporting parts remain optional; instructor notes and editable decks are distributed separately.