Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. Program II
  2. Design a Program that will help farmer build an enclosed fence. This will be rectangular with the character | used for the North and South fence posts and == used for the boards, the East and West fence posts will use the - for the fence post and : for the boards between
  3. Will ask for North/South side fence posts and the number of East/West side fence posts number
  4. NO VALUES Less than 2 will be accepted as for these values (re-ask until a valid answer is given for each)
  5. Maximum number accepted is 10 for each if a value > 10 is entered do not re-ask just use the value of 10
  6. A looping statement must be used for this program to be signed by the instructor.
  7. Continue to Build new fence pastures until the answer is an 'N'
  8. Inputs
  9. North_South posts 4
  10. East_West posts 3
  11. Response N
  12. The Sample Screen output should appear as follows adapted to inputs given
  13. 2014 Old Bruin Farm Fence Builder
  14.  
  15.  
  16. What is the Number of North/South Fence posts? 1
  17. Value must be at least 2 please try again
  18. What is the Number of North/South Fence posts? 4
  19. What is the Number of East/West Fence posts? 3
  20.  
  21.  
  22. |==|==|==|
  23. : :
  24. - -
  25. : :
  26. |==|==|==|
  27.  
  28.  
  29. Pasture Built!!
  30.  
  31.  
  32. Would you like to build another (Y/N)? N
  33. Demonstrate to the instructor the successful completion of the program output. Have this sheet ready for instructor to sign and hand in to instructor to receive credit.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement