
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Information about csce 150a lab assignment 6 from spring 2009. The assignment includes two problems. The first problem involves practicing with pointers and filling in the values of variables after code execution. The second problem requires filling in the main method to run a program that asks for an amount of money and prints the value in several different currencies, the amount of snacks that can be bought, and how much to tip the gta using output parameters.
Typology: Assignments
1 / 1
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.