Search:

Type: Posts; User: Neotriz

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    954

    Programming crashing error

    Basically I'm supposed to make a spell check program and whatever the word is misspelled, it will print out the words from dictionary.txt to match the it (that's where the function will take its...
  2. Replies
    3
    Views
    1,096

    Sorry, I meant 001012012301234

    Sorry, I meant 001012012301234
  3. Replies
    3
    Views
    1,096

    output misunderstanding

    I'm having trouble understanding the output of this code:


    #include <stdio.h>

    void a(int num);
    void b(int num);

    int main() {
    a(6);
  4. Thread: Loop help

    by Neotriz
    Replies
    2
    Views
    944

    Loop help

    Allright pretty much i just need help on loop


    Basically, Im supposed to make a program that involves two games: Arithmetic and Factorization. The latter is what I'm having trouble with

    Here's...
  5. Replies
    7
    Views
    2,892

    I was introduce to pointer on Friday, so I'm...

    I was introduce to pointer on Friday, so I'm still confused about it, but thanks. Ill take a look at it again.

    I fixed the latter problem and it works fine now


    for(i=1; i<= max_questions;...
  6. Replies
    7
    Views
    2,892

    So far, I've written this, under Game 1: ...

    So far, I've written this, under Game 1:


    //This is Game 1, which is the arthimetic game

    if (game==1){
    printf("Would you like, 1)Addition or 2) Multiplication?\n");
    ...
  7. Replies
    7
    Views
    2,892

    I'm sorry, but I'm not sure what I need to fix,...

    I'm sorry, but I'm not sure what I need to fix, based on what you've posted
  8. Replies
    7
    Views
    2,892

    If it is in the main function, this is what I...

    If it is in the main function, this is what I wrote, under Game 1:




    srand(time(0));
    numb_prob= 1 + max_questions;

    for(i=0; i<= numb_prob; i++){
  9. Replies
    7
    Views
    2,892

    Need help starting a program with functions

    So basically, one of my homeworks is to make a program that will ask arithmetic questions and some factoring questions to the user. The functions' purpose is to calculate how long it took the user to...
  10. Replies
    3
    Views
    2,326

    Thanks for the tip mate. How do you turn up...

    Thanks for the tip mate.

    How do you turn up the warnings?
  11. Replies
    3
    Views
    2,326

    Finding the total mass of a snowman

    With using functions, I'm supposed to find the total mass of a snowman.

    For some reason, it's giving me the wrong answer:




    #include <stdio.h>

    #define PI 3.14159
  12. Replies
    3
    Views
    1,828

    *fscanf(kam, "%d", &numcases)

    *fscanf(kam, "%d", &numcases)
  13. Replies
    3
    Views
    1,828

    Need help on the homework (if statements)

    I'm having a trouble to make a program that can distinguish an "abundant" number. Here's the question:



    This is what I have so far:


    #include <stdio.h>
    int main () {
    FILE *kam;
  14. Replies
    11
    Views
    1,381

    Something else is wrong. The output says the...

    Something else is wrong. The output says the prob. is zero.

    I'm pretty sure it has something to do with increments
  15. Replies
    11
    Views
    1,381

    For the first comment, did you mean like this: ...

    For the first comment, did you mean like this:


    int main() {

    int count, total;
    int i=0;
    int j=0;
    double sum=0;
  16. Replies
    11
    Views
    1,381

    Little help finding a bug in this program

    Here's the question:

    This program is intended to calculate the probability that if a person
    rolls two fair sixed-sided dice, that they will get a total of 8. This
    is done by looping through all...
  17. Replies
    9
    Views
    1,849

    Thank you! I was actually looking the other way...

    Thank you! I was actually looking the other way around

    Thanks alot, that clears up
  18. Replies
    9
    Views
    1,849

    So if thats the case, then wouldnt the program...

    So if thats the case, then wouldnt the program read like this:


    if (i%5 > 2)

    1=5
    2=5
    3=5
    4=5
    5=0
  19. Replies
    3
    Views
    955

    D'oh! Thanks for clearing up

    D'oh!

    Thanks for clearing up
  20. Replies
    3
    Views
    955

    Order Operation

    This is what I wrote for the following hw:


    Complete the program below so that when the user inputs the average speed of a car (in mph), the amount of time the car traveled (in hours), and the...
  21. Replies
    9
    Views
    1,849

    Little bit confused on the Mod Operator

    Here's a sample from my review:



    7) How many times does the letter A print out in the following segment of code?


    int i=0;
    while (i < 20) {
    i++;
  22. Replies
    7
    Views
    1,844

    Can you help me write this code? if...

    Can you help me write this code?


    if divisible_by_5_day and not divisible_by_25_day then go to subway

    This is what I've written:



    #include <stdio.h>
  23. Replies
    7
    Views
    1,844

    Mod Operator help

    I have a homework that involves with mod operator.





    I'm just having trouble how the program can distinguish from a divisible of 5 to 25.

    here's what I've wrote:
  24. Replies
    2
    Views
    871

    never mind, problem solved

    never mind, problem solved
  25. Replies
    2
    Views
    871

    EDIT: the second question should be "How many...

    EDIT: the second question should be "How many spots..."
Results 1 to 25 of 34
Page 1 of 2 1 2