I've done crazier things but....

closed account (3CG1hbRD)
[i]Right now I am pretty far behind in C++. I studied the syntax and a few examples of if statements, for while and do loops, and case statements, I did one assignment with a 2 dimensional array that I had a good bit of help with but seriously doubt I could do it on my own, another random program.That's all I can remember. One of my other classes keeps me so busy it is very difficult to focus the amount of attention on this class that I need to. But oh well I have no choice but to somehow make a miracle happen in the next 6 days and if it is humanly possible, I plan to do it. I have no choice but to get this right the first time so I'm pretty much all in at this point.

I posted my assignment originally ONLY to give the group an idea of what my upcoming assignments would be. And then I told them where my understanding starts fading. I figured maybe someone would have a specific recommendation for me, because my book is confusing, and I figured I am not the only one who doesn't understand it. I wrote this down below and I am writing it again. I am not trying to cheat on any assignments, I am trying to learn an astounding amount in a short amount of time and figured someone in here may have some advice for me. That is it. I do not cheat. Period. I have had help from classmates and group members on previous assignments, but don't feel like I am actually learning enough so I am trying to take a different approach.

Last edited on
jkh1919 wrote:
Right now I am pretty far behind in C++. I studied the syntax and a few examples of if statements, for while and do loops, and case statements, I did one assignment with a 2 dimensional array that I had a good bit of help with but seriously doubt I could do it on my own, another random program.That's all I can remember. One of my other classes keeps me so busy it is very difficult to focus the amount of attention on this class that I need to. But oh well I have no choice but to somehow make a miracle happen in the next 6 days and if it is humanly possible, I plan to do it. I have no choice but to get this right the first time so I'm pretty much all in at this point.

Here's the assignment that is due on the 14th

On a given exam, the points awarded for each problem are recorded in a text file, with one line
of the file for each student that took the exam. Create a program that reads this text file and
determines
• each student’s total grade for the exam
• the class average for the exam
• the average number of points given for each problem
Program Requirements
• The input data file will be a plain text file with each number separated by a single space.
• All numerical data (student ID, scores) must be stored in a 2-dimensional array.
o The final column of the array should hold the total score for each student.
Caution: do not include the student ID in the sums!
o The final should hold the averages for each column.
o There will be 4 problems and 5 students, so the array should hold 6 rows (5
students + average) and 6 columns (ID, 4 grades, and exam total).
• All calculations and array access must be performed using pointers and dereferencing.
You may use [ ] only when reading and writing the data files.
• The results must be printed to the screen as well as written to a file in table format.
Program Organization
Your program should contain the following functions: main, loadDataFile, calculateResults,
writeResultsFile, and printResults.
• main – create empty 6x6 2-D array to hold data and then call other functions as needed,
passing them the array
• loadDataFile – read the input file, storing the data in the 2-D array
• calculateResults – performs all calculations
• writeResultsFile – creates and writes the resulting array to the output data file
• printResults – prints the results to the screen
Example Input:
1 20 22 12 10
2 20 10 19 25
3 10 0 20 21
4 25 25 25 25
5 15 20 19 17
Example Output File
1 20 22 12 10 64
2 20 10 19 25 74
3 10 0 20 21 51
4 25 25 25 25 100
5 15 20 19 17 71
0 18 15.4 19 19.6 72

I'm sure this will be no easy task, but if it is at all possible, or just possible to be able to at least "half way" (for lack of a better word) do it, because right now, I would have no clue where to start. And please, before anyone says it I'll just say it myself. I know this is not all the result of my other classes yes, I am responsible for my own situations, just like everyone else. That's not why I'm here, I am here because I need some serious help and quick. With that being said, I need as much advice as I can get on how to possibly cram that much info into my brain in that amount of time, given the time it will take me study for other classes, sleeping, and everything else that is non condusive to studying programming. Believe me if I didn't have to sleep I wouldn't. If anyone knows of any crash course like tutorials (besides the one on C Programming.com with Alex Allain (used that one already). If there is anything else anyone can offer me I will take it into consideration as these last few days are pretty much my last chance to pull out of a serious rut of a semester altogether. I need help with accounting and Access databases also, ESPECIALLY databases. Any help is appreciated thanks.


Sorry, we don't write homeworks for others. You must do your effort. We can help with specific questions over code you have written, but we won't write the whole thing for you. Hell, most of us won't even read this loooong post in the first place.

So be smart about how you ask questions. If you really need help, we can really help, but you must do your own lifting.
closed account (3CG1hbRD)
Oh, well I'm glad you mentioned that. I guess I should have mentioned that I am not asking anyone to do my homework for me. Nor am I even asking someone to tell me how to do it. I know quite a few programmers who would gladly do this assignment for me just for a favor, but that would defeat the entire purpose of even going to school. Which is why I am going to do it on my own, but programming languages still seem like hieroglyphics to me and I have a ton of questions.

I learn best by asking questions. I'm not sure if that is what this forum is for, but that's what I need. If you are not understanding the explanation provided in the books, you need someone to basically translate it for you. Furthermore, this assignment isn't the real issue, the real issue is the final exam. It is not far away and if I can't do this on my own, I will fail the final anyway, so it won't matter if this assignment is done, I need to learn this, not just pass the class.

And honestly, sometimes the book I have answers those questions in a way that I don't understand. Basically, I learn best when I'm talked to like a 2 year old. Best way I can say it. Like literally help me understand logical from physical aspects of the program. Basically I am on this forum so I can ask random questions about C++ at any time. I just don't know exactly where to start. I am 32 years old, did not grow up using comuters and never had an email account until 2006. The first day of this class the teacher might as well have been speaking in Russian and nearly every day since has been pretty much the same. If you were already experienced with programming before this Introductory Programming class, you are fine, but if not, well, it has been a rough semester for a large number of my classmates as well.

I am asking how if at all possible, can someone go from just barely understanding "if" statements, "for, while, and do loops" and just barely on arrays...one dimensional at that.

To be able to do this assignment by myself, and myself only.. in 6 days. I really have trouble understanding the textbook sometimes, and it takes a very long time, so I was hoping maybe someone knew of a quicker easier to understand way to learn this in a short amount of time. Sometimes there are tutorials on sites such as CProgramming.com (which I've already gone through but need more practice and explanations), and I am only asking for recommendations. Or maybe an online lecture that someone reading this may know of, and can recommend. Like Kahn Academy for math, but for C++, if that helps. I've learned alot in many other areas by posting in forums, and once again, I am hoping to accomplish the same in this one.

Would it help if I posted my previous 4 homework assignments? Are there online tutors in this forum? Is there a community chat with a moderator who is fluent in C++ and can explain them to us in simple, human terms. Cause that would just help me out tremendously.
Last edited on
closed account (3CG1hbRD)
Not sure who "reported" me or who you "reported" me to, but wow, I guess I thought I was coming into a forum of C Programming students discussing C Programming. Apparently I am in a forum of someone trying to pick my words apart any way they can to try to make me look like I am cheating, because it makes you feel empowered I guess. Well I said 5 times I am not asking someone to do this assignment, I am not asking someone to walk me through...this assignment. I WAS asking the general forum basically if there are any online sources that I am not aware of that will help me to LEARN this, so that I may do it on my own.

I am not stupid, nor do I pay a ridiculous amount of money for a programming class...only to cheat my way through and not learn a thing. If I was, this would be the last place I would be going. Apparently I'm in the wrong place. Not sure if you ACTUALLY reported me, or to my University but I sincerely hope not. Because if you read my POST, you will see that is not what I am asking.

I will figure it out on my own, I don't need help from others THAT bad. Goodbye
Granted, I didn't read any of this because it was some pretty lengthy posts, but skimming through I saw nothing report worthy.

Now to the problem in question, do what webjose did. Try to do it yourself, and then ask questions about SPECIFIC issues you may run into. Also like he said, almost nobody will read this due to the length of the post. We're generally helpful people, but we don't like to read through pages of text :) We usually do this enough at work
closed account (3CG1hbRD)
Thanks. I just went to You Tube. I figured I'd try the forum first. Seemed to be a good place to start.
Topic archived. No new replies allowed.