Assignment3

docx

School

Johns Hopkins University *

*We aren’t endorsed by this school

Course

EN 645.764

Subject

Industrial Engineering

Date

Feb 20, 2024

Type

docx

Pages

2

Uploaded by CommodoreBoulder10819

Report
Software Systems Engineering EN 645.764 Homework Assignment #3 (100 Possible Points) Name : Mya Reid 1. Explain why V&V is an important activity in software systems engineering [10 points]. And explain the difference between verification and validation [10 points]. Verification and validation (V&V) play a crucial role in software systems engineering by ensuring the reliability, quality, and correctness of software products. Verification ensures that the software is designed correctly, meets specifications, and adheres to standards, while validation evaluates the software against customer requirements and expectations. Thorough V&V identifies defects and errors early, leading to timely resolution and improved software quality. It also mitigates risks, enhances customer satisfaction, ensures compliance with regulations, and enables continuous improvement in software development practices. 2. Review the Assignment2.py file and its 4 parts. Suppose this is an important snippet of code for a software system. How would you go about organizing V&V of this code? [20 points] As part of the V&V process, my task is to verify that the intended software is being developed correctly. To accomplish this, I will examine and test the outputs of Assignment 2's code. During the inspection phase, I will assess the coding process and quality without executing the code, paying attention to any visible errors or nuances. 3. Review and execute the Assignment3.py file, and the manual for the Python unit test library. Add at least 2 additional tests cases that you could use to test the return_add_pair function after test_one [10 points]. Modify the function of return_add_pair to include a space between the + sign (i.e., 1+2 vs 1 + 2), and update the tests accordingly so that they pass [10 points]. Turn in your updated Assignment3.py after all updates. 4. How would you describe the software process you used to accomplish question 3? Which of the primary software activities did you perform, and in what order? [20 points].
The test cases were initially formatted in the same way as the original "return_add_pair" function, without including a space between the "+" symbol (e.g., 1+2 instead of 1 + 2). As I modified each of the three test cases, I realized it would be more convenient to modify the initially defined "return_add_pair" function instead of modifying each test case individually. Initially, I tested the original script to determine the expected output. Then, I proceeded to add additional test cases and tested the code again to observe the output. Finally, based on the desired output I identified in my initial software activity, I made modifications to the script. 5. If you were to accomplish Question 3 again, would you use the same process you used the first time? Given the opportunity to do it again, what would you change about your approach to Question 3 and why? [20 points] If I were to tackle question 3 once more, I would follow the same process. However, if given the chance to change my approach, I might consider modifying the script to accept both the original format "1+2" and "1 + 2". Nevertheless, I am aware that implementing such a change would require a significant number of additional lines compared to what has already been written. While both approaches are acceptable, I personally believe that the approach I initially took is faster and more streamlined.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help