Dollar Converter Assuming that the conversion factor from Canadian dollars to U.S. dollars is XXXXXXXXXX, write a program that asks for Canadian dollars and calculates the U.S. dollar value from that....

Dollar Converter Assuming that the conversion factor from Canadian dollars to U.S. dollars is 0.75757576, write a program that asks for Canadian dollars and calculates the U.S. dollar value from that. Here is an example of the program when you run it. Canadian to US Dollars Enter CAD amount: $599.99 $599.99 CAD is $454.54 USD. Note that the dollar-sign is part of the input prompt. The user entered 599.99 in the example above. Data validation: Canadian dollars must not be negative. If it is, your program must ask the user to re-enter the amount until it is no longer negative. For example... Canadian to US Dollars Enter CAD amount: $-99.99 Amount must not be negative. Enter CAD amount: $_ Your program should use a function to get the Canadian dollar amount with data validation within the function. Your program must also use a value returning function that takes the Canadian dollars amount as an argument then returns the U.S. dollar amount. Besides the ability to create, debug, and run a program in C++, the key concepts include: using named constants, using variables, selecting the appropriate data types, applying data validation, using proper input-processing-output sequence, indentation, output formatting, following specifications, and naming conventions.

May 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here