Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise #1 (1 point): Write a Java program that reads three names (first and last) from a file. The Program should print the initials of

image text in transcribed

Exercise #1 (1 point): Write a Java program that reads three names (first and last) from a file. The Program should print the initials of each person in single line or multiple lines. For example, if one of the names was Ahmed Sultan from the input file then your program will output A. M. to another file. (Hint: use charAt0 method) 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 in equal to incomes - expenses). The output should be like this: Car's original price: 20000 AED Saris selling price: 25000AED No. of cars to be sold: 23 ******** ********* Profit= 575000 - 460000 = 115000 AED

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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

Where do you see yourself in 10 years?

Answered: 1 week ago

Question

=+j Enabling a productive global workforce.

Answered: 1 week ago

Question

=+ Are you interested in creating or

Answered: 1 week ago

Question

=+working on a micro-multinational?

Answered: 1 week ago