sprockets New Radiosity render of 2004 animation. Will Sutton's TAR knocks some heads! Learn to create your own tool bars! Behind The Scenes: A:M and Animatronics Jeff Cantin's Classic Splining Tutorial Strange Effect, video demo and PRJ included John blows up a planet, PRJs included
sprockets
Recent Posts | Unread Content
Jump to content
Hash, Inc. - Animation:Master

C++ Week 17 Functions ... return values and parameters


robcat2075

Recommended Posts

  • Hash Fellow

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

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...