{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Ch04_Questions

# Ch04_Questions - C Programming From Problem Analysis to...

This preview shows pages 1–3. Sign up to view the full content.

1. d. methods 2. d void 3. a. private 4. d. PrintReport 5. b. answer = Math.Floor(87.2); 6. c. public int DetermineAnswer(double, int) 7. a. back to the location in the calling method that made the call 8. c. void DetermineHighestScore(double val1, double val2) 9. e. SetNoOfSquareYards(double) 10. a. private member data 11. b. public Employee( ) 12. d. accessor 13. e. Name 14. a. Employee employee1 = new Employee( ); 15. b. public void SetGpa(double gpaValue) C# Programming: From Problem Analysis to Program Design , 2nd edition ISBN 1423901460 Chapter 4 Doyle: C#, 2nd edition ISBN 1423901460 Page 1-1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
16. a. heading: public void InputValues( out int val1, out int val2) call: InputValues( out val1, out val2); 17. a. const 18. e. private…public 19. a. static double determineGrade( int grade1, int grade2, int grade3) 20. d. public static void displayResults( double taxAmount, double totalSales ) 21. a. 2, 2, 0 b. int, void, int c. int answer = GardenTool.determineResult(value1, value2); GardenTool.displayResult(value1, value2); int result = GardenTool.getValues( ); d. All three can have return statements. Only the first and last must
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 7

Ch04_Questions - C Programming From Problem Analysis to...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online