Define the Problem Why Is There a Need for This C Program?
Total Page:16
File Type:pdf, Size:1020Kb
C Program Worksheet
C Program Worksheet
Define the problem – Why is there a need for this C program?
______
______
______
______
______
______
______
______
C Program Requirements – What does the customer want?
______
______
______
______
______
______
______
______
______
______
______
Steve Clayden, Gateway Community College © 2005 1 of 6 C Program Worksheet
List possible variable names – include the variable data types and default values:
______
______
______
______
______
______
______
______
List the possible equations or analyses that are needed in the program.
______
______
______
______
______
______
______
______
Steve Clayden, Gateway Community College © 2005 2 of 6 C Program Worksheet
Part A: Buying the currency
1. Which currency was bought by the instructor in the demonstration and what was the exchange rate from USD to that currency? Why was this currency chosen?
______
______
______
______
2. What was the resulting conversion amount in the selected currency? How was the amount determined? What equation was used to convert the USD into the new currency?
______
______
______
______
Part B: Selling the currency
1. Which currency was sold by the instructor in the demonstration and what was the exchange rate from that currency to USD? Why was this currency chosen?
______
______
______
______
Steve Clayden, Gateway Community College © 2005 3 of 6 C Program Worksheet
2. What was the resulting conversion amount in USD? How was the amount determined? What equation was used to convert the currency into USD?
______
______
______
______
3. Did the transaction result in a profit or loss, based on the original investment amount and the resulting sale back to USD? What percentage of the original investment was the profit or loss? How was the profit or loss determined? How was the percentage determined? What equations were used?
______
______
______
______
Part C: Logic Flow Diagrams & Pseudo Code
1. Why do Logic Flow Diagrams assist in program development?
______
______
______
______
2. Why does Pseudo Code assist in program development?
______
______
______
______
Steve Clayden, Gateway Community College © 2005 4 of 6 C Program Worksheet
Notes:
______
______
______
______
______
______
______
______
______
______
______
______
______
______
______
______
______
______
______
______
______
______
Steve Clayden, Gateway Community College © 2005 5 of 6 C Program Worksheet
Steve Clayden, Gateway Community College © 2005 6 of 6