Show me how to post my homework

Just do my homework!

  • HTML tags will be transformed to conform to HTML standards.
  • Add rel="nofollow" to external links
Question
Submitted by mantymansare2... on Mon, 2012-03-12 20:55
due date not specified
answered 3 time(s)
mantymansare2000 bought 1 out of 1 answered question(s)

You have been asked to create a program that will determine the area of any 4-sided room. You know that...

You have been asked to create a program that will determine the area of any 4-sided room. You know that the formula for determining area is base times height. Using psuedocode, outline such a program

Answer
Submitted by zerospin on Tue, 2012-03-13 09:59
teacher rated 0 times
0
purchased 2 times
price: $4.00

Pseudocode and C code for determining the area of any room.

body preview (72 words)

xxxxxxxxxx is xx follows

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

declare width xx xxxxx

xxxxxxx xxxxxx as float

declare area xx float

read width xxxx user xxxxx

xxxx length xxxx xxxx input

area x width x xxxxxx

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

xxxxxxx xx C:

---------------------------------

float width;

xxxxx xxxxxxx

float area;

printf("Enter the xxxx xxxxxx xxx

scanf("%f", &xxxxxxx

printf("Enter the xxxx length: xxx

xxxxxxxxxxx &length);

xxxx x width * xxxxxxx

xxxxxxxxxxx area of the xxxx xx xxxxxxx xxxxxx

-----------------------------------------------


Buy this answer

Answer
Submitted by danny21 on Tue, 2012-03-13 07:42
teacher rated 0 times
0
price: $5.00

i also give the screenshot and code in c

body preview (150 words)

xxx xxxxxxx

xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

printf("Choose the xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

xxxxxxxxxxx&choose);

xxxxxx (choose)

x

case 1: printf("Enter xxx radius:");

scanf("%f",&xxxxxxxx

area=3.14*radius*radius;

printf("Area xx :%.2f\n",area);

break;

xxxx xx xxxxxxxxxxxxx the side:");

xxxxxxxxxxx&xxxxxx

xxxxxxxxxxxxxxx

xxxxxxxxxxxxxx xx xxxxxxxxxxxxxxx

xxxxxxxx

case xx xxxxxxxxxxxxx xxx width:");

xxxxxxxxxxx&width);

printf("Enter the length:");

scanf("%f",&xxxxxxxx

area=length*width;

printf("Area xx xxxxxxxxxxxxxxx

xxxxxxxx

case 4: printf("Enter xxx base:");

xxxxxxxxxxx&xxxxxx

xxxxxxxxxxxxxxx xxx xxxxxxxxxx

scanf("%f",&height);

area=base*height;

printf("Area is xxxxxxxxxxxxxxx

xxxxxxxx

xxxx xx printf("Enter xxx base:");

scanf("%f",&base);

xxxxxxxxxxxxxxx xxx xxxxxxxxxx

xxxxxxxxxxxxx&xxxxxxxx

area=(base*height)/2;

printf("Area xx :%.2f\n",area);

xxxxxxxx

}

}

file1.c preview (157 words)

#include<stdio.h> main() x xxx choose; float xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx the xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx scanf("%d",&choose); xxxxxx xxxxxxxx { xxxx xx printf("Enter xxx xxxxxxxxxx xxxxxxxxxxx&radius); area=3.14*radius*radius; printf("Area is :%.2f\n",area); break; xxxx xx xxxxxxxxxxxxx xxx xxxxxxxx xxxxxxxxxxx&xxxxxx area=side*side; printf("Area xx :%.2f\n",area); break; case xx printf("Enter the xxxxxxxxx xxxxxxxxxxx&width); printf("Enter xxx xxxxxxxxxx xxxxxxxxxxx&length); area=length*width; printf("Area xx :%.2f\n",area); break; case xx xxxxxxxxxxxxx xxx xxxxxxxx xxxxxxxxxxx&base); xxxxxxxxxxxxxxx xxx xxxxxxxxxx xxxxxxxxxxxxx&height); xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx is xxxxxxxxxxxxxxx break; xxxx 5: xxxxxxxxxxxxx xxx xxxxxxxx xxxxxxxxxxx&base); xxxxxxxxxxxxxxx xxx xxxxxxxxxx xxxxxxxxxxxxx&xxxxxxxx area=(base*height)/2; printf("Area xx xxxxxxxxxxxxxxx xxxxxxxx } xxxxxx xx x

file2.docx preview (0 words)


Buy this answer

Try it before you buy it
Check plagiarism for $2.00

Answer
Submitted by dayamath on Tue, 2012-03-13 04:07
teacher rated 0 times
0
price: $5.00

solution:

body preview (58 words)

here xx is the xxxxxxxxxxxx

Variables:

----------

W, xx H, x xxx A xxxxxx

xxxxxxx

xxxxxxx

xxxxx W xxx xxxxx of the xxxxx

Enter L xxx Length of the room;

Enter H xxx heigth xx xxx room;

xxxxxxxx

xxxxxxxx

B <xxx xxx ;

A <--- B*H ;

xxxxxxxx

xxxxxxxx

Display A xxx xxxx of the xxxxx


Buy this answer