Search:

Type: Posts; User: sal817

Search: Search took 0.00 seconds.

  1. Thread: square matrix

    by sal817
    Replies
    1
    Views
    1,851

    square matrix

    well,i'm working on this program that has been asked many times.
    "The magic squares". here what i got so far. I can compile it with no errors, but with no output. I think i'm not passing the arrays...
  2. Replies
    3
    Views
    2,780

    trouble with structure

    I'am just starting with programming a code with structure. I need some input on the bottom four lines of codes., why wouldn't it read in the values. Seems to work fine, up to that point.


    ...
  3. Thread: validate isbn

    by sal817
    Replies
    14
    Views
    6,665

    Salem, didn't mean any harm,i'm just playing...

    Salem, didn't mean any harm,i'm just playing around with it, so that i may understand it. here is your code you post. For example the last digit, if a char X was entered, then it mulitplies it with...
  4. Thread: validate isbn

    by sal817
    Replies
    14
    Views
    6,665

    hey, thanks to all for your help, I'm almost home...

    hey, thanks to all for your help, I'm almost home to finish it. I had to change some of it to understand it myself. I'm still having probably changing the character X to the number 10. Code sums to...
  5. Thread: validate isbn

    by sal817
    Replies
    14
    Views
    6,665

    i guess i'm not tell the truth for code, this is...

    i guess i'm not tell the truth for code, this is what i like to do
    take an isbn number with last digit is an X

    0 1 3 2 8 8 3 6 6 X,

    if i do have a char X ,then X =10

    then do this...
  6. Thread: validate isbn

    by sal817
    Replies
    14
    Views
    6,665

    I've played with it and still not getting the...

    I've played with it and still not getting the right sum. Ok, how do i know when it's multiply by the numbers 1-10 in string array, then i'm confused after mulitpy out, then sum them. I know it's...
  7. Thread: validate isbn

    by sal817
    Replies
    14
    Views
    6,665

    i try replacing with it with an uppeercase X(no...

    i try replacing with it with an uppeercase X(no good), what i would like to do is how this website explains corrrect ISBN by using mod 11

    http://www.ee.unb.ca/tervo/ee4253/isbn.html

    if iI...
  8. Thread: validate isbn

    by sal817
    Replies
    14
    Views
    6,665

    validate isbn

    hey ,guys,i'm stuck trying to validate a ISBN number(w/o hyphens). I want it to check the last digit for a X and update the sum. But i keep getting the wrong sum. What's wrong in my code?


    ...
  9. Replies
    17
    Views
    3,470

    Ronin, Is what i want to do, to 1.get the...

    Ronin,
    Is what i want to do, to
    1.get the number of books in stock for each category
    2. go through category(1) and get the avg price
    3.go through category(1) and get sell percentage

    so that...
  10. Replies
    17
    Views
    3,470

    ok i work on list last night, and still having...

    ok i work on list last night, and still having problems, How do i get from menu to the function(error--category does not return a function) I want to be able to store the option, and go through menu,...
  11. Replies
    17
    Views
    3,470

    i think i'm going the wrong way about doing this....

    i think i'm going the wrong way about doing this. Ok i want to ask the user to select option, store data in array, and ouput like this

    Autombiles Amount is 200
    Cookbooks Amount is 500...
  12. Replies
    17
    Views
    3,470

    can't use pointer either,only array if...

    can't use pointer either,only array if else+while+for
  13. Replies
    17
    Views
    3,470

    I haven't learned the switch case yet, so not...

    I haven't learned the switch case yet, so not allowed to use in program
  14. Replies
    17
    Views
    3,470

    Code:

    here is what i came up with, i can select menu, go to that option,back to menu, do something different, but can't get it to print out my array after all input has been stored. Any suggestions?


    ...
  15. Replies
    17
    Views
    3,470

    confused about arrays

    ok, i know that store data in arrays. for example int grades[5], but let's say i don't want to input all five yet, first input (90), then go back to menu, choose a subject(Science), and input (91),...
  16. Replies
    9
    Views
    1,114

    help with array/p2

    Thanks sand_man,
    I'll try to come up with code and repost. One more question, how do i prompt the user to select a categorey of 10 and then go to the array to store info and after info is store...
  17. Replies
    9
    Views
    1,114

    help with arrays

    hey guys,
    i'm a newbie and need some assistance to begin my assignment.
    Well i need to prompt the user with a category(i.e. cd's) and ask
    three questions "What is the amount in stock, the average...
Results 1 to 17 of 17