SoftwareProgram Development - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

SoftwareProgram Development

Description:

number of ounces integer, number of grams - double. formulas? ... convert pounds to ounces. convert ounces to grams. display result ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 14
Provided by: suzannew6
Category:

less

Transcript and Presenter's Notes

Title: SoftwareProgram Development


1
  • Software/Program Development
  • Specification specify the problem (description)
  • Analysis understand the problem list data that
    store relevant information what are the inputs?
    outputs? list any formulas that might be needed
  • Design develop an algorithm that outlines the
    solution
  • Implementation translate the algorithm to
    computer code (Java for us)
  • Verification and Testing make sure the
    implementation is correct

2
  • (Specification) Problem Write a program that
    gets a number representing pounds from the user
    and converts those pounds into equivalent ounces
    and grams and displays the results.
  • Analysis understand the problem list data that
    store relevant information what are the inputs?
    outputs? list any formulas that might be needed
  • Design develop an algorithm that outlines the
    solution
  • Implementation translate the algorithm to
    computer code (Java for us)
  • Verification and Testing make sure the
    implementation is correct

3
  • (Specification) Problem Write a program that
    gets a number representing pounds from the user
    and converts those pounds into equivalent ounces
    and grams and displays the results.
  • Analysis understand the problem list data that
    store relevant information what are the inputs?
    outputs? list any formulas that might be needed
  • inputs?
  • outputs?
  • formulas?

4
  • (Specification) Problem Write a program that
    gets a number representing pounds from the user
    and converts those pounds into equivalent ounces
    and grams and displays the results.
  • Analysis understand the problem list data that
    store relevant information what are the inputs?
    outputs? list any formulas that might be needed
  • inputs? number of pounds - integer
  • outputs? number of ounces integer, number
    of grams - double
  • formulas?

5
  • (Specification) Problem Write a program that
    gets a number representing pounds from the user
    and converts those pounds into equivalent ounces
    and grams and displays the results.
  • Analysis understand the problem list data that
    store relevant information what are the inputs?
    outputs? list any formulas that might be needed
  • inputs? number of pounds - integer
  • outputs? number of ounces double, number
    of grams - double
  • formulas? 1 ounce 28.4 grams, 1 pound
    16 ounces

6
  • (Specification) Problem Write a program that
    gets a number representing pounds from the user
    and converts those pounds into equivalent ounces
    and grams and displays the results.
  • Analysis understand the problem
  • Design develop an algorithm that outlines the
    solution what is an algorithm??

7
  • Algorithm a set of steps to solve a problem
    that is
  • Unambiguous precise, only one way for it to be
    interpreted
  • Executable everything correctly specified
  • Terminating must come to an end
  • Remember! Algorithms are not necessarily (Java)
    code, but are pseudocode. The steps in an
    algorithm generally show up as comments in your
    program start with comments, fill in the code.

8
  • (Specification) Problem Write a program that
    gets a number representing pounds from the user
    and converts those pounds into equivalent ounces
    and grams and displays the results.
  • Analysis understand the problem
  • Design develop an algorithm that outlines the
    solution
  • set up needed variables
  • get number of pounds from user
  • convert pounds to ounces
  • convert ounces to grams
  • display result

9
3. Design develop an algorithm that outlines
the solution set up needed variables get number
of pounds from user prompt user for
input read input convert pounds to
ounces number ounces number pounds
16 convert pounds to grams number grams
number ounces 28.4 display result
10
4. Implementation translate algorithm to code
// set up needed variables Scanner
keyboard new Scanner(System.in) int
pounds int ounces
double grams // get number of pounds from user
System.out.println(enter number of
pounds) pounds keyboard.nextInt()
//convert pounds to ounces
ounces pounds 16 // convert pounds to grams
grams ounces 28.4 // display
result System.out.println(pounds
pounds is equal to ounces ounces or
grams grams)
11
  • (Specification) Problem Write a program that
    gets a number representing pounds from the user
    and converts those pounds into equivalent ounces
    and grams and displays the results.
  • Analysis understand the problem list data that
    store relevant information what are the inputs?
    outputs? list any formulas that might be needed
  • Design develop an algorithm that outlines the
    solution
  • Implementation translate the algorithm to
    computer code (Java for us)
  • Verification and Testing make sure the
    implementation is correct
  • Test code with input you can check for example
    with 1 pound, 10 pounds is your solution
    correct?

12
  • Software/Program Development
  • Specification specify the problem (description)
  • Analysis understand the problem list data that
    store relevant information what are the inputs?
    outputs? list any formulas that might be needed
  • Design develop an algorithm that outlines the
    solution
  • Implementation translate the algorithm to
    computer code (Java for us)
  • Verification and Testing make sure the
    implementation is correct

13
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com