Analyze a task and describe it succinctly

Assignment Help JAVA Programming
Reference no: EM131252207

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

Reference no: EM131252207

Questions Cloud

Compute the pure strategy and mixed strategy nash equilibria : Compute the pure-strategy and mixed-strategy Nash equilibria for this game, and note how they depend on x. In particular, what is the difference between x > 1 and x.
Individual whose preferences are described : Consider an individual whose preferences are described by the utility function is U = X0.5Y0.5. If she consumes 2 units of X and 8 units of Y, then some level of utility will be experienced. If the individual instead consumes 4 units of X, how muc..
Write an essay about an intriguing person : Write an essay about an intriguing person, place, service, activity, establishment, or event. This profile essay will be based on your observation and interview
How has social media influenced 2016 presidential elections : Based upon the articles above, how has social media influenced the 2016 presidential elections? Has this influence been positive or negative? You MUST cite specific examples fromthe articles in response to these questions. Points will be deducted ..
Analyze a task and describe it succinctly : 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 compo..
Design an observer and an output feedback for the system : (Whipple bicycle model) Consider the Whipple bicycle model given by equation (3.7) in Section 3.2. A state feedback for the system was designed in Exercise 6.12. Design an observer and an output feedback for the system.
Find the symmetric nash equilibrium : Find the symmetric Nash equilibrium of this n-player normal-form game. - Compute the probability that at least one person calls for help in equilibrium.
Quantity in thousands and is in thousands : where is the quantity in thousands and is in thousands. Although Arizona is farther away from Ohio than Michigan is from Ohio, assume the transportation costs (for delivery) is the same and, for simplicity, equal to zero.
Prove that every game has a nash equilibrium : Prove that every 2 × 2 game has a Nash equilibrium. -  Do this by considering the following general game and breaking the analysis:

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write an interface for a bagadt that implements iterable

Write an interface for a BagADT that implements the Iterable interface. Include javadoc comments that will generate specifications for the BagADT so that someone who wants to implement this interface will know what each method does.

  Write the method in java

2.char mostOftenIn(String s) that for a given string s, returns the character that occurs most often in s.

  Write java program to evaluate postfix expressions

Write a java program to evaluate postfix expressions containing complex numbers using a stack. This program should contain two classes.

  Please write the code in java

Please write the code in java for  Recursion,  Sorting and Searching

  Write a program to implement bubble sort and insertion sort

Write a program to implement bubble sort, insertion sort, selection sort, merge sort and quick sort (pivot = random index) algorithms

  Write program in java to calculate interest

Write a program in java to do the following : the following data is stored for each customer in the bank: account number,average balance and number of transaction for each customer it is required to calculate the interest earn

  Examine the clocktype class definition

Examine the ClockType class definition. How many attributes does it contain? Assume we have two classes and have instantiated an object from each class. How many copies of each class's attributes and methods exist in the instantiated objects?

  Calculate the area of the circle

Circle Area- Write an application that prompts the user for the radius of a circle and uses a method called circleArea to calculate the area of the circle

  Algorithm design and development - the graduate designs and

algorithm design and development - the graduate designs and develops algorithms for problem solving and implements

  Write a method called makerow

Write a method called makeRow that is passed two arguments: an int and a String. It returns a String containing n copies of s, concatenated in a row. For instance, if we call the method with makeRow(5, "*"), the method returns *****.

  Write a simple gui program that allows users to type

Write a simple GUI program that allows users to type in any long message and to display the number words when the button "Count Words" is pressed.

  Write a method in java that uses a switch statement

Write a method in JAVA that uses a switch statement and takes a person's age using an integer parameter , then checks if the age is valid (0-110), and then RETURNS a string based on the age

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd