2023 The following are three projects Make three separate classes Example You must submit three java files No Zip file | Assignment Collections

Computer Science 2023 3 JAVA Problems

2023 The following are three projects Make three separate classes Example You must submit three java files No Zip file | Assignment Collections

 

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

For a quadratic equation 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:-

  1. 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. 
  2. If the discriminant is equal to 0, the roots are real and equal.
  3. 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:-

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational