Question: Exercise#2 (1 point): Write a Java program for a car merchant, who would like to calculate the total profit from selling cars. The program should

 Exercise#2 (1 point): Write a Java program for a car merchant,
who would like to calculate the total profit from selling cars. The

Exercise#2 (1 point): Write a Java program for a car merchant, who would like to calculate the total profit from selling cars. The program should input car's original price, selling price and number of sold cars. Therefore, the profit is equal to (incomes -expenses). The output should be like this: Car's original price: 20000AED Car's selling price: 25000AED No. of cars to be sold: 23 Profit=575000 - 460000 - 115000 AED Exercise#3 (1 point): Repeat exercise 2 here, but read the input from a file instead from a user and print the output to a file instead of console as shown below: Output File Sample: Input File Sample: Car's original price: 20000AED 20000 Car's selling price: 25000AED 25000 No. of cars to be sold: 23 23 sebe Profit=575000 - 460000 - 115000 AED

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!