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.

Help With My C++ Question Please

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

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

    JollyMan311 Thread Starter

    Oct 14, 2003
    I have gotten through some of Part1. Its Part2 I need most of the help with...

    Part 1: A 2-dimensional array named Grades has been initialized to the following values in the order shown:
    56 98 72 62
    61 73 63 96
    87 94 91 71

    Show the contents of the array after execution of the following code segment:

    int temp, x;
    for ( x = 1 ; x < 4 ; x + + )
    temp = x ;
    Grades [ --temp ] [ x ] * = 2 ;

    Part 2: Create a class Rectangle, the “.H” file. The class has attributes length and width (i.e. 5.2 inches), each of which defaults to 1. It has member methods that calculate the perimeter and the area of the rectangle. It has set and get methods, for both length and width. The set method should verify that length and width are each floating-point numbers larger than 0.0 and less than 20.0

    a. Write the source code for the “.H” file
    b. Write C++ source code statements for one of the set methods
  2. Gibble


    Oct 9, 2001
    We aren't going to do your homework for you.

    If you have a specific problem with getting it answered, we'll help with that, but show us what you've got and where you are stuck and we'll help you past that point.
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/172044

  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