FLVS Foundations of Programming module 2 assignment 02.06
Directions
Now that you have an understanding of using functions and operations with numerical and non-numerical data, it's time to show your instructor and yourself what you can do with them! You will use the software development life cycle (SDLC) to create a working program of your choice that will perform calculations with user input. Your program can include any Python skills and functions you have learned up to this point.
This assignment has five steps.
Step One: Planning & Analysis
Read the options carefully and choose ONE as the basis of your project.
Option 3—Programmer's Adventure
If you want to journey the road less traveled and create your own program option, go for it! Keep in mind, the goal of your program must be to calculate something, using the operations and functions you have learned up to this point. Your program must output the following:
item names and values
results of the calculations
Possible Program Options:
Mini-vacay—Calculate the total cost of a two-day one-night vacation, including airfare, lodging, and two meals per day.
Coupon Mania—Calculate the total percentage of savings on three grocery items with coupons.
Stock Supreme—Calculate the total profit or loss of a stock of your choice over five days for a person who owns 1,000 shares.
Step Two: Design
It's time to design your program by writing pseudocode. Your outline must include the following elements:
Input statements
Ask the user for at least three numeric values.
Show proper use of the int() and float() functions.
Calculations required to achieve correct output.
Use proper order of operations.
Use any appropriate math functions.
Output statements
Create clear and well organized output to share the data and results of the calculations.
Show proper use of the str() function.
Insert your pseudocode here:
Step Three: Coding
Use the following guidelines to code your program:
To code the program, use the Python IDLE.
Using comments, type a heading that includes your name, today's date, and a short description of the program.
Follow the Python style conventions regarding indentation and the use of white space in your program.
Use meaningful names for all variables.
Example of expected output: The output for your program should resemble the following screenshot. Your specific results will vary, depending on the choices you make and the input provided.
output of python code
Insert a copy of your code from the IDLE here:
Step Four: Testing
Run your code, and evaluate the output. Then, answer the following questions in the testing chart. Use two to three meaningful sentences to answer each question.
Testing Question Response
What bugs did you identify in your code?
How did you fix the bugs?
Step Five: Maintenance
Passionate programmers strive to improve their code! In two to three meaningful sentences, answer the following questions in the maintenance chart to consider the next steps of your program.
Maintenance Question Response
What design and functionality improvements could you make to your program?
How can you get feedback on ways to improve your program?
How can you expand your program into a new, better program in the future?
What are potential bugs that users may possibly encounter if your program is expanded into a new program in the future?