Homework help

This is a discussion on Homework help within the C++ Programming forums, part of the General Programming Boards category; I need to write an algorithm (step-by-step English phrases and not C++) that allows for the input of an integer ...

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    5

    Homework help

    I need to write an algorithm (step-by-step English phrases and not C++) that allows for the input of an integer value, doubles it, subtracts 10, and
    displays the result. How would i write these steps in English phrases?? i am not asking for you to do this for me. just asking what it means by English phrases, and what they look like.

  2. #2
    Registered User
    Join Date
    Feb 2011
    Posts
    13
    What you're doing here is just listing the steps. Step one, Have the user input value for integer, step 2, double the integer. The idea is that you know how to break down the task into steps. You then take the steps and write code for them (but they just want the steps for now)

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    5
    So just like
    Step one:Have user input int.
    Step two: Double the int inputted by user
    Step three: Subtract ten
    Step four: display results

    so you mean like that??

  4. #4
    Registered User
    Join Date
    Feb 2011
    Posts
    13
    Yep.

  5. #5
    Registered User
    Join Date
    Feb 2011
    Posts
    5
    oh ok that's easy enough. thanks

  6. #6
    Registered User
    Join Date
    Feb 2011
    Posts
    13
    You're welcome. I was doing the same thing like 2 weeks ago

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Homework
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 11-03-2001, 04:39 PM
  2. Homework
    By kermi3 in forum C Programming
    Replies: 10
    Last Post: 09-27-2001, 05:49 PM
  3. Homework
    By kermi3 in forum C++ Programming
    Replies: 15
    Last Post: 09-26-2001, 04:16 PM
  4. Homework
    By kermi3 in forum C Programming
    Replies: 0
    Last Post: 09-10-2001, 02:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21