Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

I need this in source code form please and thank you - 236-Labl (Review of 162) (D) (1) Design a class named Account that contains:

image text in transcribed

image text in transcribed

image text in transcribed

I need this in source code form please and thank you

- 236-Labl (Review of 162) (D) (1) Design a class named Account that contains: - private int data field named id for the account - private double data fiell named balance for the account - Privale dod - privale double field named annual InterestRate that stores the current interest rate (default ) Assume all accounts have same interest rate - private Date field named dateCreated that stores the date when the account was created. c default constructor that creates a default account - constructor that creates an account with the specified id initial balance. - Accessor \& mutator methods for id, balance, $ annual InterestRate - Accessor methad for dateCreated - method named get Monthly InterestRateC) that returns the monthly ingerest rate - method named getMonthly Interest() that return: - method nlamed withdraw that withdraws a specified amount from the account - method named deposit that deposits a specified a mount to the account - Write a test deno program that creates an Account object with an ID of 1122 , a balance of $20,000.00, an annual interest rate of 4.5% - Use the withdraw method to withdraw \$2,500,0. \& use the deposit method to deposit $3,000.00,& print the balance, the monthly interest, \& the date when this (6) account was created. (2) Write a recursive method that parses a hex number as a string into a decimal integer. The method header is: public static int hexaDec(String hexstring) Write a program that prompts the user to enter a hex string & displays its decimal enter a hex string \& displays its decimal "Use the following hex values to convent: BAD,BAC98,BabA73 (P3) (3) Rewrite \#2 using a parseHtex(Strirgherstr) \& Convert Hex To Dec (char ch). - Have the convert Hex To Dec method throw a NumberFormat Exception if the string is not a hex string. - Inside main( ): Call parse Hex ("A5"); parse Hex ("FAA"). parse Hex ("TI ); parse Hex ("ABC); parse Hex ("A)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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