Advertisement

01.18.2008 at 08:39AM PST, ID: 23093826
[x]
Attachment Details

Writing Psuedocode

Asked by rebelcowgirl_73 in C++ Programming Language, Miscellaneous Programming, JavaScript

Tags: psuedocode, code

I have to do the following:

Design and write pseudo code for an abstract data type representing a rectangle (width and length). Add a way to compare two rectangles by comparing their area, and a function computing the biggest in an array of rectangles.

THis is what I have so far:

Declare Height of Reals
Declare Width of Reals
Declare Area of Reals
Declare A[100] of Reals
Write Enter the Height and Width of Rectangle (enter 0,0 to quit): 
Input Height, Width
Set Area = Height * Width
Set Count = 0
While Area <> 0
     Set Count = Count + 1
     Set A[Count] = Area
     Write Enter the Height and Width of Rectangle (enter 0,0 to quit): 
     Input Height,Width
     Set Area = Height * Width
End While

PsuedoCode is not an easy task for me:  Could someone please help me!  I am fairly new to programming and I am stuck!  Thanks ALIStart Free Trial
 
Loading Advertisement...
 
[+][-]01.18.2008 at 08:47AM PST, ID: 20691809

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.18.2008 at 01:54PM PST, ID: 20694568

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C++ Programming Language, Miscellaneous Programming, JavaScript
Tags: psuedocode, code
Sign Up Now!
Solution Provided By: jhshukla
Participating Experts: 5
Solution Grade: B
 
 
[+][-]01.20.2008 at 03:04AM PST, ID: 20700754

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.20.2008 at 10:19AM PST, ID: 20701941

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.21.2008 at 08:15AM PST, ID: 20707086

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628