Week 7: Due on Feb 25, 2024 11:59 PM
This week’s assignment involves writing a Python program to collect all the data of a road trip and calculate each person’s share of the cost. Prompt the user for each of the following:
- The number of people on the trip.
- The number of days of the trip.
- For each day of the trip:
- Cost of food.
- Cost of gas.
The food and gas costs should be stored in two separate arrays. Calculate and display each of the following:
- the total cost of each category;
- the total cost of the trip; and
- each person’s share of the total cost.
Your program should include Header comments (what the program does) and in-line comments (the major design steps). Also document the currency of the country visited.
Submit your Python program as a text file (.py) file. In addition, submit a Design outline and a Test plan/report (3 different test cases – one test case must be 5 days and 5 people) in a Word document or a PDF file and include a screenshot of execution of your program for each test case.
Your submission must also adhere to the Submission Requirements document. (i.e., Filename and display your name, class, date in the output).
Grading:
15% – Design – outline proper sequence of steps, calculations (if necessary). Identify all your loops, validation.
10% – Test Plan – Completeness of your Test plan/report (at least three (probably more) test cases). You should have a test case for each invalid and one for a valid password. Include screenshots for each test case.
10% – Documentation – Header and in-line comments. Documentation of major steps (from design outline).
65% – Program prompts and executes correctly on all test cases. Satisfies all requirements (each requirement – 10 pts, compiles – 20 pts, effectiveness and neatness – 10 pts, descriptive variables – 5 pts, def main() – 5 pts).
mportant note: This is an individual assignment and students are required to submit their original/independent work and adhere to UMGC academic integrity policy. Your submission should adhere to the Submission Requirements document. It is advised that you read all the material, including the Lecture before attempting the assignment. Also, review the example programs and practice exercises.