• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/29

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

29 Cards in this Set

  • Front
  • Back

1.6: concept: The programming process consists of which 4 steps?

1). Design,




2). Creation,




3). Testing, and




3). Debugging activities.

What 9 steps are recommended for the process of writing a program?

1. Clearly define what the problem is to do.


2. Visualize the program running on the computer.


3. Use design tools such as a hierarchy chart, flowcharts, or pseudocode to create a model of the program.


4. Check the model for logical errors.


5. Type the code, save it, and compile it.


6. Correct any errors found during compilation. Repeat Steps 5 and 6 as many times as necessary.


7. Run the program with the test data for input.


8. Correct any errors found while running the program.


9. Validate the results for the program.

What does an good program always begin with?

planning

What 4 steps does step 1--to clearly define what the program is to do--require?

1. Purpose: to calculate the user's gross pay.


2. Input: Number of hours worked, hourly pay rate


3. Process: Multiply number of yours worked by hourly pay rate.


4. Output: Display a message indicating the user's gross pay.

In step 2, how do we visualize the program running on the computer?

a). by putting ourselves in the user's shoes, (What messages should the program display? What questions should it ask?)


b). by imagining what the computer screen may looks like while the program is running.


c). by drawing pictures of the screen, with sample input and output, at various points in the program.

1.27: In step 3, what is a hierarchy chart?

a diagram that graphically depicts the structure of a program. It begins with the overall task and then refines it into smaller subtasks. Then, the subtasks are then refined into smaller sets of subtasks until each is small enough to be easily performed.

Also in step 3, what is top-down design?

this process is known as "divide and conquer" it is based off of the hierarchy chart.

In step 3, what is a flowchart?

a diagram that shows the logical flow of a program.

Also in step 3, what is pseudocode a cross between?

human language and programming language. Ex.


Get payroll data.


Calculate gross pay.


Display gross pay.


(Pseudocode contains statements the look more like commands than the English statements that describe the algorithm in Section 1.4)

Here is a more detailed version of pseudocode

1. Display "How many hours did you work?".


2. Input hours.


3. Display "How much do you get paid per hour?".


4. Input rate.


5. Store the value of hours times rate in the pay variable.


6. Display the value in the pay variable.

In step 4, check for the model for logical errors, what are logical errors?

mistakes that cause the program to produce erroneous(wrong, incorrect) results.

In step 4, once a hierarchy chart, flowchart, or pseudocode model of the program is assembled, it should be checked for what?

Logical errors

In step 4, the programmer should trace through the charts or pseudocode, checking the logic of each step, true or false? Then what should happen if a error is found?

True. If a logical error is found, the model can be corrected before the next step is attempted.

What happens in step 5--type the code, save it, and compile it?

The programmer is ready to write the source code on the computer, save it to a source file, and then begin the process of translating it to machine language.

1.29, 1.31: In step 5--type the code, save it, and compile it--is it the compilers task to find any syntax errors that may exist in the program?

Yes.

In the process of writing a program in Step 5, After we've typed the code, saved it, and compiled the code, what do we do in Step 6?

Correct any errors found during compilation. Then, repeat Steps 5 and 6 as many times as necessary.

What do we do in Step 7 of the process of writing a program?

Run the program with test data for input.

Also, in Step 7, once an executable file is generated, the program is ready to be tested for run-time errors. True or false?

True. A run-time error is an error that occurs while the program is running. These are usually logical errors, such as mathematical mistakes.

1.30: What is a run-time error?

An error that occurs while the program is running.

What type of error is usually a run-time error?

a logical error, such as a mathematical mistake.

In step 7, If the program does not produce the correct output, what is found to be present in the program?

a logical error.

In the process of writing a program, what do we do in Step 8?

Correct any errors found while running the program. Repeat Step 5 through 8 as many times as necessary.

1.28: In step 8 during the process of writing a program, what does the term desk-checking mean?

It means the programmer starts reading the program, or a portion of the program, and steps through each statement.

What is step 9--the last step in the process of writing a program?

Validate the results of the program

What is software engineering?

the process of crafting computer software

What does software engineering include?

Designing,


Writing,


Testing,


Debugging,


Documenting,


Modifying, and


Maintaining complex software development projects.

Like traditional engineers, software engineers use a number of tools in their craft. What are some examples of those tools?

1. Program specifications


2. Charts and diagrams of screen output


3. Hierarchy charts and flowcharts


4. Pseudocode


5. Examples of expected input and desired output


6. Special software designed for testing programs.



1.32: What is the purpose of testing a program with sample data or input?

The purpose of testing a program is to see if the program produces any run-time errors. A run-time error is an error that occurs while the program is running.

1.33s

asdf