Discussion: Programming the Familiar
Good programmers are able to analyze a task and describe it succinctly, accurately, and unambiguously. Even tasks that you perform without much thought are surprisingly complex when you stop and consider all of their components. For example, using the self-checkout lane at a grocery store—a simple task completed by thousands of people every day—requires you to: (1) Select items in your basket; (2) Scan the UPC codes; (3) Convey the item to the bagging area; (4) Bag your groceries; and (5) Submit payment for your purchases.
A program is an ordered list of instructions that prepares the computer (or in the case of the grocery example, the shopper and new user of the self-checkout lane) to complete a task. Good instructions are mindful of the target audience, and the less you assume the reader already knows about a process, the more useful the instructions are to a wider audience.
If you have not used the self-checkout lane at a grocery store before, you act as your own cashier. You scan and weigh your items, bag them, and pay for them, while being guided by a digitized voice prompting you to complete each step.
Consider the pseudo code in the “Week 1 Discussion Code” text file (located in this week’s Learning Resources) that describes the self-checkout procedure. While it is comprehensive, it is also organized. It groups instructions related to the same task into a block of text, and adds comments and explanations using specific conventions:
Actions defined by a group of steps have descriptive names, including SelectItem, ScanBarCode, and PayingWithCredit.
Blocks of instruction are contained within braces: { and }.
// means that the rest of the line is a comment Intended for people, not an instruction to the computer.
When /* is used at the beginning of a line, it signifies that the entire line is a comment and will be ignored by the computer.
The symbols /** and */ start and end comments that extend over multiple lines. These are used to describe processes within your program.
Note: You will investigate this notation further in Week 2.
The code in the “Week 1 Discussion Code” text file (located in this week’s Learning Resources) includes line numbers along the left side of the page. These are not part of the program but they make it easy to refer to specific commands and instructions within the program.
Think about one task you perform so often, it is nearly automatic. Break that task down into its component parts and write a “program” that resembles the grocery self-checkout code provided to describe your task. Your task should include:
At least three major steps, listed in chronological order
Specific instructions that describe each step
Conditions that direct the flow of the program, such as “if-then,” “while,” or “until.”
Comments that explain your program
Line numbers
By Day 3
Post your program and read some of the programs posted by other colleagues. Identify steps in their programs that could be further developed to make the program unambiguous to as wide an audience as possible.
By Day 6
Respond to at least two other colleagues’ posts. Your responses should:
Identify a step or instruction in the program that could be further expanded or explained.
Explain why you think more detailed instructions would be valuable.
Write 5–10 lines of pseudo code that could be inserted into, or appended to the end of, the program to provide the additional instructions.
Professional homework help features
Our Experience
However the complexity of your assignment, we have the right professionals to carry out your specific task. ACME homework is a company that does homework help writing services for students who need homework help. We only hire super-skilled academic experts to write your projects. Our years of experience allows us to provide students with homework writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How our professional homework help writing services work
You first have to fill in an order form. In case you need any clarifications regarding the form, feel free to reach out for further guidance. To fill in the form, include basic informaion regarding your order that is topic, subject, number of pages required as well as any other relevant information that will be of help.
Complete the order formOnce we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignmentAs soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download