c programming

This is a discussion on c programming within the C Programming forums, part of the General Programming Boards category; 1. In order to guide against the misuse of vehicles; the UZ transport administration instructed the transport manager to keep ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    2

    c programming

    1. In order to guide against the misuse of vehicles; the UZ transport administration instructed the transport manager to keep records of mileage readings on every vehicle entering or leaving the deport. If every vehicle is expected to make 10 trips in a week; write a program that displays each vehicle’s registration number, the vehicle driver’s name and the total distance traveled by each vehicle after every trip. Your program must also determine the average distance traveled by each vehicle in a day.


    Please Help!

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    1. Get your ass in gear and make some progress on your own. If you get stuck, post your code attempt here, as well as any error messages you get and what problems you seem to be specificly having problems with. Break your problem into logical steps. Any step that provides the slightest confusion, should be broken into smaller, understandable steps.

    Please get to work!

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    Please don't ask people to do all your work for you, See the announcement on Homework at the top of the forum to see what is acceptable ro PM. Basically people are happy to help, but they're not going to do it all for you. Show us what you've got, show your code (using code tags), or where you're confused and someone will be happy to help you I'm sure. Feel free to PM me with any questions.

    Good Luck,

    Kermi3

    PS
    Once again quzah...you gotta wor on your tact! (and langueage )...
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Once again quzah...you gotta wor on your tact! (and langueage )...
    Aw, c'mon Kermi, that was classic Quzah: precise and to the point! I think it's my favorite of all of 'em, actually.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  5. #5
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    Oh I agree that is total classic quzah....but how many newbs, both to this site, and to programming, do you think he's scared off? lol they're asking for help, perhaps not for the right reason (the reason sometimes being that they're too lazy to do it on their own), but still no reason to scare them off for good. lol

    Kermi3
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  6. #6
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    hmmm, do i detect homework question?

    if you want to store the data - think about using a hash table, as for the averages thats pretty simpl.
    Monday - what a way to spend a seventh of your life

  7. #7
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    Originally posted by quzah
    1. Get your ass in gear and make some progress on your own. If you get stuck, post your code attempt here, as well as any error messages you get and what problems you seem to be specificly having problems with. Break your problem into logical steps. Any step that provides the slightest confusion, should be broken into smaller, understandable steps.

    Please get to work!

    Quzah.
    You crack me up Quzah, hehehe!!!

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21