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

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

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

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

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

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

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

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

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

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



Search if you can't find it here

computer program

View previous topic View next topic Go down
AuthorMessage
Roshni Samala




program - computer program Vide
PostSubject: computer program 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


program - computer program Vide
PostSubject: Re: computer program 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-