Search:

Type: Posts; User: jbone0881

Search: Search took 0.00 seconds.

  1. Decimal to binary conversion with character string

    So I'm taking a new class that delves into assembly, but our professor is testing our C knowledge beforehand. This what he asks of us:

    Return the binary representation of a number x as a...
  2. Replies
    3
    Views
    3,388

    cool, i got it. thanks. #include ...

    cool, i got it. thanks.



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

    int main()
    {
    int seed, i,z;
  3. Replies
    3
    Views
    3,388

    Random number generator

    so, for this assignment they introduce the rand() function and also(finally) other libraries to use. anyway, the first program is as follows:

    Write a program that will print out 10 random...
  4. Replies
    3
    Views
    1,035

    Prime number function gives garbage value

    so i have to write a much larger program, but i am starting with the prime function to call first. anyway, it appears work work properly however, when it does recognize that it is prime, it prints a...
  5. Replies
    4
    Views
    1,041

    cool, thanks again...and probably again. I'll...

    cool, thanks again...and probably again. I'll give it a shot with the pseudocode. This class is stressing me out big time. We've finally gotten to functions, yet my teacher doesn't feel the need to...
  6. Replies
    4
    Views
    1,041

    New to functions

    We just learned briefly about functions today and have a list of programs to write, but I am stuck with this particular problem:

    Write a function void myInfo( ) that prints your name and email...
  7. Replies
    1
    Views
    871

    Factorials anyone?

    I have to write a program that prints a table of factorials. I need some help just getting the factorial algorithm to work before I can continue. I only have stdio.h and math.h to work with. I've...
  8. Replies
    1
    Views
    1,648

    Daily compound interest

    I've been doing well in this darn class up until this assignment. oh well, this is my first class and i'm only 5 weeks in. anyway, here is the program specifics:

    Suppose you invest $100.00 at an...
  9. Replies
    6
    Views
    3,413

    awesome i finally got it. thanks for all the...

    awesome i finally got it. thanks for all the help. i think i'm getting burnt out. anyway, i used:



    double principal = 100.00;
    int year;
    double rate = .10;

    ...
  10. Replies
    6
    Views
    3,413

    Compound Interest?

    I have been trying for many hours to get this to work, but alas no success. i have about 6 programs to write and they all build off of this one so I'm stuck. I could really use some help please. this...
Results 1 to 10 of 10