Page 321 - Learn to Program - Basic-256
P. 321

Chapter 20 – Runtime Error Trapping                                             Page 305



                                     enter a number> 22
                                     You entered 22


                              2. Take the logic you just developed in Problem 1 and create a
                              function that takes one argument, the prompt message,
                              repeatedly asks the user for a number until they enter one, and
                              returns the user's numeric entry.


                              3. Write a program that causes many errors to occur, trap and
                              them. Be sure to check out Appendix G: Errors and Warnings for a
                              complete list

















































                                                           © 2019 James M. Reneau (CC BY-NC-SA 3.0 US)
   316   317   318   319   320   321   322   323   324   325   326