project

closed account (y7p9z8AR)
hi I just need a general understanding on this project. like what its asking.

Write a program that calculates and displays the total travel expenses of a businessperson on a trip. If you are using functions, the program should have functions that asks for and return the information below. If you are not using functions you may code your calculations below in the main file.

The total number of days spend on the trip
The time of departure on the first day of the trip, and the time of arrival back home on the last day of the trip
The amount of any round-trip airfare
The amount of any car rentals
Miles driven, if a private vehicle was used. Vehicle allowance is $0.58 per mile
Parking fees. (The company allows up to $12 per day. Anything in excess of this must be paid by the employee.)
Taxi fees. (The company allows up to $40 per day for each day a taxi was used. Anything in excess must be paid by the employee)
Conference or seminar registration fees
Hotel expenses. (The company allows up to $90 per night for lodging. Anything in excess must be paid by the employee)
The cost of each meal eaten. On the first day of the trip, breakfast is allowed as an expense if the departure is before 7 a.m. Lunch is allowed if the time of departure is before noon. Dinner is allowed if the time of departure is before 6 p.m. On the last day of the trip, breakfast is allowed if the time of arrival is after 8 a.m. Lunch is allowed if the time of arrival is after 1 p.m. Dinner is allowed if the time of arrival is after 7 p.m. The program should only ask for the costs of allowable meals. (The company allows up to $18 for breakfast, $12 for lunch, and $20 for dinner. Anything in excess of this must be paid by the employee.)
The program should perform the necessary calculations to determine the total amount spent by the business traveler in each category (mileage charges, parking, hotel, meals, etc.) as well as the maximum amount allowed in each category. It should then create a well laid out expense report that includes the amount spent and the amount allowed in each category, as well as the total amount spent on the total amount allowed for the entire trip. This report should be written to a file.

Input Validation: The program should not accept negative numbers for any dollar amount or for miles driven in a private vehicle. It should also ensure that the number of days is at least 1 and the the time of departure and the time of arrival as valid.

plz help me understand what the project is asking.
Is there a particular part you are confused about? What you have is a pretty good description of what they want and pretty clear what it wants.
To give you an idea...
                         TRAVEL EXPENSES                               
Input the total number of days spent on the trip
>>> 10
What was the time of departure on the first day of the trip
>>> 07.25
What was the time of arrival on the last day of the trip
>>> 12.59
Input the amount of the round-trip airfare
>>> 2500
Did you rent any car?(Y/N)
>>> y
Input the amount of any car rentals
>>> 125
How many miles did you drive in your private vehicle?
>>> 50
Did you pay for parking tickets?(Y/N)
>>> y
Input any parking fees during your trip
>>> 30
How many days did you use the parking?
>>> 2
Did you use taxi?(Y/N)
>>> y
Input any taxi fees you incurred.
>>> 30
How many days did you use the taxi?
>>> 1
Input any conference or seminar registration fees.
>>> 25
Input any hotel expenses.
>>> 123
Input the total amount of allowable meals.
The business person is allowed 1 meal for the
first day of the trip and one meal on the last
day of the trip
>>> 20
                          TOTAL EXPENSES BREAKDOWN                         
---------------------------------------------------------------------------
Trip:----------------------$2500.00
Rental:--------------------$125.00
Mileage:-------------------$13.50
Parking:-------------------$30.00
Taxi:----------------------$30.00
Conference:----------------$25.00
Hotel:---------------------$123.00
Meals:---------------------$20.00
Total Expenses:------------$2866.50
---------------------------------------------------------------------------
                    TOTAL ALLOWABLE EXPENSES BREAKDOWN                     
---------------------------------------------------------------------------
Trip:----------------------$2500.00
Rental:--------------------$125.00
Mileage:-------------------$13.50
Parking:-------------------$12.00
Taxi:----------------------$10.00
Conference:----------------$25.00
Hotel:---------------------$810.00
Meals:---------------------$21.00
Total Allowable Expenses:--$3516.50
---------------------------------------------------------------------------
                          TOTAL SAVINGS EXPENSES                           
---------------------------------------------------------------------------
Savings:-------------------$650.00
---------------------------------------------------------------------------
Topic archived. No new replies allowed.