In a Lebanese store, the seller will let you choose between 2 payment options. Option 1:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In a Lebanese store, the seller will let you choose between 2 payment options. Option 1: to pay your total in Lebanese Lira at the dollar rate of 18000. Option 2: to pay part of your total in fresh dollar and the second part in Lebanese Lira with a different rate. Write a program that will ask the user to enter the total in dollar and to choose an option (1 or 2). Java langauge If the user choose 1 the program should display the total amount due in $ and the equivalent in L.L. The amount in L.L can be calculated as follow: Amount in LL = Total * 18000 If the user choose 1, the program should ask the user about how much percentage he will pay in fresh $ and what is the dollar rate for this option. The program should then display the total amount due in fresh $, and the total amount due in L.L. The amount in $ can be calculated as follow: Amount in $ = Total * percentage The amount in L.L can be calculated as follow: Amount in LL = Total * (1 - percentage) * dollar rate Below is a sample run : Sample Run1: Enter the total in $: 1000 Option 1: pay the full amount in L.L. Option 2: pay part in $ and part in L.L. Please choose an option (1 or 2): 1 Your total 1000$ is equivalent to a payment of 18000000.0 L.L. Sample Run2 : Enter the total in $: 1000 Option 1: pay the full amount in L.L. Option 2: pay part in $ and part in L.L. Please choose an option (1 or 2): 2 Enter the percentage of fresh dollar payment: 0.3 Enter the new dollar rate: 15000 Your total due payment is 300.0$ and 10500000.0 L.L Sample Run3: Enter the total in $: 1000 Option 1: pay the full amount in L.L. Option 2: pay part in $ and part in L.L. Please choose an option (1 or 2): 4 Invalid option. In a Lebanese store, the seller will let you choose between 2 payment options. Option 1: to pay your total in Lebanese Lira at the dollar rate of 18000. Option 2: to pay part of your total in fresh dollar and the second part in Lebanese Lira with a different rate. Write a program that will ask the user to enter the total in dollar and to choose an option (1 or 2). Java langauge If the user choose 1 the program should display the total amount due in $ and the equivalent in L.L. The amount in L.L can be calculated as follow: Amount in LL = Total * 18000 If the user choose 1, the program should ask the user about how much percentage he will pay in fresh $ and what is the dollar rate for this option. The program should then display the total amount due in fresh $, and the total amount due in L.L. The amount in $ can be calculated as follow: Amount in $ = Total * percentage The amount in L.L can be calculated as follow: Amount in LL = Total * (1 - percentage) * dollar rate Below is a sample run : Sample Run1: Enter the total in $: 1000 Option 1: pay the full amount in L.L. Option 2: pay part in $ and part in L.L. Please choose an option (1 or 2): 1 Your total 1000$ is equivalent to a payment of 18000000.0 L.L. Sample Run2 : Enter the total in $: 1000 Option 1: pay the full amount in L.L. Option 2: pay part in $ and part in L.L. Please choose an option (1 or 2): 2 Enter the percentage of fresh dollar payment: 0.3 Enter the new dollar rate: 15000 Your total due payment is 300.0$ and 10500000.0 L.L Sample Run3: Enter the total in $: 1000 Option 1: pay the full amount in L.L. Option 2: pay part in $ and part in L.L. Please choose an option (1 or 2): 4 Invalid option.
Expert Answer:
Answer rating: 100% (QA)
import javautilScanner public class Main public static void mainString args int totalchnewdollar... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
What is the test statistic for this test as applied to the data in Table 9.18? Cardiovascular Disease Left ventricular mass (LVM) is an important risk factor for subsequent cardiovascular disease. A...
-
What is the unit cost for this job, beginning balance 18800, direct materials 30600, direct labor 24500 manufacturing overhead applied 41700, adjustment for overapplied overhead 1600 total number of...
-
What is the steady-state vector for this information? The probability that daughters of a mother who attends church regularly will also attend church regularly is 0.8, whereas the probability that...
-
In the financial market, what causes a movement along the demand curve? What causes a shift in the demand curve?
-
Studies have shown that in the New York City subway crime rates fall in the years following increased police patrols. Does this pattern suggest that the in-creased patrols are the cause of the crime...
-
Five-step decision-making process, service firm. Brite Exteriors is a firm that provides house painting services. Robert Brite, the owner, is trying to find new ways to increase revenues. Mr Brite...
-
Explain the terms beyond budgeting and better budget, how do these two concepts differ?
-
How much privacy should people expect when using a social networking site or going online for information, shopping, or other tasks?
-
Draw a picture and set up the integral using the method specified. DO NOT INTEGRATE Draw a picture and set up the integral to find the volume of the solid generated by revolving the region bounded by...
-
On December 1, 2020, Papadopoulos Seasonings had the following account balances. During December, the company completed the following transactions. Dec. 7 Received 3,600 cash from customers in...
-
Which one of the following statements best describes how statutory accounting principles (SAP) treat an insurer's value? Available answer options Select only one option A They require all amounts to...
-
Concorde Industries provided the following information about its standard costing system for 2019: Standard Data Actual Data Labor 2 hrs. @ Php21 per hr. Produced 8,000 units Budgeted fixed overhead...
-
The Mini-DV Tape Production Company is facing decreased sales due to the continual trend toward the use of flash storage devices to capture videos. Based on the most recent long-term earnings...
-
"Stephenson Real Estate Recapitalization Stephenson Real Estate Company was founded 25 years ago by the current CEO, Robert Stephenson. The company purchases real estate, including land and...
-
Problem 3 (adapted) FQS Corporation makes available the following information relative to its Material G4. Annual demand 30,000 units Working days in a year 300 days Normal lead time 12 days Maximum...
-
17. The Bennington Rescue Squad purchases a new lift chair for $23,000. It is expected to last 10 years and have a salvage value of $1,500. Show a depreciation schedule for the first 3 years only...
-
Sunny Valley Stables Inc. was established on April 1. The company provides stables, care for animals, and grounds for riding and showing horses. You have been hired as the new assistant financial...
-
Presented below are income statements prepared on a LIFO and FIFO basis for Kenseth Company, which started operations on January 1, 2024. The company presently uses the LIFO method of pricing its...
-
A stock price is currently $40. It is known that at the end of three months it will be either $45 or $35. The risk-free rate of interest with quarterly compounding is 8% per annum. Calculate the...
-
A call option on a non-dividend-paying stock has a market price of $2.50. The stock price is $15, the exercise price is $13, the time to maturity is three months, and the risk-free interest rate is...
-
A total return index tracks the return, including dividends, on a certain portfolio. Explain how you would value (a) forward contracts and (b) European options on the index.
-
MNEs and Operation in Global Markets. What are the factors that affect the decisions of multinational enterprises to operate in global markets?
-
Globalization Risks for MNEs. Was globalization responsible for the slowdown of MNE business during the financial crisis of 2008?
-
Fragility of the Global Financial Marketplace. How has the global financial crisis exposed the fragility of assets and institutions of the global system?
Study smarter with the SolutionInn App