1. Engineering
  2. Computer Science
  3. software engineering question answer carefully and completely for a thumbs...

Question: software engineering question answer carefully and completely for a thumbs...

Question details

Software Engineering Question

Answer carefully and completely for a thumbs up

Question2 (a) The CEO of a company hears that his developers are adopting XP for a software project. He reads up on XP and expresses shock at what he has learned: So you mean to tell me that programmers sit down together in pairs to write every line of code, and they write tons of tests for each bit of code they write? This project is never going to be finished.. Does the CEO have a point? What arguments might you present to reassure him that use of XP wont hamper the project? (b) Why is it important that unit tests be as simple as possible? Why is it important to have a tool like JUnit supporting a test-driven approach to development? (c) Suppose you are developing a class called Examscore, representing the mark scored in an examination. The class has a constructor with a single int parameter, repre- senting the mark obtained in the exam. The class also has a method called grade, which returns the string pass if the mark is 40 or more, fail if the mark is less than 40 Write down the code for a JUnit test method suitable for testing grade. (d) A sofware engineering lecturer tells her students unit tests alone are not enough to guarantee a correct, high-quality solution. Explain what she means by this statement

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution