
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

The following table has columns for five int variables, giving their addresses and initial values. In each blank row, fill in the values of the variables after the code statement has executed.
Download currency.c from the course web site. Fill in the main method to run a program that asks for an amount of money, and then prints the value in several different currencies, the amount of snacks you could buy, and how much you should tip your GTA. You will use the following methods with output parameters in order to calculate the values:
When you are done, show the instructor. There is no grading script this week, so you have freedom with your output! Make sure the values returned by the methods are printed to the screen.
Hints: Keep all of your code in the main method, but call the defined methods to get the values.