There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell drive driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking outlook outlook 2003 outlook express printer problem problems ram router slow sound sprtcmd.exe startup trojan usb virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Help With My C++ Question Please


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
JollyMan311's Avatar
Junior Member with 4 posts.
 
Join Date: Oct 2003
14-Oct-2003, 11:09 PM #1
Post Help With My C++ Question Please
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
Gibble's Avatar
Distinguished Member with 27,137 posts.
 
Join Date: Oct 2001
Location: Striking or Scoring
Experience: The Alpha and Omega
14-Oct-2003, 11:26 PM #2
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.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:01 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.