This is a C++ problem. Please give full explanations and code in details. Thanks.
- Attachment 1
- Attachment 2
A local rancher has asked you to help them come up with a plan for laying fencing on their property .They need you to print out a blueprint for how to lay the fencing where a " ‘ represents a post , a – "represents a foot of fencing and a’S’ represents a single no trespassing sign . Your task write a C + +program that prompts the user for input ( solicit requirements from the rancher ) and A ) print out thefence blueprint and B ) tells the farmer how many signs to order ."Program must prompt for : total Posts , feet Between Posts , and minimum Feet Between SignsRules :"1 . a Sign may NOT be adjacent to a post or ON a post .2 . for any section between two posts , the number of feet of fence laid + the width of any signs ( s )set must be equal to the feet Between Posts . There can be no ‘ missing" feet between posts . There*can be no ‘ extra ‘ feet between posts .3 . The distance between signs is regulated by the minimum Feet BetweenSigns . If possible a signmust occur at every x minimum Feet Between Signs feet . If a sign cannot be located theminimum number , then the sign must be placed in the next allowable location . The width ofevery sign is I foot .4 . No partial feet of fence may be laid . No partial signs may be set . All fence and signs ismeasured in whole feet .5 . POSTS have a O foot width . Posts shall not cause the length of the fence to increase .6 . the first sign must be at least min Feet Between Signs from the initial post