Need help? We are here

# The following are three projects. Make three separate classes. Example You must submit three java files. No Zip file will

The following are three projects. Make three separate classes. Example
You must submit three java files. No Zip file will be allowed.
Problem 1:
Write a program that accepts an amount of money on deposit and a number of years it has been on deposit (years can have decimals). It will determine the interest to be paid on the deposit based on the following schedule:
Time on Deposit

Interest Rate

>= 5 years

4.5
%

Less than 5 and >=4 years

4
%

Less than 4 and >=3 years

3.5
%

Less than 3 and >=2 years

2.5
%

Less than 2 and >=1 years

2
%

Less than 1 year

1.5
%
Compute the interest with the formula: Interest = Deposit * IntRate * Years.
Display the original deposit, the interest earned, and the new Balance (with interest added to the deposit.
Problem 2:
Write a program with a loop that lets the user enter a series of integers. The user should enter -99
to signal the end of the series.
After all the numbers have been entered, the program should display the largest and smallest numbers entered, as well as the average of all the numbers entered.
Assume the initial value of the smallest number and the largest number is -99 and the initial average is 0.0.
Make sure the average prints out to two decimal places.
Problem 3
ax2+bx+c = 0 (where a, b and c are coefficients), its roots are given by the formula:-
The value of the discriminant (b2-4ac) determines the nature of roots.
Write a program that reads the values of a, b and c from the user and performs the following:-
If the value of the discriminant is
positive, the program should print out that the equation has two real
roots and prints the values of the two roots.
If the discriminant is
equal to 0, the roots are real and equal.
if the value of the discriminant is
negative, then the equation has two complex roots.
Sample Output
Enter values for a, b and c:- 2 10 3
Discriminant = 76
Equation has two real roots
Roots are as follows:-
x1 = -0.320551
x1 = -0.320551
Any character to end:-

### "Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"

error: Content is protected !!
{"ft_lang_label":"__label__en","ft_lang_prob":0.90611327,"math_prob":0.9729919,"size":1947,"snap":"2020-45-2020-50","text_gpt3_token_len":474,"char_repetition_ratio":0.13175502,"word_repetition_ratio":0.005988024,"special_character_ratio":0.2455059,"punctuation_ratio":0.108312346,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9972333,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-20T19:38:53Z\",\"WARC-Record-ID\":\"<urn:uuid:b05e9ee1-0b20-45c1-a5e9-493c28ee1625>\",\"Content-Length\":\"56142\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b9ae19aa-8bf9-4a67-a460-494ad7e7579c>\",\"WARC-Concurrent-To\":\"<urn:uuid:def5b82f-fc75-42e1-a54d-baf63735b339>\",\"WARC-IP-Address\":\"198.23.60.92\",\"WARC-Target-URI\":\"https://straightaessays.com/2020/10/16/the-following-are-three-projects-make-three-separate-classes-example-you-must-submit-three-java-files-no-zip-file-will/\",\"WARC-Payload-Digest\":\"sha1:QVSXIDAGKNVOVVZQKB2F7LXRMGUKVXLZ\",\"WARC-Block-Digest\":\"sha1:QZFH6S4IANHWCA4MGHL4EIEQXNAOPXME\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107874135.2_warc_CC-MAIN-20201020192039-20201020222039-00316.warc.gz\"}"}