Search:

Type: Posts; User: Kayla Hoyte

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Yeah, I deserved that. Moving on, I think I...

    Yeah, I deserved that.

    Moving on, I think I figured it out except the integer division in which I use decimals.



    #include <stdio.h>
    #include <stdlib.h>
    #define FIRSTCHOICE 1
    #define...
  2. aahahaha I'm really bad at programming, my...

    aahahaha I'm really bad at programming, my apologies.

    Yes i can use anything else but I have to use at least two functions. Also yes, that's what I'm looking for. How exactly would I add the...
  3. So as a result I have to use doubles?

    So as a result I have to use doubles?
  4. Yeah I want the uset input to be put as the input...

    Yeah I want the uset input to be put as the input in either equation. Where would I put the switch statement?
  5. Temperature converter program with functions

    Hello again.

    I need help with this program. I need to connect the functions but I am having trouble doing so. The requirements are in the code. This is what I have so far:



    #include...
  6. I think I got it! thank you sir :)

    I think I got it! thank you sir :)
  7. That is a brilliant idea. I did so and I see that...

    That is a brilliant idea. I did so and I see that 'i' does not add one to itself. Do I need to add 'i += 1'?



    #include <stdio.h>
    #include <stdlib.h>
    #define SIZE 50
    int main()
    {
    int...
  8. Thank you, that solved most of the issues. Now...

    Thank you, that solved most of the issues.
    Now the only problem is that 'i' isn't incrementing. I need it to start at zero and end at 49. Is 'i' in the incorrect place?



    #include <stdio.h>...
  9. OH, I just realized the 'scanf_s' in my post. In...

    OH, I just realized the 'scanf_s' in my post. In my dev environment I have 'scanf'. My bad.

    I'm still stuck, unfortunately.


    #include<stdio.h>
    #include<stdlib.h>
    #define SIZE 50
    int main()...
  10. I'm using Dev C++ so I use scanf, no? The...

    I'm using Dev C++ so I use scanf, no?

    The first one stops when i is less than or equal to 49. The second one stops at 49 also?
  11. . #include #include...

    .



    #include<stdio.h>
    #include<stdlib.h>
    #define SIZE 50

    int main()
    {
  12. Thank for being honest. Unfortunetly I have to...

    Thank for being honest. Unfortunetly I have to use a array for this. I (think) I have addressed some of your issues in my code in my last post.
  13. using #define SIZE 50 does not set 50 to each...

    using #define SIZE 50 does not set 50 to each SIZE? And I'm sorry but how would another assignment exactly work? Thanks.



    #include<stdio.h>
    #include<stdlib.h>
    #define SIZE 50

    int main()
    {
  14. I thought about your comments and came up with...

    I thought about your comments and came up with this:



    #include<stdio.h>
    #include<stdlib.h>
    #define SIZE 50

    int main()
    {
  15. C program with arrays, while loop, and sentinel value

    Hi, for this assignment I must allow the user to enter numbers into an array. When the array size exceeds 50 or when the user enters -999, the array will be displayed.

    The problem: The sentinel...
  16. Replies
    11
    Views
    8,002

    That did it. Thank you. How does one change...

    That did it. Thank you.

    How does one change the documentation to C11 or C9? I am using Dev C++.
  17. Replies
    11
    Views
    8,002

    Hello quick update. I decided to re-haul my code....

    Hello quick update. I decided to re-haul my code. I now have trouble finding how to calculate the smallest and largest number from stored variables.



    #include <stdio.h>
    #include <stdlib.h>...
  18. Replies
    11
    Views
    8,002

    Here is the assignment: Youneed to write a menu...

    Here is the assignment: Youneed to write a menu driven program.
    Theprogram allows a user to enter five numbers and then asks the user to select achoice from a menu. The menu should offer following...
  19. Replies
    11
    Views
    8,002

    Thank you for the resources.

    Thank you for the resources.
  20. Replies
    11
    Views
    8,002

    Ah right the semicolon! Plus you are right, it...

    Ah right the semicolon! Plus you are right, it does nothing. So I was thinking of removing it for an if statement?



    if(number == -1){
    printf("\nChoose a selection 1-4 from the menu:\n");
    ...
  21. Replies
    11
    Views
    8,002

    Hi and ty for replying. I intended for it to...

    Hi and ty for replying. I intended for it to happen this way. The user enters number and presses enter. They repeat this five times before typing -1 to stop. Then the menu shows up.
  22. Replies
    11
    Views
    8,002

    Help with Repetition/Switch program

    Yes, it's me again. (hello)

    My program will not stop using -1 even though it is the sentinel value. Please help me locate my mistakes. Otherwise, I believe everything else is correct. We just...
  23. Replies
    25
    Views
    17,591

    I got it to work!!!! :D Adding the double part...

    I got it to work!!!! :D
    Adding the double part was the solution. Thank you so much for your help and patience guys. I think planning it out first by hand will help me a lot.
  24. Replies
    25
    Views
    17,591

    (I should note that I am using Dev-C++) I...

    (I should note that I am using Dev-C++)

    I fixed some of the issues I made. I tested and saw that when I put in two, three, four numbers that are passing it displays the percentage correctly (at...
  25. Replies
    25
    Views
    17,591

    I think I understand userxbw, and thank you...

    I think I understand userxbw, and thank you Matticus. So passingGrades will start at 0 and so will failingGrades. total is failingGrades added to passingGrades. percentage is passingGrades divided by...
Results 1 to 25 of 37
Page 1 of 2 1 2