please [c++] .........Write a program that reads in the length and width of a rectangular yard (in meters) and the length and width of a rectangular house (in meters) placed in the yard. Your program should compute the time (in minutes) required to cut the lawn around the house. Assume the mowing rate in square meters per minutes is entered as a data input
(yard.sqft - house.sqft) * mowingRate
Hi, Try this. float yard_length, yard_width, house_length, house_width, s_house, s_yard, cutting_space, mowing_speed; float time=cutting_cpace/mowing_speed; cin>>yard_length>>yard_width; s_yard=yard_length*yard_width; cin>>house_length>>house_width; s_house=house_length*house_width; cutting_space=s_yard-s_house; cin>>mowing_speed; cout<<time<<" minutes needed"<<endl;
thanks a lot
Join our real-time social learning platform and learn together with your friends!