Ohhh... You want someone to tell you how to translate the word problem into code. Well that's the very nature of the homework, isn't it?
It's not a question about how to do multiplication in C#.
It's asking for someone to figure out the logic for you.
We can't do that. Let's be honest, if you can't convert an 8th grade word problem into a math formula or simple 3 step process... How do you plan to handle this as a career when a client asks you to build an entire system for handling a hospital, or factory?
The best advice we can give you is
"Talk to your instructor".
I just started a C# class and our Professor is not very good at teaching much of anything.
Then go to the dean and ask to be transfered to a different instructor's class or drop the class. I will point out that when you leave the insulated walls of acadamia that you can't just transfer to a different boss. You either learn to communicate with the people that hand out the assigned jobs or you go looking for a new employer.
Bytes has a policy regarding assisting students with their homework.
The short version is that the volunteers here can't help you with schoolwork.
A) We don't know what material you have and have not learned in class.
B) We don't know the guidelines you must follow.
C) In the long run giving you the answers actually short changes your education.
Hint 1: Try hitting Google with terms of your programming language and primary terms of what you want to do. For example "
C# custom events" or "
VB datagrid Excel". I've found this to be a very effective tool.
Hint 2: Your text book
Hint 3: Your instructor
Hint 4:
Posting guidelines regarding homework assignments. TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it.
More on tags. They're cool. Check'em out.