Question
Using VS code, please help me to code this JAVA programming assignment. Design a command-line user interface to the BankCD class that lets the user
Using VS code, please help me to code this JAVA programming assignment.
Design a command-line user interface to the BankCD class that lets the user input principal, interest rate, and years, and reports the CDs maturity value with both yearly and daily compounding. Use NumberFormat objects to display percentages and dollar figures in an appropriate format. The programs output should look something like the following (users inputs are in cyan):
************************ OUTPUT ********************
Compare daily and annual compounding for a Bank CD.
Input CD initial principal, e.g. 1000.55 > 2500
Input CD interest rate, e.g. 6.5 > 7.8
Input the number of years to maturity, e.g., 10.5 > 5
For Principal = $2,500.00 Rate= 7.8% Years= 5.0
The maturity value compounded yearly is $3,639.43
The maturity value compounded daily is: $3,692.30
************************ OUTPUT ********************
Requirements:
Have at least two classes one for the CD and one has the main method
Create at least 5 objects for different CD values. At least two fields must be private members and accessed through public methods
Write your own constructors
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started