Need help...

WELL i have five questiosn to answer and use console applciation in c# to answer them in here is the first qeustion:

2. A telephone company charges its customers 3.5p for each minute they use the phone during the day, 5.4p for each minute during the evening, and 6.25p for each minute during weekends. They also charge a line rental of £11 per month irrespective of whether or not any calls have been made. The total charge is subject to VAT at a rate of 17.5%.
Write a program which reads in the total number of minutes of calls made by a customer in a month at each of the three rates and calculates the total cost.
The outputs required are:
Number of minutes of daytime calls, number of minutes of evening calls, number of minutes of weekend calls, costs of daytime, evening and weekend calls, the line rental, a sub-total charge, VAT payable and total charge.

You have started on the right track. Just break down the question.
Often it helps to map out the required operations in pseudocode. Just focus on what you need to read in, process and output at this stage, then worry about the syntax afterwards.

Your question already tells you everything you need to do:

Retrieve values from user:
-Number of daytime minutes (you have done this already)
-Number of evening minutes
-Number of weekend minutes
Calculate:
-Cost of daytime (you have done this already)
-Cost of evening
-Cost of weekend
-Subtotal = Total of all three + line rental
-VAT = 17.5% of subtotal
-Total = subtotal+VAT
Output values to user

your next step is to go through each of those points and work out what you need to do to accomplish it. Learning to break a problem down into its individual stages is a key skill you will need to develop as a programmer.

Taking the time to do a full analysis and design before you start coding will allow you to produce much cleaner, more efficient code :)

oh, one other thing..might be better to use Console.ReadLine() rather than ReadKey()...unless you never use your phone, i imagine you would probably use more than 9 minutes in each period in a whole month.

thats my finished code i type in values for the day , evening and weekend as 2, it add 11 to this number and then times the total by 0.175(the 17.5%)..in the calculator it shows diffrent form the value in the console app.. any clues why here is a screenshot..::http://i.imagehost.org/0930/outputvalue.jpg

Well done, i'm glad to see my advice helped :) It's so much more rewarding to work through the problem yourself than to have someone give you the code. Just remember this for your future projects; a little effort at the planning stage will save you a lot of effort in the coding stage.

Only one small thing i would recommend; at the end you are showing the subtotal Console.WriteLine(subtotal); , then showing the amount of the VAT Console.WriteLine(totalcharge); but calling it the total. You should display the VAT, then add that to the total to show the total:

vat = subtotal* 0.175;
Console.WriteLine("this is the total vat added at 17.5% ",vat);
Console.WriteLine(vat);
totalcharge = subtotal* vat;
Console.WriteLine("this is the total charge with the added vat added",totalcharge);
Console.WriteLine(totalcharge);

I'm afraid you can't remove the thread, you can only mark it as solved. You can try contacting a moderator but as far as i'm aware they dont usually remove code from threads.

Hi. so this is actually a continuation from another question of mine[Here](https://www.daniweb.com/programming/software-development/threads/506795/dynamically-add-values-into-datagridview-cell-from-listbox-vb2010) but i was advised to start a new thread as the original question …

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...