Help With My C++ Question Please

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

JollyMan311

Thread Starter
Joined
Oct 14, 2003
Messages
4
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
 
Joined
Oct 9, 2001
Messages
27,087
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.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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 807,865 other people just like you!

Latest posts

Staff online

Top