Question: Create a calculator for work trip expenses. The app should prompt the user for the lodging expenses and read the user s input. Convert the

Create a calculator for work trip expenses.
The app should prompt the user for the lodging expenses and read the users input. Convert the input from a string to the correct data type and store in an appropriately named variable.
The app should prompt the user for the dining expenses and read the users input. Convert the input from a string to the correct data type and store in an appropriately named variable. If the dining expense is greater than the daily limit of $75.00 for dining expenses, then change the dining expenses to the limit.
The app should prompt the user for the air or car fare and read the users input. Convert the input from a string to the correct data type and store in an appropriately named variable.
After each expense category is entered, total all the expenses and display the total to the user similar to below:
Enter lodging expense:100
Enter dining expense:100.0
Enter air fare or car fare expense:100
Total expenses for this trip are 275.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!