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
SELECT 2010 computer physics papers science 2009 2007 RESULT 2004 CASE prelim graph UNION question CLASS ICSE 2006 paper YEAR
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
urgent help needed by many students of our class EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
urgent help needed by many students of our class EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
urgent help needed by many students of our class EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
urgent help needed by many students of our class EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
urgent help needed by many students of our class EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
urgent help needed by many students of our class EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
urgent help needed by many students of our class EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
urgent help needed by many students of our class EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
urgent help needed by many students of our class EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
urgent help needed by many students of our class Vote_lcapurgent help needed by many students of our class Voting_barurgent help needed by many students of our class Vote_rcap 
Anu..i luv icse...:)
urgent help needed by many students of our class Vote_lcapurgent help needed by many students of our class Voting_barurgent help needed by many students of our class Vote_rcap 
G-7
urgent help needed by many students of our class Vote_lcapurgent help needed by many students of our class Voting_barurgent help needed by many students of our class Vote_rcap 
siya
urgent help needed by many students of our class Vote_lcapurgent help needed by many students of our class Voting_barurgent help needed by many students of our class Vote_rcap 
Candy
urgent help needed by many students of our class Vote_lcapurgent help needed by many students of our class Voting_barurgent help needed by many students of our class Vote_rcap 
jOhNy
urgent help needed by many students of our class Vote_lcapurgent help needed by many students of our class Voting_barurgent help needed by many students of our class Vote_rcap 
Apurva
urgent help needed by many students of our class Vote_lcapurgent help needed by many students of our class Voting_barurgent help needed by many students of our class Vote_rcap 
WinRrule
urgent help needed by many students of our class Vote_lcapurgent help needed by many students of our class Voting_barurgent help needed by many students of our class Vote_rcap 
ambili
urgent help needed by many students of our class Vote_lcapurgent help needed by many students of our class Voting_barurgent help needed by many students of our class Vote_rcap 
saif
urgent help needed by many students of our class Vote_lcapurgent help needed by many students of our class Voting_barurgent help needed by many students of our class Vote_rcap 



Search if you can't find it here

urgent help needed by many students of our class

View previous topic View next topic Go down
AuthorMessage
Roshni Samala




urgent help needed by many students of our class Vide
PostSubject: urgent help needed by many students of our class urgent help needed by many students of our class EmptyWed Jan 07, 2009 9:23 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

urgent help needed by many students of our class

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 :: Computer :: Computer help forum-