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 $ 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:
Enter dining expense:
Enter air fare or car fare expense:
Total expenses for this trip are
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
