Search:

Type: Posts; User: Rednally

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,435

    I know they want me to generate random numbers...

    I know they want me to generate random numbers everytime, Im having trouble keeping that random number and being able to run it through the entire program consistently.

    Could someone give me a...
  2. Replies
    4
    Views
    2,435

    Program that replicates an ATM machine

    The customer will be assigned a random number for his/her balance.


    First, the customer is prompted to enter his personal identification number pin (for this case study, we test only if this pin...
  3. Replies
    12
    Views
    1,483

    Thank you for all of your input! Do you know...

    Thank you for all of your input!

    Do you know of somewhere that has multiple beginner level problems such as this one, with the answers included? My textbook does not include the answers.
  4. Replies
    12
    Views
    1,483

    This was as close as I could get to what I...

    This was as close as I could get to what I needed.


    /*Jake Yllander
    Write program with 2 functions, that shows the pay raise of 5% for up to 100 employees.
    Prompt user to enter salary,...
  5. Replies
    12
    Views
    1,483

    #include #include ...

    #include <stdlib.h>
    #include <stdio.h>


    main() {
    int i;
    int sal;
    int sn;
    int pr;
    int salpayraise;
  6. Replies
    12
    Views
    1,483

    @jimblumberg

    @jimblumberg
  7. Replies
    12
    Views
    1,483

    How could you display individual pay increases...

    How could you display individual pay increases for up to 100 people with only 5 variables? Could you help a little more than just telling me that? I dont need the answer to the homework, just a...
  8. Replies
    12
    Views
    1,483

    Large amount of data input

    I have this HW problem
    Write the program with two functions to solve the following problem.
    Theres a pay raise for 100 faculty members. They are considering a pay increase of 5%. Write a program...
  9. Replies
    8
    Views
    4,807

    What's the point in having scanf if scanf_s is...

    What's the point in having scanf if scanf_s is just safer and all around more useful?
  10. Replies
    8
    Views
    4,807

    Scanf Vs Scanf_s

    Whats the difference? Why have I been able to use scanf so far with no problems, but my professor wants me to use scanf_s?
  11. Oh my god, finally it clicks. I think the problem...

    Oh my god, finally it clicks. I think the problem was that you thought smallest = largest = number; was something I was smart enough to figure out haha! Just kidding, but really thank you matticus I...
  12. I dont know how to do that. How can I set the...

    I dont know how to do that. How can I set the input to both the smallest AND the largest? What do you mean by only the first time around?

    We haven't learned INT_MAX yet so there has to be a way to...
  13. So the problem with this program, is the...

    So the problem with this program, is the statement smallest = number; OUTSIDE of the loop, not the statement inside of the loop?

    I have no clue how to set the first value to smallest if thats not...
  14. In the videos that my professor has online, he...

    In the videos that my professor has online, he always uses %lf in the printf

    Could this be because the only data variables we know so far are double/int ?
  15. Wow thats weird, I have no idea why my programs...

    Wow thats weird, I have no idea why my programs acting like that.
    Why would it do that for numbers (1,2,3,4,5) but not something like (18, 21, 17, 44, 9)?
    14705
  16. Pretty proud of this program i wrote, any critiques?

    Anything a more advanced programmer would say I should be looking to do for a program like this?
    Any tips or tricks?

    Thanks!

    Edit for clarity: My code works 100% as intended, just wondering if...
  17. Thanks so much, really helped!

    Thanks so much, really helped!
  18. I thought that because the "If" loop was inside...

    I thought that because the "If" loop was inside the "While (number!= -1)" loop that the input of -1 would be invalid?
  19. #include #include /* 3/1/2016...

    #include <stdio.h>#include <stdlib.h>/*
    3/1/2016
    Jake Yllander

    You are to write a program that will allow a user to enter infinite numbers (one number at a time
    and all numbers are greater than...
  20. could use some input on to why my code is acting...

    could use some input on to why my code is acting up, this is not for a grade or an assignment, just trying to learn more about assigning values in C
  21. Why does my program work sometimes? (Simple)

    #include <stdio.h>#include <stdlib.h>/*
    3/1/2016
    Jake Yllander


    You are to write a program that will allow a user to enter infinite numbers (one number at a time
    and all numbers are greater...
  22. I think im getting it... slowly #include...

    I think im getting it... slowly

    #include <stdio.h>#include <stdlib.h>
    /*You are to write a program that will allow a user to enter infinite numbers (one number at a time
    and all numbers are...
  23. @Matticus am I on the right track assigning...

    @Matticus am I on the right track assigning highest/lowest values to the user input?


    main() {

    int number = 0, number2 = 0, largestNumber = 0, smallestNumber = 0, count = 0, sum =...
  24. #include #include /*You are...

    #include <stdio.h>#include <stdlib.h>
    /*You are to write a program that will allow a user to enter infinite numbers (one number at a time
    and all numbers are greater than zero).You must have a way...
  25. Hmm, I thought of doing it like this, but this...

    Hmm, I thought of doing it like this, but this doesnt work when the number of inputs is random, for example if someone entered in 25 numbers, this way of finding the largest and smallest is...
Results 1 to 25 of 44
Page 1 of 2 1 2