dard_thesorrow Posted July 31, 2006 Posted July 31, 2006 i m a new here..plz Solve my this Programme1.create a structure of type date tjat contains three numbers : date, day and Year all in float. any Entered date by user compare and show. greater date on screen.2.Write a function that takes two distance value as argument and returns the larger One.3. Write a function called hms_to_sec() that takes three int values for Hours, Minutes adn seconds as argument and returns the quivalant tiem in second4. Write a function that when you call it, Displays a message telling how many times it has been called. Write a main programe that calls this function at least 10 times. Code programme in two different ways, Global Variable and Static Variable5.create a program which takes 2 integer from user specifying dimensions for 2D int arry. Declare 2D arrays according to the user specific dimension adn accept as well as display value through individual function.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...
LLXX Posted August 1, 2006 Posted August 1, 2006 Learn to do it yourself, noone is going to do your homework for you.date, day and Year all in float.Integer quantities should not be stored in floats.
RogueSpear Posted August 1, 2006 Posted August 1, 2006 Learn to do it yourself, noone is going to do your homework for you.Amen..
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now