Recent content by Joe_K

  1. J

    Comp Sci Fix C++ Compiling Error - Need Urgent Homework Help | CreditAccount

    Homework Statement Well I have written my entire program for my assignment, but I cannot get it to compile without multiple instances of the same error: "expected primary-expression before ']' token. Can anybody see a mistake I am making? I would greatly appreciate your help, thank you...
  2. J

    Comp Sci C++ Why is my function printing TWICE?

    Homework Statement My printArray function, when called in my int main() with the arguments ("***monthly total***, sums, NUM_MON) is printing out twice as many times as it should be, and for some reason, even the string caption is printing out as "******monthly total******" instead of...
  3. J

    Comp Sci Why Does My C++ Array Program Give a Cannot Convert Double to Double Error?

    Ok, I fixed that and now it seems I have a new problem. I am getting compile errors:line 148: a function-definition is not allowed before '{' token line 148: expected , or ; before '{' token line 164: a function-definition is not allowed before '{' token line 164: expected , or ; before '{'...
  4. J

    Comp Sci Why Does My C++ Array Program Give a Cannot Convert Double to Double Error?

    Ah, I see now. Thank you very much for pointing that out for me guys. From now on I will be sure to use the [code] tags. Thanks!
  5. J

    Comp Sci Why Does My C++ Array Program Give a Cannot Convert Double to Double Error?

    I must be missing something, where do you see that the prototype does not match the definition? Thanks for you help. I will post the line number of the compile error in a few minutes when I get back to my main computer.
  6. J

    Comp Sci Why Does My C++ Array Program Give a Cannot Convert Double to Double Error?

    Homework Statement I am not completely finished with the assignment, but I was trying to test to make sure that my functions "low" and "high" would in fact return the proper value (the lowest number in the array, and the highest number in the array, respectively). However, when I compile, I...
  7. J

    Comp Sci How Do You Correctly Implement a String Input Validation Loop in C++?

    I meant to type Menu(). To myself, Menu(string) would make more sense, but for some reason the professor told us to type it like that without any arguments. Is this most likely a mistake from her end, or is there some other way to take an argument?
  8. J

    Comp Sci How Do You Correctly Implement a String Input Validation Loop in C++?

    Homework Statement I am writing a program which requires me to make and call a function: string Menu() This function will display a message to the user. It will then accept the user's choice (as a string) and check it for validity - that is did the user enter a "1", "2", "3", "4", "Q", or...
  9. J

    How to Solve a Kinematics Problem?

    Homework Statement A bird is coasting along in an easterly direction at 0.447 meters/sec when a strong wind from the south imparts a constant acceleration of 0.300 m/s2. If the acceleration from the wind lasts for 2.70 s, find the magnitude, r, and direction, θ, of the bird's displacement...
  10. J

    Comp Sci Why Is My C++ Program Outputting Zeroes Instead of Averages?

    Normally I would make them all float or double, but the professor specifically said that all of the user input data must be stored as integers.
  11. J

    Comp Sci Why Is My C++ Program Outputting Zeroes Instead of Averages?

    Homework Statement I am in a beginner c++ class and this is my second program. I am having trouble getting the calculations to output correctly. I'm not sure what I'm doing wrong here, maybe somebody can help. Homework Equations The program takes user input data for points in a...
  12. J

    Fundamental Theorem of Calculus

    Homework Statement I am working on some problems with the fundamental theorem. I need to refresh my memory though, because I have forgotten exactly how to do these problems. I actually am not even sure if I use part 1 or part 2 of the FTC for these problems, so if you could help me in the...
  13. J

    What is the Volume of a Solid of Revolution Rotated about the x-axis?

    I think I forgot to square the radius when I originally did it. I redid the problem and came up with 19pi/12. Is this still wrong?
Back
Top