# COMPUTER SCIENCE

posted by .

Write a program that calculates and displays the total travel expenses of a
businessperson on a trip. The program should have functions that ask for and return the following:
 The total number of days spent 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. Calculate the vehicle expense as \$0.38 per mile.
 Parking fees (The company allows up to \$6 per day. Anything in excess of this must be
paid by the employee.)
 Taxi fees, if a taxi was used anytime during the trip (The company allows up to \$10 per
day for each day a taxi was used. Anything in excess of this must be paid by the
employee.)
 Conference or seminar registration fees

## Similar Questions

1. ### Programming

Design a program in pseudocode that calculates the amount of money a person would earn over a period of time if their salary is one penny the first day, and then doubles each day. The program should ask the user for the number of days. …
2. ### Programming

Design a program in pseudocode that calculates the amount of money a person would earn over a period of time if their salary is one penny the first day, and then doubles each day. The program should ask the user for the number of days. …
3. ### Programming

Language - PYTHON Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15% tip and 7% sales tax. …
4. ### computer science

Class scores: Write a program that calculates the total grade for N classroom exercises as a percentage. The user should input the value for N followed by each of the N scores and totals. Calculate the overall percentage (sum of the …
5. ### computer science

Write an Assembly program to determine the price of a car rental. The car being rented costs \$45 per day and frequent renters get a \$15 discount on the total bill. Get as input, the number of days rented and whether the user is part …
6. ### c++

The distance between two cities is 500 miles. Let us call these cities as CityA and CityB. Employees live in the CityA and travel to the CityB every day in the morning and come back in the evening on the same day except on Saturday …
7. ### Programming and Design

Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a number …
8. ### Computer Science

Write a program   that reads the subtotal and the gratuity rate in this order, then computes the gratuity and total. For example, if the user enters "10" for subtotal and "15" (%) for gratuity rate, the program   displays "1.5" …
9. ### Computer Science

A public transport company provides three types of transports to its passengers to travel from city A to city B of different state. The three types of transports are train, bus and taxi. Each transport has different charges and maximum …
10. ### computer program

How do you design a program that asks for the sale figures, computes the total sales for the year, and calculates and displays final sale figures for the four quarters in 2010 and displays the average quarterly sale for the year?

More Similar Questions