Question 2 (15 marks) Describe and demonstrate how you would follow test-driven development to develop a class that has

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
correctanswer
Posts: 43759
Joined: Sat Aug 07, 2021 7:38 am

Question 2 (15 marks) Describe and demonstrate how you would follow test-driven development to develop a class that has

Post by correctanswer »

Question 2 15 Marks Describe And Demonstrate How You Would Follow Test Driven Development To Develop A Class That Has 1
Question 2 15 Marks Describe And Demonstrate How You Would Follow Test Driven Development To Develop A Class That Has 1 (216.65 KiB) Viewed 79 times
Question 2 (15 marks) Describe and demonstrate how you would follow test-driven development to develop a class that has the following functionalities: (a) convert a given amount of money in AUD into SGD; (b) given two integer numbers x and y ranging from -10 to 10, calculate their sum of squares (i.e. x² + y²); and (c) given a distance and the time taken a car to cover that distance, calculate its average speed. For each functionality, sketch 5 different unit test cases. Justify your choices of test cases. Your answer must be specific to this case study. Generic answers copied from the lecture slides or other sources will be given 0 mark.
Register for solutions, replies, and use board search function. Answer Happy Forum is an archive of questions covering all technical subjects across the Internet.
Post Reply