Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

urgent please answer ASAP Problem 1 - 25 points a. Write a function dollars ToLBPOthat takes as parameters an amount in dollars (of type double)

image text in transcribed
image text in transcribed
urgent please answer ASAP
Problem 1 - 25 points a. Write a function dollars ToLBPOthat takes as parameters an amount in dollars (of type double) and an exchange rate (of type integer), and returns the equivalent of the amount in LBP. If the exchange rate is equal to 1, the program considers 18 = 1515 LBP. If the exchange rate is equal to 2, the program considers 15 - 3900 LBP. If the exchange rate is equal to 3, the program considers 15 = 8900 LBP. b. Write a C++ program that: Asks the user to enter an amount in dollars (of type double) Asks the user to enter an exchange rate of type integer) Use the function of Part a to calculate the equivalent in LBP. Prints on the screen the result of the function. Sample Runs Please enter the amount in dollars: 20 Exchange rate (1: Official. 2: Bank, 3: Black Market)? 1 20 $ is equal to 3380 LAP Please enter the anount in dollars: 20 ze s is equal to 78000 LOP Exchange rate (1: Official, 2: Bank, 3: Black Market)? 2 Please enter the amount in dollars: 20 Exchange rate (1: Official, 2: Bank, 3: Black Market)? 3 20 $ 15 equal to 177000 LBP double dollarsToLBP(double, int): int main() { double dollars, LBP; int exchange Rate; double dollarsTOLBP(double, int); int main() double dollars, LBP; int exchange Rate; return 0; } double dollarsTOLBP { ) }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

What are the objectives of Human resource planning ?

Answered: 1 week ago

Question

Explain the process of Human Resource Planning.

Answered: 1 week ago

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago