Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For Lab 4, you will be writing a more complex modular program that uses at least two loops, validates user input, and includes a test

For Lab 4, you will be writing a more complex modular program that uses at least two loops, validates user input, and includes a test plan. As long as your program satisfies the requirements listed below, you are free to design and write any type of program that you care to. You are encouraged to be creative, and pick something that has meaning for you, because you'll have more fun. Feel free to create a more complex version of the program you did in an earlier lab, as long as it meets all of the additional requirements below. Requirements Your lab submission should consist of a Python file, Lab4.py, uploaded to the Lab 4 dropbox, plus a document Lab4-TestPlan.doc (or docx or odt) containing a test plan. The Lab4.py file should meet all of the following requirements: A comment at the top with a brief description of the program, including Input List and Output List. Your name given as the author. Full pseudocode should be included in the comments. It must have at least one input and at least one output. It must validate the user input. This means the user is not allowed to just enter any value. You must check the value, and ask the user to enter it again, and repeat this loop until the user enters a valid value. Your program must use at least two loops in meaningful ways. The loops you use for input validation count for at most one of the two required loops. If you use loops to validate two separate inputs, that does not count as two loops for satisfying this lab requirement. It should be organized into separate modules (one module for input, one module for output, and one module for each separate calculation or action that the program is to perform [that is, each module should be "cohesive" and should only do one thing]). Use parameters and arguments to pass values into your modules (don't use global variables). The Python code should run correctly, and the logic should match your pseudocode. The test plan document Lab4-TestPlan should meet all of the following requirements: Follow the format given in the example test plans (one below, and one on the Testing page). You can download and copy the test plan document below and use it as a template: replace the content of each section with your own content. Write the test plan as if for someone who cannot see your source code (utilize black-box testing). They can only run the program, provide inputs, and observe outputs. For each test case, include at least the following fields: Summary, Test Procedure, Test Data, Expected Result. Feel free to add more fields if you want to. (See Test Case for additional fields.) Include test cases for all important categories of input (valid, invalid, boundary, etc.). If your program passes every test case in your test plan, you should be confident that it functions correctly. Be sure to run your program against the test plan to determine its correctness, and fix any bugs found.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 25th European Conference Adbis 2021 Tartu Estonia August 24 26 2021 Proceedings Lncs 12843

Authors: Ladjel Bellatreche ,Marlon Dumas ,Panagiotis Karras ,Raimundas Matulevicius

1st Edition

3030824713, 978-3030824716

More Books

Students also viewed these Databases questions

Question

7. Identify four antecedents that influence intercultural contact.

Answered: 1 week ago