Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  India NewsIndia News  
Keywords
prelim ICSE 2007 YEAR UNION CASE papers CLASS computer 2010 paper 2009 graph 2004 2006 science SELECT question physics RESULT
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
computer program EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
computer program EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
computer program EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
computer program EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
computer program EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
computer program EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
computer program EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
computer program EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
computer program EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
computer program Vote_lcapcomputer program Voting_barcomputer program Vote_rcap 
Anu..i luv icse...:)
computer program Vote_lcapcomputer program Voting_barcomputer program Vote_rcap 
G-7
computer program Vote_lcapcomputer program Voting_barcomputer program Vote_rcap 
siya
computer program Vote_lcapcomputer program Voting_barcomputer program Vote_rcap 
Candy
computer program Vote_lcapcomputer program Voting_barcomputer program Vote_rcap 
jOhNy
computer program Vote_lcapcomputer program Voting_barcomputer program Vote_rcap 
Apurva
computer program Vote_lcapcomputer program Voting_barcomputer program Vote_rcap 
WinRrule
computer program Vote_lcapcomputer program Voting_barcomputer program Vote_rcap 
ambili
computer program Vote_lcapcomputer program Voting_barcomputer program Vote_rcap 
saif
computer program Vote_lcapcomputer program Voting_barcomputer program Vote_rcap 



Search if you can't find it here

computer program

View previous topic View next topic Go down
AuthorMessage
Roshni Samala




computer program Vide
PostSubject: computer program computer program EmptyWed Jan 07, 2009 9:18 pm

this is the question given to us in the assignment programs which is very difficult for all the comp students.so please help.confused


Q.Imagine a tollbooth at a bridge.cars passing by the booth are expected to pay Rs.50/- toll.Mostly they do, but sometimes a car goes by without paying.The Tollbooth keeps a track of the number of cars that have gone by and of the total amout of money collected.
Model this tollbooth with a class called Tollbooth. The 2 data items are integers to hold the total no. of cars and a type double to hold amount of money collected.a constuctor initializes both these to 0.A function called payingcar() increments the car total and adds Rs.50/- to the cash total .Another function called nonpayingcar() increments the car total. Finally a function calleddisplay(), displays the 2 totals.

Include a program to test this class. This program should allow the user to push one key to count a paying car and another to count a non paying car. Pushing the ESC key should cause the program to print out the total cars and total cash and then exit.
Back to top Go down
SHASHANK N K
Active member
Active member
SHASHANK N K


computer program Vide
PostSubject: Re: computer program computer program EmptySat Jan 10, 2009 12:26 am

hey dis isnt the correct place to post comp qstn...........
Back to top Go down

computer program

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: English :: Julius Caesar Question Answers-