Search:

Type: Posts; User: levitylek

Search: Search took 0.01 seconds.

  1. Searching for strings in a large group of characters and numbers

    I've been tasked with creating a program that reads in 2 virus signatures as strings, i.e.
    '2A40 020E 0788 0002 33C9 8BD1 419C' and '10BC B801 33C9 8BD1 ABCD' Then given a text file such as: ...
  2. Reading names from a file into strings to reference later

    I have a file of names, for example:
    Nick Greg Matthew

    I also have an array of:
    1 2 3

    Is there a way to represent Nick as 1, Greg as 2, and Matthew as 3 so that later down the road when let's...
  3. Basically. It's a review problem for our final.

    Basically. It's a review problem for our final.
  4. Determine sum of every other value in list.

    Honestly I don't know anything about lists or pointers so I'm beyond lost on this.

    "Write a function that takes a pointer to the front node of a linked list and determines the sum of every other...
  5. Replies
    2
    Views
    5,620

    Perfect! That was exactly what I need thank you. ...

    Perfect! That was exactly what I need thank you. And i'll definitely look into a do while.
  6. Replies
    2
    Views
    5,620

    Programming menu options

    int main(){

    int ans;

    //Get user's input
    printmenu();
    scanf("%d", &ans);

    while (ans !=6) {
  7. Nevermind I figured it out, Xcode is weird and I...

    Nevermind I figured it out, Xcode is weird and I had the file in the wrong place
  8. Printing a graph with data read in from a file

    So I actually did this assignment awhile back, and now I have to combine the code into a new program, but when I went to test it out I realized it wasn't working. When I had submitted it I know it...
  9. "Expected declaration or statement at end of input"

    For starters this program is far from finished, I just completed the first option of my menu and I wanted to test it out but when I compile it, all the way at the very end with the last } I get an...
  10. The x axis is the five minute intervals based on...

    The x axis is the five minute intervals based on the amount of time the trip lasts, and the y axis is the mpg you get for that interval.

    Here's a link to a test file:...
  11. Reading in a file and printing out a graph from the data

    I'm provided with a file full of data on a car trip, here's an example:


    10 13
    1.131232 0.000183
    2.872323 0.000312
    4.233291 0.000422
    5.823823 0.000367
    6.464139 0.000316
    6.554324 0.000275
  12. When I change the -50's to 0's I get a quarter of...

    When I change the -50's to 0's I get a quarter of the circle:

    $$$*****************************
    $$$***************************** ...
  13. This is what i've gotten so far: #include...

    This is what i've gotten so far:


    #include <stdio.h>
    #include <math.h>

    int main() {

    int r1, r2, x, y;
    char grid [50][50];
  14. Printing out an ASCII tire based on two radiuses

    I need to print out a rough picture of a tire based on two radiuses. We need to include the axel (the +'s), the hub cap (the $'s), and then the tire portion (the *'s). But all I can get printed is...
  15. Replies
    3
    Views
    1,370

    Aha I got it! Thank you!

    Aha I got it! Thank you!
  16. Replies
    3
    Views
    1,370

    While loop issues

    I need to write a program that randomly generates multiplication problems based on how many the user says they want. So far this is what i've got:


    #include <stdio.h>
    #include <time.h>

    int...
  17. Are you allowed to use two &&'s in an if statement?

    for example:
    if (total <= mins_before && mins_dist * gpm > gas && total + 5 <= mins_before)
  18. Replies
    5
    Views
    2,239

    Gah thank you so much! In our instructions it...

    Gah thank you so much!
    In our instructions it said something about making a Pi a constant and that tripped me up but now that I go back and read it says define a constant for Pi :rolleyes:
  19. Replies
    5
    Views
    2,239

    Problems calculating distance and mpg

    I'm supposed to build a program that calculates miles per gallon when given the radius & revolutions of a car's tires, and the amount of gas used, but every time I try to test it out the final answer...
Results 1 to 19 of 19