Connecting Tech Pros Worldwide Forums | Help | Site Map

Can't get my inventory program to compile

Member
 
Join Date: Nov 2006
Posts: 59
: Nov 29 '06
I have a java class that goes for another week or so, and I am going to fail if I can't figure out this simple program. I can't get anything to compile to at least get a few points... Here are the assignments...

4. CheckPoint: Inventory Program Part 1
• Resource: Java: How to Program
• Due Date: Day 5 [Individual] forum
• Choose a product that lends itself to an inventory (for example, products at your
workplace, office supplies, music CDs, DVD movies, or software).
• Create a product class that holds the item number, the name of the product, the number
of units in stock, and the price of each unit.
• Create a Java application that displays the product number, the name of the product, the
number of units in stock, the price of each unit, and the value of the inventory (the
number of units in stock multiplied by the price of each unit). Pay attention to the good
programming practices in the text to ensure your source code is readable and well
documented.


1. CheckPoint: Inventory Program Part 2
• Resource: Java: How to Program
• Due Date: Day 4 [Individual] forum
• Modify the Inventory Program so the application can handle multiple items. Use an array
to store the items. The output should display the information one product at a time,
including the item number, the name of the product, the number of units in stock, the
price of each unit, and the value of the inventory of that product. In addition, the output
should display the value of the entire inventory.
• Create a method to calculate the value of the entire inventory.
• Create another method to sort the array items by the name of the product.


2. CheckPoint: Inventory Program Part 3
• Resource: Java: How to Program
• Due Date: Day 7 [Individual] forum
• Modify the Inventory Program by creating a subclass of the product class that uses one
additional unique feature of the product you chose (for the DVDs subclass, you could use
movie title, for example). In the subclass, create a method to calculate the value of the
inventory of a product with the same name as the method previously created for the
product class. The subclass method should also add a 5% restocking fee to the value of
the inventory of that product.
• Modify the output to display this additional feature you have chosen and the restocking
fee.


4. CheckPoint: Inventory Program Part 4
• Resource: Java: How to Program
• Due Date: Day 5 [Individual] forum
• Modify the Inventory Program to use a GUI. The GUI should display the information one
product at a time, including the item number, the name of the product, the number of
units in stock, the price of each unit, and the value of the inventory of that product. In
addition, the GUI should display the value of the entire inventory, the additional attribute,
and the restocking fee.


2. CheckPoint: Inventory Program Part 5
• Resource: Java: How to Program
• Due Date: Day 7 [Individual] forum
• Modify the Inventory Program by adding a button to the GUI that allows the user to move
to the first item, the previous item, the next item, and the last item in the inventory. If the
first item is displayed and the user clicks on the Previous button, the last item should
display. If the last item is displayed and the user clicks on the Next button, the first item
should display.
• Add a company logo to the GUI using Java graphics classes.

Here is the last program that I was able to get to compile... I am supposed to remove the user input section, but no matter what I try, it doesn't work....

[Program removed as per site rules - see FAQ]

Pleeeease java geniuses... HELP!!! :)
I can be reached at <email removed>

Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#51: Dec 6 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by zaidalin79

Now I got it to work... Thanks...

What do we need to do now, I guess this one...

Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item in the inventory. If the first item is displayed and the user clicks on the Previous button, the last item should display. If the last item is displayed and the user clicks on the Next button, the first item should display.

• Add a company logo to the GUI using Java graphics classes.


Make sure you understand this and ask where you do not understand. Then I want you to add the other buttons required and labels as well so that you really grasp the concepts.
Member
 
Join Date: Nov 2006
Posts: 59
#52: Dec 6 '06

re: Can't get my inventory program to compile


I have to do something here at work for sec. I will take a good look at this one... Will you be on for awhile? It has been hard to catch you lately...

Thanks again
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#53: Dec 6 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by zaidalin79

I have to do something here at work for sec. I will take a good look at this one... Will you be on for awhile? It has been hard to catch you lately...

Thanks again

I have to knock off for a church service in 45 mins time and will only be able to get back tommorrow. I was hoping we'd have the buttons responding to click event before signing off.
Member
 
Join Date: Nov 2006
Posts: 59
#54: Dec 6 '06

re: Can't get my inventory program to compile


I will try it, but I don't know if I can get it in 45 minutes... I am still pretty slow at this. I will have more time to go back over these after my class is done this Sat, I am just trying to hurry and get the last one posted so I can have a chance of not failing the class... After then, I will have as much time as I need to read through all the code and make sure I understand everything. You should be a teacher... You certainly do a better job than mine! LOL! :)
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#55: Dec 6 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by zaidalin79

I will try it, but I don't know if I can get it in 45 minutes... I am still pretty slow at this. I will have more time to go back over these after my class is done this Sat, I am just trying to hurry and get the last one posted so I can have a chance of not failing the class... After then, I will have as much time as I need to read through all the code and make sure I understand everything. You should be a teacher... You certainly do a better job than mine! LOL! :)

I doubt that!

Now I have to go. Here is what I expect you to do. Have a good look at the code posted below for the rest of the day and night when you post tommorrow, I hope you will have adde the other buttons an labels.

[code removed as per site rules - see FAQ]
Newbie
 
Join Date: Dec 2006
Posts: 6
#56: Dec 6 '06

re: Can't get my inventory program to compile


Would either of you mind if I borrow from this code for my assignment as well? I would obviously have to alter it to use the inventory items I have been using. If you mind I will not use it. I think every one in this class is struggling.
Member
 
Join Date: Nov 2006
Posts: 59
#57: Dec 6 '06

re: Can't get my inventory program to compile


I think so too... I don't mind, but you should make sure that r035198x doesn't cause he is writing the majority of it. My teacher actually told me that only about 25-30% of students pass this class... Sounds like there is a problem with the curriculum to me...
Newbie
 
Join Date: Dec 2006
Posts: 6
#58: Dec 6 '06

re: Can't get my inventory program to compile


Do you have Barbara Hecker? What bothers me is that they ask for items in our programs that we have not actually covered in our text. I have been through the text several times and no where does it cover "Next" or "Previous" button usage.

Quote:

Originally Posted by zaidalin79

I think so too... I don't mind, but you should make sure that r035198x doesn't cause he is writing the majority of it. My teacher actually told me that only about 25-30% of students pass this class... Sounds like there is a problem with the curriculum to me...

Member
 
Join Date: Nov 2006
Posts: 59
#59: Dec 6 '06

re: Can't get my inventory program to compile


No different teacher, but I agree with you on the text. She keeps telling me to read the text, like I haven't read it over four times. The examples don't help either...
Member
 
Join Date: Nov 2006
Posts: 59
#60: Dec 6 '06

re: Can't get my inventory program to compile


I think I broke it... I tried to copy what you did, but now it doesn't work...

[code removed as per site rules - see FAQ]
Member
 
Join Date: Nov 2006
Posts: 59
#61: Dec 6 '06

re: Can't get my inventory program to compile


Sorry, forgot the buttons... ignore the other one...
I am posting my most recent one next...
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#62: Dec 7 '06

re: Can't get my inventory program to compile


With practice you'll soon do away with the typing errors and be able able spot ways of making the code optimal

Do you think I't's possible to add a capability to add Products insted of jusy viewing them?

[code removed as per site rules - see FAQ]
Member
 
Join Date: Nov 2006
Posts: 59
#63: Dec 7 '06

re: Can't get my inventory program to compile


I hope you are right-doesn't feel like it now...

Adding that functionality is part of the last assignment I think...

• Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to the inventory should have an item number one more than the previous last item.
• Add a Save button to the GUI that saves the inventory to a C:\data\inventory.dat file.
• Use exception handling to create the directory and file if necessary.
• Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an appropriate message. If the product is found, the GUI should display that product’s information in the GUI.
Member
 
Join Date: Nov 2006
Posts: 59
#64: Dec 7 '06

re: Can't get my inventory program to compile


How do I fix the name so that it displays something different for each item? That seems to be an issue with her... Maybe I could put in a model number instead, and call the MobilePhone the product type?
Member
 
Join Date: Nov 2006
Posts: 59
#65: Dec 7 '06

re: Can't get my inventory program to compile


and, can I insert a real picture from a file?
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#66: Dec 7 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by zaidalin79

How do I fix the name so that it displays something different for each item? That seems to be an issue with her... Maybe I could put in a model number instead, and call the MobilePhone the product type?

Well why don't you add these additional buttons then. Let's have have them on a different panel from the one with the other buttons. Just add them to the interface and we'll work on their actions one by one

[code removed as per site rules - see FAQ]
Member
 
Join Date: Nov 2006
Posts: 59
#67: Dec 7 '06

re: Can't get my inventory program to compile


I think we also need an exit statement... every time i run it-it gets stuck...
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#68: Dec 7 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by zaidalin79

I think we also need an exit statement... every time i run it-it gets stuck...

[code removed as per site rules - see FAQ]

Done. Now are you going to add the other buttons?
Member
 
Join Date: Nov 2006
Posts: 59
#69: Dec 7 '06

re: Can't get my inventory program to compile


I m trying... just a sec... dont go away
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#70: Dec 7 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by zaidalin79

and, can I insert a real picture from a file?

You obviously missed this part of the code

Expand|Select|Wrap|Line Numbers
  1.  
  2. private class MyPanel extends JPanel {
  3.     ImageIcon image = new ImageIcon("Sample.jpg");
  4.     int  width  = image.getIconWidth();
  5.     int  height  = image.getIconHeight();
  6.     long angle = 30;
  7.     public MyPanel(){
  8.      super();
  9.     }
  10.     public void paintComponent(Graphics g){
  11.        super.paintComponent(g);
  12.        Graphics2D g2d = (Graphics2D)g;
  13.        g2d.rotate (Math.toRadians(angle), 60+width/2, 60+height/2);
  14.        g2d.drawImage(image.getImage(), 60, 60, this);
  15.        g2d.dispose();
  16.     }
  17.  }//end
  18.  
If you put a picture called Sample.jpg in the folder that contains the code the picture appears on the frame rotated at 60 degs. Alternatively, you could change the name of the picture to one that you have.
Member
 
Join Date: Nov 2006
Posts: 59
#71: Dec 7 '06

re: Can't get my inventory program to compile


No, I didn't miss it... you answered my question... Ok-it doesn't compile, but I tried to add the other field...

[code removed as per site rules - see FAQ]
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#72: Dec 7 '06

re: Can't get my inventory program to compile


Why are you replacing brand with type?
Member
 
Join Date: Nov 2006
Posts: 59
#73: Dec 7 '06

re: Can't get my inventory program to compile


The brand wasn't showing a different value for each item... it was showing MobilePhone for all of them instead of Motorola/Nokia etc... I was trying to fix it so that it said type=MobilePhone instead, and then the different brands would show up for each item... was that wrong?
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#74: Dec 7 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by zaidalin79

The brand wasn't showing a different value for each item... it was showing MobilePhone for all of them instead of Motorola/Nokia etc... I was trying to fix it so that it said type=MobilePhone instead, and then the different brands would show up for each item... was that wrong?

This last version that I posted was doing that using brand and Item name only

[code removed as per site rules - see FAQ]
Member
 
Join Date: Nov 2006
Posts: 59
#75: Dec 7 '06

re: Can't get my inventory program to compile


My fault, I see what you are saying... It looks like the Brand and the Item Name are switched though... Is that just the label?
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#76: Dec 7 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by zaidalin79

My fault, I see what you are saying... It looks like the Brand and the Item Name are switched though... Is that just the label?

just swap the positions when creating ie change
Expand|Select|Wrap|Line Numbers
  1.  
  2. Product p1 = new MobilePhone("Nokia", 001, 200, 100, "3310");
  3.  
to
Expand|Select|Wrap|Line Numbers
  1.  
  2. Product p1 = new MobilePhone("3310", 001, 200, 100, "Nokia");
  3.  
Again I have to go. And this time I'll only get back on Monday. Where do you think you are likely to need help on the rest of the assignment?
Member
 
Join Date: Nov 2006
Posts: 59
#77: Dec 7 '06

re: Can't get my inventory program to compile


I will need to turn something in for the last part by Saturday...

This is what it needs to do...

• Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to the inventory should have an item number one more than the previous last item.
• Add a Save button to the GUI that saves the inventory to a C:\data\inventory.dat file.
• Use exception handling to create the directory and file if necessary.
• Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an appropriate message. If the product is found, the GUI should display that product’s information in the GUI.
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#78: Dec 7 '06

re: Can't get my inventory program to compile


Remember for the last part that you are using an array (she should have asked you to use ArrayList) whose size is fixed. To add and delete items you will need to create a new array of different size all the time
This is all I can do for you right now (I'm already late). You need to make sure you understand it first before you do the following.
  • Add the other buttons and their functionality. If you search this forum you'll get info on how to write to a file
  • Try to layout the items on the frame nicely
Remember the add is already working it was all I had time to do.

Good luck. Hope to hear from you on Monday.

[code removed as per site rules - see FAQ]

P.S.I removed the Product class because that was making it too long to post. Just use the one in the last code post
Member
 
Join Date: Nov 2006
Posts: 59
#79: Dec 7 '06

re: Can't get my inventory program to compile


WOW

Ok, I will try to figure that one out...

If you do get any time to get on before Sat, please do...

I'll let you know how I did on Monday anyway...

Thank you So very much for your help!!!
Newbie
 
Join Date: Dec 2006
Posts: 6
#80: Dec 11 '06

re: Can't get my inventory program to compile


Did you have to do this part?

Final Project: Inventory Program Part 6
• Resource: Appendix B
• Due Date: Day 7 [Individual] forum
• Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to the inventory should have an item number one more than the previous last item.
• Add a Save button to the GUI that saves the inventory to a C:\data\inventory.dat file.
• Use exception handling to create the directory and file if necessary.
• Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an appropriate message. If the product is found, the GUI should display that product’s information in the GUI.


Quote:

Originally Posted by zaidalin79

WOW

Ok, I will try to figure that one out...

If you do get any time to get on before Sat, please do...

I'll let you know how I did on Monday anyway...

Thank you So very much for your help!!!

Member
 
Join Date: Nov 2006
Posts: 59
#81: Dec 13 '06

re: Can't get my inventory program to compile


Yes, I do still need to do that one.
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#82: Dec 14 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by zaidalin79

Yes, I do still need to do that one.

Did you manage to do the other stuff right?
Member
 
Join Date: Nov 2006
Posts: 59
#83: Dec 14 '06

re: Can't get my inventory program to compile


No, I pretty much submitted what we had last week. I am still waiting on my grade to see if I got enough points to pass. Thank you so much for all your help. Now that the class is over (and hopefully I won't have to take it again!) I can try to take time to look at the stuff and maybe learn it... :)

Maybe if you have time we could still figure out the last part?
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#84: Dec 14 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by zaidalin79

No, I pretty much submitted what we had last week. I am still waiting on my grade to see if I got enough points to pass. Thank you so much for all your help. Now that the class is over (and hopefully I won't have to take it again!) I can try to take time to look at the stuff and maybe learn it... :)

Maybe if you have time we could still figure out the last part?

This time you'll be writing most of the code though so go ahead and have a go at it.
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#85: Dec 21 '06

re: Can't get my inventory program to compile


Do you still want to finish this?
Newbie
 
Join Date: Dec 2006
Posts: 1
#86: Dec 24 '06

re: Can't get my inventory program to compile


Hey I found it interesting. Shall we complete the project!!
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#87: Dec 26 '06

re: Can't get my inventory program to compile


Quote:

Originally Posted by pranavaswaroop

Hey I found it interesting. Shall we complete the project!!

Yes please. Go ahead make some additions and post them.
Newbie
 
Join Date: Dec 2006
Posts: 7
#88: Jan 18 '07

re: Can't get my inventory program to compile


I am in this same class and i am having problems with the final part of this assignment.

• Due Date: Day 7 [Individual] forum
• Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit.An item added to the inventory should have an item number one more than the previous last item.
• Add a Save button to the GUI that saves the inventory to a C:\data\inventory.dat file.
• Use exception handling to create the directory and file if necessary.
• Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an appropriate message. If the product is found, the GUI should display that product’s information in the
GUI.


I cannot seem to get these buttons to work........can anyone provide any help??

I have been using this code as reference to my assignment so if possiable can we still use the code that has been previously use.

Thank you all so much
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#89: Jan 18 '07

re: Can't get my inventory program to compile


Quote:

Originally Posted by hollywoood

I am in this same class and i am having problems with the final part of this assignment.

• Due Date: Day 7 [Individual] forum
• Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit.An item added to the inventory should have an item number one more than the previous last item.
• Add a Save button to the GUI that saves the inventory to a C:\data\inventory.dat file.
• Use exception handling to create the directory and file if necessary.
• Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an appropriate message. If the product is found, the GUI should display that product’s information in the
GUI.


I cannot seem to get these buttons to work........can anyone provide any help??

I have been using this code as reference to my assignment so if possiable can we still use the code that has been previously use.

Thank you all so much

Post the current code you have and the attempts you've made to get it to work.
Newbie
 
Join Date: Dec 2006
Posts: 7
#90: Jan 18 '07

re: Can't get my inventory program to compile


I didn't think that you would get back to me so fast i will have to post my code when i get home tonight. thanks so much for you help
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#91: Jan 18 '07

re: Can't get my inventory program to compile


Quote:

Originally Posted by hollywoood

I didn't think that you would get back to me so fast i will have to post my code when i get home tonight. thanks so much for you help

I have to go in about 2hrs time as well and will only be back tommorrow.
Newbie
 
Join Date: Dec 2006
Posts: 7
#92: Jan 26 '07

re: Can't get my inventory program to compile


I am trying to add the Delete button, save and search buttons. I have tried to call my teacher and he is absolutly no help and i have read and reread the text but still have no idea what is going on.........I have the added the add button but now i am stuck. Is there a simple way in completeing this??

Please help

• Due Date: Day 7 [Individual] forum
• Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit.An item added to the inventory should have an item number one more than the previous last item.
• Add a Save button to the GUI that saves the inventory to a C:\data\inventory.dat file.
• Use exception handling to create the directory and file if necessary.
• Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an appropriate message. If the product is found, the GUI should display that product’s information in the
GUI. • Post as an attachment
Newbie
 
Join Date: Feb 2007
Posts: 4
#93: Feb 16 '07

re: Can't get my inventory program to compile


Hello students,

I am one of the professors who teach this class. I want everyone to know that I am aware of this forum and if any of the programs posted here are turned in as assignments, they will earn a 0 for plagiarism. You must actually program and work on code in order to learn Java. It is not alright to copy someone else's program posted on a forum and hand it in as your own.

Thank you
msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,886
#94: Feb 16 '07

re: Can't get my inventory program to compile


Quote:

Originally Posted by carylrahn

Hello students,

I am one of the professors who teach this class. I want everyone to know that I am aware of this forum and if any of the programs posted here are turned in as assignments, they will earn a 0 for plagiarism. You must actually program and work on code in order to learn Java. It is not alright to copy someone else's program posted on a forum and hand it in as your own.

Thank you

I agree professor and our moderators and most of our experts also agree with this attitude. We are happy to help out students with errors in their code or help them by giving directions in how to find the solution they are looking for. Although we can't control how all experts respond it is good that you are aware of this site and it's content. Nobody learns anything by copying someone elses code.

ADMIN
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#95: Feb 16 '07

re: Can't get my inventory program to compile


Quote:

Originally Posted by carylrahn

Hello students,

I am one of the professors who teach this class. I want everyone to know that I am aware of this forum and if any of the programs posted here are turned in as assignments, they will earn a 0 for plagiarism. You must actually program and work on code in order to learn Java. It is not alright to copy someone else's program posted on a forum and hand it in as your own.

Thank you

You may be pleased to know that a policy on assignments on this site has now been finalized and fornalized which guarantees that students will not be able to get solutions for their assignments without them doing the bulk of it themselves.
Newbie
 
Join Date: Feb 2007
Posts: 4
#96: Feb 16 '07

re: Can't get my inventory program to compile


Quote:

Originally Posted by mmccarthy

I agree professor and our moderators and most of our experts also agree with this attitude. We are happy to help out students with errors in their code or help them by giving directions in how to find the solution they are looking for. Although we can't control how all experts respond it is good that you are aware of this site and it's content. Nobody learns anything by copying someone elses code.

ADMIN

I just had 2 students turn in programs that I found here in this site. I previously was not aware of this and I have found entire programs here that have been turned in and graded by me.

Just so you all know, the faculty do not create these assignments, they are University defined assignments so many students are doing the same assignments.

It is resourceful of students to search for help, and I have no problem with you all helping them with their code, but how are you preventing another student from coming along and copying the program that a different student has posted here.

Thanks
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,730
#97: Feb 17 '07

re: Can't get my inventory program to compile


Quote:

Originally Posted by carylrahn

I just had 2 students turn in programs that I found here in this site. I previously was not aware of this and I have found entire programs here that have been turned in and graded by me.

Just so you all know, the faculty do not create these assignments, they are University defined assignments so many students are doing the same assignments.

It is resourceful of students to search for help, and I have no problem with you all helping them with their code, but how are you preventing another student from coming along and copying the program that a different student has posted here.

Thanks

As you will probably have guessed, there is not much we can do about other students, or anyone else, using code (or other answers) posted on these forums.
As has been mentioned earlier, we do take the issue of student projects seriously. Most of the experts here desire to help our members to learn how to do things, so we really don't want to do anything which would hinder that process. We can, and do try to, encourage our experts to handle such threads responsibly, and our moderators to look out for (and deal with) any mishandled ones.
Work has recently been completed on a FAQ area which includes Response to Class Assignments. This has been made publicly available so that all members can see that the site rules are being followed and, if they feel this is not so, bring it to the attention of a moderator (where appropriate) or an Admin.
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,730
#98: Feb 17 '07

re: Can't get my inventory program to compile


Quote:

Originally Posted by carylrahn

I just had 2 students turn in programs that I found here in this site. I previously was not aware of this and I have found entire programs here that have been turned in and graded by me.

Just so you all know, the faculty do not create these assignments, they are University defined assignments so many students are doing the same assignments.

It is resourceful of students to search for help, and I have no problem with you all helping them with their code, but how are you preventing another student from coming along and copying the program that a different student has posted here.

Thanks

As an addendum to my last post, if you, as a professor, have any specific worries or would like issues resolved then I'm sure any of our moderators would be happy to hear from you. PMing is probably the easiest method. I can promise that any ideas you may bring up will be given careful consideration.
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,730
#99: Feb 18 '07

re: Can't get my inventory program to compile


Why do so many people post homework or other school questions? is a thread that anyone interested in this particular topic might want to read and even contribute to. It illustrates the positions of various of the site's moderators (those responsible for implementing any policy decisions) as well as a number of other interested members. It also throws light on some of the, perhaps less obvious, issues that need to be considered when dealing with such issues.
msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,886
#100: Feb 20 '07

re: Can't get my inventory program to compile


All large blocks of code have now been removed from this question as per site rules (FAQ). I realise this means that some of the experts replies will not now make sense.

If one or more experts would like to put together a tutorial thread on how this question should be answered using pseudo code and sample code to demonstrate then I will be happy to post a link here. If any of the experts would like to edit previous posts to include pseudo code or sample code them either myself or one of the Java moderators would be happy to comply.

Mary
ADMIN
Reply