write a program that reads in the length and the width of a rectangular yard . your program should compute the time required ( i n minutes ) to cut the grass at the rate of 2.3 square meters a second
1 answer:
Here's on C: #include<stdlib.h> <span>#include<stdio.h> </span> <span>#include<conio.h> </span> <span>long YardArea=0,HouseArea=0; </span> <span>int YardLength=0,YardWidth=0,HouseLength=0,HouseWidth=0; </span> <span>long GroundArea=0; </span> <span>int TimeReqierd=0; </span> <span>int GrassCutRate=2; </span> <span>void main() </span> <span>{ </span> <span>char inp[256]; </span> <span>clrscr(); </span> <span>printf("your text text\n"); // put your greetings</span> <span>printf("Input the leght of the yard\n"); </span> <span>gets(inp); </span> <span>YardLength= atoi(inp); </span> <span>printf("input the width of the yard\n"); </span> <span> gets(inp); </span> <span>YardWidth=atoi(inp); </span> <span> printf("input the length of the house\n"); </span> <span> gets(inp); </span> <span>HouseLength=atoi(inp); </span> printf("input <span>the width of the house\n"); </span> <span> gets(inp); </span> <span>HouseWidth=atoi(inp); </span> <span>HouseArea=HouseWidth *HouseLength ; </span> <span>YardArea=YardWidth* YardLength; </span> <span>GroundArea=YardArea-HouseArea; </span> <span> TimeReqierd=GroundArea/GrassCutRate; </span> <span>printf("%s%d","Grass Area is ",GroundArea); </span> <span>printf("%s%d seconds"," \n time required to cut it out " ,TimeReqierd); </span> <span>getchar(); </span> <span>} </span>
You might be interested in
Answer:
int* strikeCounter ;
int someVal;
scanf("%d", &someVal);
strikeCounter =&someVal;
*strikeCounter =someVal*4;
Explanation:
Here we took one int variable and read that value from user. we assigned that int variable address to pointer variable "strikeCounter " and we are pointing the value of strikecounter as 4 times of that integer variable value
Answer:
print preview
Explanation: platooo
Answer:
its the basic link
Explanation:
I would say it has to be b but its what the correct answer is its up to you! I hoped this helped you out! Have a nice day!