14,639,459 members
Rate this:
See more:
Hai Friends,

i want source code for how to calculate the ticket price based upon entering the value like

no of person:..........
finally i want to calculate the total ticket price based upon those value which entered by user.........please anyone help me to find solution for this problem.......

Thanks,
With regards,
Vidhya.S
Posted

Rate this:

## Solution 1

Do they not teach elementary mathematics any more?

`Total price = (price per child ticket * number of child tickets) + (price per adult ticket * number of adult tickets)`

What part of this is giving you difficulties?
Rate this:

## Solution 2

simple.
total price = no of person * ticket price

Rate this:

## Solution 3

This is dependent on the business and the company, consult your business analyst for the formula in question.
v2
Rate this:

## Solution 4

Hi,

Here community people at codeproject will not provide you the source code of your homework. but your query or bugs will be resolved by their guidance. So request you to start reading C#, Windows Forms and other related stuff.

you can start with C# 4.0 Nutshell[^] (i always recommend my friends to read this book :) )

Thanks
-Amit
Rate this:

## Solution 5

Use this code if you are not using this code for business purpose. If yes then contact your Business Analyst for the formulae

```const double adultTicketPrice = 10.50;
const double childrenTicketPrice = 5.50;
const int numberOfChildrens = 5;

```private double FindTicketAmount(double adultTicketPrice, double childrenTicketPrice, int numberOfAdults, int numberOfChildrens)
{
}```
v3