9. PlWrite a function to gather the following costs from the user: Travel cost: $9,800 Hotel cost: $3,500 Rental car cost: $1,600 Labor cost: $15,500    Part 2 Write a function to convert the costs from United States dollar (USD) to Australian dollar (AUD).    Note: Look up the current USD to AUD exchange rate to use in your function.    Test the program 3 times by providing different costs in USD.    Provide the code, and take a screenshot of the output. Then, paste the screenshot(s) into a Microsoft® Word document.  Write a half-page response in the same Microsoft® Word document and address the following: Provide a manual for the user, explaining how to use the program

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 8PP
icon
Related questions
Question

09. PlWrite a function to gather the following costs from the user:

Travel cost: $9,800
Hotel cost: $3,500
Rental car cost: $1,600
Labor cost: $15,500 
 

Part 2
Write a function to convert the costs from United States dollar (USD) to Australian dollar (AUD). 

 

Note: Look up the current USD to AUD exchange rate to use in your function. 

 

Test the program 3 times by providing different costs in USD. 

 

Provide the code, and take a screenshot of the output. Then, paste the screenshot(s) into a Microsoft® Word document. 
Write a half-page response in the same Microsoft® Word document and address the following:

Provide a manual for the user, explaining how to use the program.
Explain what type of user input validations you should have. What happens if the user enters a negative number? What happens if the user puts a $ in the input? . 

 

Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr