Search:

Type: Posts; User: alex1067

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,336

    Address of variables?

    I was trying to figure this problem out. I know that if the address for each variable were not in this problem, i =14 j = 7 p=14 q=7...How does adding in the address for this program affect the...
  2. Thread: Array Program

    by alex1067
    Replies
    5
    Views
    2,385

    Array Program

    I have to write a program that deals with arrays. I think I am doing this totally wrong. Do I need a for loop to do the increment?



    11
    12 Write a C program (named pe4.c) will prompt
    ...
  3. Replies
    3
    Views
    1,831

    Ok the - 2 does not need to be there for the...

    Ok the - 2 does not need to be there for the width. it just needs to be less than the width. That gives me the left leg. Thank you!
  4. Replies
    3
    Views
    1,831

    Program almost finished

    Last weekend I posted about this program to make a "table shape" out of asterisks. I am almost there except for the missing left leg of the table ,and the bottom row of asterisks does't need to be...
  5. Replies
    18
    Views
    3,397

    Can anyone please show me where to put the ...

    Can anyone please show me where to put the printf(" ") in my code?
  6. Replies
    18
    Views
    3,397

    Ok thank you. Now I just have to work on where to...

    Ok thank you. Now I just have to work on where to put the printf(" "); at.

    Thanks



    6 #include <stdio.h>
    7
    8 int main(void)
    9
  7. Replies
    18
    Views
    3,397

    Can I put whatever I want where the green text...

    Can I put whatever I want where the green text is? I need the width to be between 4 and 40.

    So i == 4 < width < 40 ?
  8. Replies
    18
    Views
    3,397

    Ok but wouldn't this leave more of a "filled box...

    Ok but wouldn't this leave more of a "filled box shape"? I need the inside to be empty so it looks like a table

    The code you sent me should output this I believe





    Enter width:10
    Enter...
  9. Replies
    18
    Views
    3,397

    I understand the for loop. My problem is trying...

    I understand the for loop. My problem is trying to work with * rather than a number...Can I set an int such as width = * /
  10. Replies
    18
    Views
    3,397

    The instructor said I would need a loop. Can you...

    The instructor said I would need a loop. Can you give me an example of what I need to do?At the rate I am going I will be here all night. What I am doing is wrong I think.



    6 #include...
  11. Replies
    18
    Views
    3,397

    Help writing a program

    I need help writing a program. The program calls for a user to be asked a width and height to make a table of asterisks. The height can ONLY be 3 or 5, and the width can be between 4-40. The table...
  12. Replies
    7
    Views
    1,506

    What am I doing wrong? 5%2 = 3 3 * 3 =...

    What am I doing wrong?

    5%2 = 3 3 * 3 = 9 9/4 = 2.5 2.5 * 4 = 9 9+9+5 = 23
  13. Replies
    7
    Views
    1,506

    Operator Precedence

    Can some one please explain what the output will be? Where do you place the parentheses to do normal order of operations

    5 + 2 % 5 * 3 / 4 * 4 + 9

    I got an answer of 23?
  14. Replies
    9
    Views
    1,696

    You mean comparing 3 and 7? How would I go...

    You mean comparing 3 and 7?

    How would I go about doing that?
  15. Replies
    9
    Views
    1,696

    It is incorrect because I have to put in...

    It is incorrect because I have to put in characters by pulling down on a tap on website and it has 22 spaces and that code is too short, when I pull down any tab, I have theses choices, it is a...
  16. Replies
    9
    Views
    1,696

    Apparently, this code I am trying is still...

    Apparently, this code I am trying is still incorrect.



    if (ch == 3 || ch ==7)
    ++count;


    Laserlight, how did you know to use pre increment instead of post increment
  17. Replies
    9
    Views
    1,696

    The if statement.

    Can Someone please help me write this?

    Write an if statement which will increment a variable 'count' if and only if the input character 'ch' has a value of 3 or 7. NOTE: test for '3' first, then...
  18. Replies
    21
    Views
    3,940

    Electromagnetics has been my favorite course :)...

    Electromagnetics has been my favorite course :)

    How similar is C programming to MATlab?
  19. Replies
    21
    Views
    3,940

    Ice Dane, I am a junior Electrical engineering...

    Ice Dane, I am a junior Electrical engineering student and this is the only programming course I have to take. We are on "loops" in the book and that is what is supposed to be used for the...
  20. Replies
    21
    Views
    3,940

    Honestly, I understand the program I wrote more...

    Honestly, I understand the program I wrote more clearly. I am 8 weeks into "Intro to computing" course. Thank you for your help. My next task is to try and get it to print the day of week and not the...
  21. Replies
    21
    Views
    3,940

    I understand my mistake with logical operators....

    I understand my mistake with logical operators. Thank you. Now I get a value of 0,1,2,3,4,5,6when I run the program. It is printing the enums and not the days of the week.




    7 #include...
  22. Replies
    21
    Views
    3,940

    I understand how enum works but what are z and k...

    I understand how enum works but what are z and k doing





    9 int main(void)
    10
    11 {
    12
  23. Replies
    21
    Views
    3,940

    I am looking in my book, I do not see a way to...

    I am looking in my book, I do not see a way to printf an enum.

    I have been working on this for 3 hours now. =(
  24. Replies
    21
    Views
    3,940

    I tried this enum and am still getting an error...

    I tried this enum and am still getting an error when I used the word day in my code. Can you give me an example of using divisions to find the day...
  25. Replies
    8
    Views
    1,812

    Ok sorry I thought I was in the C programming...

    Ok sorry I thought I was in the C programming section. I must have had it bookmarked wrong. Thank you
Results 1 to 25 of 32
Page 1 of 2 1 2