![]() |
New to the forum, need a bit of help/guidance re C#
I have to write a program using C# for an assignment,
basically the program must work out the amount tat each person should pay towards a tea kitty each week. Each person drinks drinks drinks a day. 1 pint of milk makes 1 drinks, the teabags come in boxes of 480 teabags(1 teabag makes 1 drink) and the bag of sugar is used to make 100 drinks. i obviously declare the variables at the start i got that bit but its the rest of the program I just dont know where to start(im not askin for someone to do it for me but for some pointers), Id appreciate your help alot, |
Well, it's simple arithmetic, no? Write down the equations you'd use to calculate it manually, and then convert them into C# code.
|
ok so i do the calculations but its how to write it into the program, what lines of code to use
are there any sites i can have a look at for a quick tutorial on C# |
Use Google.
I think it's rather weird that you have to write a program for an assignment, and you don't even know how to do simple arithmetics. |
Well, I'll give you an example similar to your problem. Lets say you want to create a program that converts Fahrenheit into degrees Celsius. It might look something like this:
:
|
Quote:
|
Quote:
ill have a go at changing the bits necessary for me |
Quote:
|
Have you ever write any thing in C# before ????
|
Quote:
|
| All times are GMT -5. The time now is 1:37 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC