![]() |
|
|||||||
| Visual Basic & C++ All About VB and C++ |
Donation Goal
|
||||
| Goal amount for this month: 200 EUR, Received: 0 EUR (0%) |
|
Donate Now | ||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
and last one..
Q. Imagine a toll booth at a bridge. cars passing by the booth are expected to pay toll of Rs. 25 /- mostly they pay, but sometimes car goes by without paying. the Toll booth keeps a track of the Number of cars that have gone by,and of the total amount money collected. Model this Toll Booth with a class called toll booth. The two data iteams are a type Unsigned int to hold the total number of cars and a type double to hold the total amount of money collected. a constructor initialize both of these to 0. A member function called Payingcar() increments the cat total and adds Rs. 25 to cash total. Another function called nopaycar() increments the total by adds nothing to the cash total. Finally a member function called Display() displays the two totals. Make appropriate function const. include Programme to test this Class. this programe should allow the user to push one key to count a nonpaying car. Pushing the Esc key should cause the programme to print out the total cars and total cash and then exist... plz Some one Help me.. I m very thank full to you... |
![]() |
| Bookmarks |
| Tags |
| any1 , programmes , solve |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Common problems about a DVD Ripper and how to solve them | regman | Guest Downloads | 0 | 9th April 2009 10:38 |
| Pl solve this C ++ prog? | jatinshah2 | Visual Basic & C++ | 0 | 18th August 2008 13:50 |
| Solve This: Math Activities for Students and Clubs | ashman007 | E-Book Download | 0 | 22nd February 2008 05:58 |
| all programmes of macromedia company | hossam7 | AIO Appz (All-in-One) | 0 | 19th February 2008 14:03 |
| Useful Links For Finding TV programmes | swarvsta | TV Shows | 3 | 9th July 2007 22:59 |