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 17: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 06: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 (73 words)

xxxxxxxxxx xx as xxxxxxx
---------------------------------

xxxxxxx width xx float
declare xxxxxx xx float
xxxxxxx area as float

xxxx xxxxx xxxx xxxx xxxxx
xxxx length from user xxxxx

area = width x length

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

xxxxxxx xx xx

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

float xxxxxx
xxxxx xxxxxxx
xxxxx area;

xxxxxxxxxxxxx the xxxx width: ");
scanf("%f", &xxxxxxx
printf("Enter the xxxx xxxxxxx xxx
xxxxxxxxxxx &xxxxxxxx

xxxx = xxxxx x xxxxxxx

printf("The area xx xxx room is %0.2f", area);

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


Buy this answer

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

i also give the screenshot and code in c

body preview (136 words)

int choose;
xxxxx radius,base,height,side,width,length,area;
printf("Choose the object:\n1.Circle\n2.square\n3.rectangle\n4.parallelogram\n5.triangle\n");
xxxxxxxxxxx&choose);
switch (choose)
x
xxxx xx printf("Enter the xxxxxxxxxx
xxxxxxxxxxx&xxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxx
printf("Area xx :%.2f\n",area);
xxxxxxxx
case xx xxxxxxxxxxxxx xxx xxxxxxxx
scanf("%f",&xxxxxx
area=side*side;
printf("Area is :%.2f\n",area);
xxxxxxxx
case xx printf("Enter xxx xxxxxxxxx
xxxxxxxxxxx&width);
xxxxxxxxxxxxxxx the xxxxxxxxxx
xxxxxxxxxxx&length);
area=length*width;
xxxxxxxxxxxxxx xx xxxxxxxxxxxxxxx
break;
xxxx xx printf("Enter xxx xxxxxxxx
xxxxxxxxxxx&base);
xxxxxxxxxxxxxxx xxx xxxxxxxxxx
xxxxxxxxxxxxx&height);
area=base*height;
printf("Area xx xxxxxxxxxxxxxxx
xxxxxxxx
case xx printf("Enter xxx base:");
xxxxxxxxxxx&base);
printf("Enter xxx xxxxxxxxxx
xxxxxxxxxxxxx&xxxxxxxx
xxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxx is :%.2f\n",area);
break;
}
x

file1.c preview (129 words)

#include<xxxxxxx> main() x int choose; xxxxx radius,base,height,side,width,length,area; printf("Choose the xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx&choose); xxxxxx (choose) { xxxx xx printf("Enter xxx radius:"); scanf("%f",&radius); xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx is :%.2f\n",area); break; case xx xxxxxxxxxxxxx the side:"); scanf("%f",&xxxxxx xxxxxxxxxxxxxxxxx printf("Area xx xxxxxxxxxxxxxxx xxxxxxxx xxxx xx printf("Enter the width:"); xxxxxxxxxxx&width); printf("Enter the xxxxxxxxxx scanf("%f",&xxxxxxxx area=length*width; xxxxxxxxxxxxxx xx :%.2f\n",area); xxxxxxxx case 4: xxxxxxxxxxxxx xxx base:"); scanf("%f",&base); printf("Enter xxx xxxxxxxxxx xxxxxxxxxxxxx&height); xxxxxxxxxxxxxxxxxxx printf("Area is xxxxxxxxxxxxxxx xxxxxxxx case xx printf("Enter xxx base:"); scanf("%f",&base); xxxxxxxxxxxxxxx the xxxxxxxxxx scanf("%f",&xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxx printf("Area is xxxxxxxxxxxxxxx break; x xxxxxx 0; }

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 01:07
teacher rated 0 times
0
price: $5.00

solution:

body preview (40 words)

here it is xxx xxxxxxxxxxxx

xxxxxxxxxx
xxxxxxxxxx

xx L, H, B and x reals;

xxxxxxx
-------

Enter W the xxxxx xx xxx xxxxx
Enter x the Length xx the xxxxx
Enter H xxx heigth of the room;

Process:
--------

x <--- L*W ;
x <--- B*H ;

xxxxxxxx
--------

Display x the area of the room;


Buy this answer