Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 21 Online
OpenStudy (anonymous):

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

OpenStudy (anonymous):

(yard.sqft - house.sqft) * mowingRate

OpenStudy (anonymous):

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;

OpenStudy (anonymous):

thanks a lot

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!