Crossposting because I am Desperate!! Homework from new teacher who knows too much!

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Crossposting because I am Desperate!! Homework from new teacher who knows too much!

Hello all!

My teacher in our Computer Programming class left halfway through the year due to illness. He was very good and he KNEW that none of us in the class had any knowledge of how to do anything Java related and that this class was our "first steps in water" so to say. Well, we have a new teacher now who is some young buck who thinks he knows everything. Unfortunately for us, he does. Our assignment is to create a Java GUI to look like one of those touchscreen menu systems. As in, have a GUI with the words "Bread, Meat, Cheese, Others" on the left side of the screen going up and down and have the boxes on the right side of the screen in rows of four and adjacent from the labels they go with that I had just typed: "White, Wheat, French, Italian, Salami, Turkey, Ham, Roast Beef, Cheddar, Swiss, Mozzarella, Pepperjack, Spicy Mustard, Dijon Mustard, Mayonnaise, Italian Dressing".

We are supposed to set a price of whatever we want for each item and have another little window in the GUI to show what we ordered each time we press a button then have another window to show the total. We are supposed to name the GUI "Restaurant". The cherry on top is that for each button, we have to have an icon to symbolize each item...such as the button that lets your order Roast Beef would have a picture of a cow on it. Not only that but we have to have a sound that plays each item's "sound" such as the aforementioned cow have a "moo" sound. I would just be happy if somebody TOLD me how to add them let alone actually do it for me...Before my teacher left we were learning how to do small programs that ran in the text box of JGrasp...now we are doing this. My classmates (all 3 of them, the other 5 dropped out after we got this nutcase in charge) have no idea what to do. We've re-read our book, bought Java for Dummies, and even asked this teacher for help but he is too busy to come in because he is moving across town Everyone in my class has no prior experience with this sort of thing and you can probably tell how overwhelming something like this is. Please PLEASE can anybody help. We asked the head of the department and he said that he cannot do anything about our assignment this late in the year and that what we are doing is what students in Computer Programming II END WITH Please, anyone

It is due Monday...I have been searching all over the internet for sample calculator problems and I stumbled upon these forums...I am so worn out from searching and searching and re-reading over and over that I really don't even know what to do anymore!

you could tell your teacher what the problem is, that none of you had some lessons in java.
by the way, how good are your (and your classmates) java skills?
will it help you when i generally describe what to do?

Haha well, as far as how good my classmates and myself are in Java...we aren't where are teacher wants us to be. We are still trying to teach ourselves where to put things in the code and how to write out things! We were just getting comfortable with doing small programs without a GUI. Now we are doing something that, for us, is an uphill battle.

hum. what about using a ide with integrated gui tools, where you can click together you gui like in visual basic?
otherwise start planing your application with the following:
1. how many screens do you need and what are the contents of that screens
2. which objects do you need and what attributes belong to them in general. eg.:
Product
-price
-name
-symbol
-category, contains Bread, Meat, Cheese or Others
ProductList
-none or many products
-can add or remove products from this list
-can calculate the sum of all products contained

for Category you also could define a class:
Category
-name

now start writing the class files by the lowest an most independent object:

this is just the logical representation of the application. the gui should later on use that classes to display their states.
the code still contains some syntaxerrors and is not complete. but it should be a starting point. having further time i'll add on some code. but i think the most of it has to be done by you.

hum. i don't have the time to write all of the application for you. what i can is providing help, not the whole solution. if none of your class can do that, your teacher has to rethink about his plan. since it will not look good if his full class failsthe course...

>Well, we have a new teacher now who is some young buck who thinks he
>knows everything. Unfortunately for us, he does.

I find it really sad (and suspicious) that you believe this.

If case you didn't know, a teacher that knows everything is a good thing. That way you have an opportunity to learn.

By the way you're responding to the others trying to help, it appears that you are simply looking for free code rather than trying to learn.

Sad...

Good luck.

It isn't so much me, it is all of us. We have TRIED to learn by buying books, TRYING to get my teacher to come in and help us...we've even tried doing a calculator GUI and replacing the keys with the words but it just doesn't work. I'm not looking for a free code but for some major help because we don't know much about this stuff. And my teacher is a pompous you-know-what...there is a difference between a good teacher and one that likes to express his level of teaching as an extension of his own character

I don't mean to appear so distrusting of your intent but I've seen a lot of people pretend to be students when in fact they are developers looking for code. Looking for "free" code isn't the problem but misrepresenting yourself is. Just as bad, however, is a student who is looking for an easy mark.... looking for code without having to do any real thinking. What is the point of being in school if you do not wish to learn?

Anyhow, presumably you are paying for this course. If the teacher is as bad as you say you have a responsibility to take this up with the dean or principle (not sure what grade level we are talking about).

So you say you cannot get the code working. That surely means you have tried. Please post the code you have done and I am sure anyone of us will be pleased to help you along. BUT it is essential that you show effort on your part.