Hash Fellow robcat2075 Posted January 22 Hash Fellow Share Posted January 22 Lesson 28 (Return Values) shows how to get a value back from a function. Lesson 29 (Parameters) shows how to send values to a function We can show what we learn in one program Assignment program Write program with at least two functions. One function when called will prompt the user for an item of data and return that data to the main program. The second function, when called, is sent that data as a parameter and returns the result of some calculation on that data. The main program will display that returned result. Remember to label your outputs. Possible topics Area of a square or any other geometric figure Perimeter of a rectangle any other geometric figure Sales tax on a purchase Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.