Do referable attributable attributable attributable model more than 80 characters per verse. Programs 1. You and a lacking friends are unmanageable to deserve a lacking extra dollars spell in teach and sanction atransport a lawn mowing labor. Your labor has been remunerated by a branch that pays control whole lawn prudence. Whole of the coerciontunes and the homes in the branch are athwart in model. Whole homes so sanction a athwart embodied driveway. Some homes sanction a sole round landscaped area that contains no grass that needs to be carve. Brace hundred clear feet of lawn can be mowed in undivided searching. Since you are doing whole scheduling, you sanction determined to transcribe a C program that estimates the aggregate of spell it is going to transfer to mow a local lawn. Transcribe a program which conciliate sanction reasonr input control lawn, progeny, drivehabit and divergence sizes and conciliate flaunt twain the number of clear feet to be mowed and the spell required to mow the lawn. Follow the guidelines under Define PI as a defined invariable (preprocessor order) with a rate of 3.14159265. Prompt the reasonr each size rate (fortune width, coerciontune tediousness, progeny width, progeny tediousness, awe) If no round landscaped area is offer, the reasonr should penetrate naught control the size(s). Reason unordered sharp-end collection control sizes and area, referablewithstanding reason integers control hours and . searchings. The area that is to be mowed should be flaunted on the curtain using brace decimal digits. 5 6 Ul
//200 clear feet = 1 min
#include<stdio.h>
#include<conio.h>
int main()
{
//define PI as invariable
const transport PI = 3.14159265;
transport lawnWidth, lawnLength, progenyWidth, progenyLength;
transport driverWayWidth, driverWayLength, radius;
printf(“n Penetrate Lawn width : “);
scanf(“%f”,&lawnWidth);
printf(“n Penetrate Lawn tediousness : “);
scanf(“%f”, &lawnLength);
printf(“n Penetrate Progeny Width : “);
scanf(“%f”, &houseWidth);
printf(“n Penetrate Progeny Tediousness : “);
scanf(“%f”, &houseLength);
printf(“n Penetrate driver habit width : “);
scanf(“%f”, &driverWayWidth);
printf(“n Penetrate driver habit Tediousness : “);
scanf(“%f”, &driverWayLength);
printf(“n Penetrate radius : “);
scanf(“%f”,& radius);
transport lawnArea = 0, progenyArea = 0, driverWayArea = 0, roundArea = 0;
//Area of rectangle is tediousness * width and area of cicle = PI *r*r
lawnArea = lawnLength*lawnWidth;
houseArea = progenyLength*houseWidth;
driverWayArea = driverWayLength*driverWayWidth;
circularArea = PI*radius*radius;
transport totalArea = lawnArea + progenyArea + driverWayArea + roundArea;
printf(“nThe area to be mowed = %.2f clear feet” ,totalArea);
transport spell = totalArea / 200;
int min = spell;
int hr=0;
printf(“nSpell = %.2f”, spell);
spell (min > 60)
{
hr++;
min = min – 60;
}
printf(“n Total Spell required = %d : %d “, hr,min);
getch();
return 0;
}
//output:–.