1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

And Just One More

Discussion in 'Software Development' started by JollyMan311, Oct 14, 2003.

Thread Status:
Not open for further replies.
  1. JollyMan311

    JollyMan311 Thread Starter

    Joined:
    Oct 14, 2003
    Messages:
    4
    The group Citizens Against Noise have collected data for three car companies: Ford, Chrysler, and GM, representing the noise level (measured in decibels) produced at three different speeds by four different car models ( 2-door, 4-door, minivan, S.U.V.) for each company. An example of the data follows:
    Ford
    Car 40mph 50mph 60mph
    0 ( 2-door)
    1 ( 4-door)
    2 (minivan)
    3 (S.U.V.)



    Use the information in the given class Table below to:
    a. Write an instantiation for the three car manufactures of Table that would be used in main.

    b. Write the source code to access for Ford, a minivan, at speed 50mph in main.

    c. Write a class method float Table::Car_model_average (int) to compute the average noise level for a given car model.

    d. Write the source code in main to access the method Car_model_average to compute the average noise level for a certain car manufacturer for a given car model.

    class Table
    {
    public:
    float Get_grid_element ( int, int);

    private:
    int Rows, Columns // number of rows & columns in use
    float Grid [ 10] [ 10 ];
    }
     
  2. brendandonhu

    brendandonhu

    Joined:
    Jul 8, 2002
    Messages:
    14,681
    Whats your question?
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/172047

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice