Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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...

1 answer below »
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 a
ays. Calculate and display each of the following:
· The total cost of each category.
· The total cost of the trip.
· 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 cu
ency of the country visited.
Submit your Python program as a text file ( .py) file.  In addition, submit a Design outline and a Test plan
eport (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 screen shot 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).
Design – outline proper sequence of steps, calculations. Identify all your loops.
TestPlan – Completeness of your Test plan
eport (at least three test cases - (one test case must be 5 days and 5 people).  You should include the known facts in your test cases.  Include screen shots for each test case.
Documentation - Header and in-line comments. Documentation of major steps (from design outline);
Program prompts and executes co
ectly on all test cases. Satisfies all requirements. (each requirement -10pts, compiles -20pts, effectiveness and neatness -10pts, descriptive variables – 5pts, def main() -5pts).
Answered 1 days After Nov 30, 2022

Solution

Mohith answered on Nov 30 2022
39 Votes
Design
1. First, prompt for number of people and days of the trip, and store them
accordingly.
2. Declare two lists to store gas and food costs.
3. Loop through the number of days to enter food and gas costs for each day.
4. Calculate as follows:
a. total_food_cost = sum of food on all...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here