A4.1 demonstrate the ability to identify and correct syntax, logic, and run-time errors in computer programs;
A4.2 use workplace and professional conventions (e.g., naming, indenting, commenting) correctly to write programs and internal documentation;
A4.3 demonstrate the ability to interpret error messages displayed by programming tools (e.g., compiler, debugging tool), at different times during the software development process (e.g., writing, compilation, testing) ;
A4.4 use a tracing technique to understand program flow and to identify and correct logic and run-time errors in computer programs; A4.5 demonstrate the ability to validate a program using a full range of test cases.
B1.2 demonstrate the ability to solve problems independently and as part of a team;
B4.1 describe the phases (i.e., problem definition, analysis, design, writing code, testing, implementation, maintenance), milestones (e.g., date of completion of program specification), and products (e.g., specification, flow chart, program, documentation, bug reports) of a software development life cycle;
Saving related data together in a single variable is an extremely helpful strategy!
Here is a list of problems that MUST be solved using some kind of list (or array). Choose a problem that no one else has picked and enter it into the spreadsheet. Do not wait until the last minute. Also, you cannot do a problem that we have already done in class. Here are the requirements:
Your main program (not the function) must accept user input and make sure it is valid so that your program does not crash. If invalid input is entered, it must notify the user and ask them to enter the input again.
Create a function that accepts the list input as a parameter and returns the result.
The result should be displayed in main().
You CANNOT use any built-in functions that will solve the problem for you. For example, if you are trying to find the max number in a list, you CANNOT use the max() function to solve it.
The top-down design is for the main() program.
The flowchart and pseudocode are for each function.
If you are not sure on any part of the problem, just ask me and I will give you additional information.
See below for more information on how to read and parse strings in both Python and C++. Remember that if you use any code from the Internet, you MUST source (i.e. in the comment above the code, include the URL to where you got the code)!
complete the assignment section in Hãpara Workspace for this day
if Hãpara is not working, make a copy of this document
move it to your IMH-ICS folder for this course
See the rubric for more information.