Operating Systems assignment
I'm taking an Operating Systems class in which I have to write this monster of a C++ program and it's giving me a bit of trouble.
It would be amazing if someone would be able to help me out a bit. The only problem is the directions for the programming project are a bit intense. If anyone has a bit of free time on their hands I'd ENORMOUSLY appreciate it.
For the most part, my problem is that a lot of the directions are a bit vague and I'm not quite clear on how the information is to be stored.
The project outline can be found here:
http://cs.hofstra.edu/~cscsxd/hofstra/teaching/cs112/course_info/project1.txt
Basically I'm still working on the pseudocode for Part I (the create function). Here is some of the pseudocode I have so far (completely unfinished, and just some beginning ideas/attempts): www.techtalkforums.com/goodies/Homework.C
What I'm really confused about is how the information is to be stored in the two flat text files we're dealing with and how it's to be pulled from them. In addition, is it important that all of the contents of these files be stored in some form of ADT?
Thank you for taking the time to help me with this! :) It's enormously appreciated
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
As a side note: I know the due date for the assignment says Thursday! But basically an intro sketch of the pseudocode is due then, and it's still subject to change. So I'm not procrastinating! I'm right on schedule with the rest of the class :)
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
*bump*
anyone? please?
I'm going to go see if I can hunt down a professor later today and ask for their help. Just if someone could give me a hand with how to go about storing this info in the text file, and how it would be pulled out of the text file. (Not looking for code here, just logic/theory ideas)
EDIT: I just want to add, this is the first time I've programmed in about a year and a half, so please be kind to me!
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
Thank you for your reply. I can see you actually took the time to read over the assignment, for everything you said definitely applies.
I just got home from school and am doing my Creative Writing assignment right now. As soon as I finish it, I'll have the rest of the night to work on this CSC assignment (at which time I'll most likely revisit this thread and post the latest).
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
Aelfinn, you were really a big help to me, thank you :) I worked on the homework for quite awhile last night, and I'm going to go back to it tonite. As I mentioned already, the pseudocode is due tomorrow. :)
One question ...
The table which needs to be used as an index to the files: would it be okay if I pulled all of the information out of a text file upon opening the program, stored them in a linked list for the duration of the program, and then re-outputted them back to a flat text file when I am finished w/ them?
The program calls for adding/editing/removing files, so I figured this would be the best way to handle it.
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
Hmm ... binary trees.... I started the pseudocode with a linked list in my mind, so I basically made all of my traversals linear (e.g. point A straight through to point Z in a single for loop).
Now that I think about it though, a lot of the code requires searching for an entry, so that would def be the best way to go about it.
The problem is that I've never coded a binary tree before in any context. I'm completely confident in the structure and how the pointers operate, I've just never actually coded a whole program from start to finish via a binary tree.
Perhaps that's an option I'll definitely consider though. :) If I can piece together some pseudocode I'll do it that way. If I find myself getting stuck, I'll resort to the linked list for the time being (until I could come up with a better option).
Another question: straight C has no support for classes, right? Only structs? (not sure of this one, just askin')
thanks!
- Dani
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
Whew! Don't even get me started on the project. Me and my friend worked on it from 9pm Wednesday nite straight through until about 6am the next morning!
And that was just the pseudocode! The rest is due this thursday ... (tenatively).
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
Yeah but this weekend is mostly going to be spent doing a chemistry lab write-up due Monday, a chemistry pre-lab due Monday, studying 60 pages of the chem textbook for a quiz on Monday, writing a short story for my Prose Writing class which is due on tuesday, making a 5 page website about multimedia in education for a BCIS course which is due Thursday, and finally, if I have enough time, learning C and UNIX system commands so I can *begin* this Operating Systems assignment ... not to mention catching up on a week's worth of sleep b/c I got none all week ;) Dare I scream HELP!
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
Oh shoot! I just remembered I have a chem lab quiz on solutions also on Monday ... in addition to the chem lecture quiz on calculating/deriving reaction rates via calculus. Oh well.
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229