# THE FOLLOWING PROGRAM IS NEEDED IN JAVA LANGUAGE Design a class torepresent account, include the following...

###### Question:

THE FOLLOWING PROGRAM IS NEEDED IN JAVA LANGUAGE

Design a class torepresent account, include the following members: -Data Members a)Name of depositor-Stringb)Account Number –intc)Type of account –Boolean d)Balance amount -doublee)AnnualInterestrate -double Methods: -(a)To assign initial values (use constructor)(b)To deposit an amount.(c)TO withdraw amount with the restriction the minimum balance is 50 rs. Ifyouwithdraw amount reduced the balance below 50 then print the error message.(d)Display the name and balance of the account.(e)Get_Monthly_intrestRate() -Return the monthly interestrate whichis nothing but Annualintrestrate/12. Annualinterestrate is in percentage e.g 4.5%(f)Get_Monthly_intrest:-return themonthly interest, it is calculated as balance * Get_Monthly_intrestRate()

________________________________________________________________________________________________________________________________

Write a program simple prints “Wonder of the objects” inside the main method. Without using any print statement or concrete methods or dot operators inside the main methods.

_________________________________________________________________________________________________________________________________

Create a class name stock that contains:-1)A String data field name symbol for the stock_ symbol.2)A string data field name of company3)A double data field name previousCloseingPrice that store the stock price for previous day4)A double data field name currentPrice that store the stock price for the current time5)A method getChangepercent() that return the percentage changed in previousCloseingPrice and currentPrice.e.gstock Symbol is ORCL and stock name = Oracle Carporation , the previousCloseingPrice=34.5 and current change price is 34.35 and display the price change percentage.

_____________________________________________________________________________________________________________________________________

Design a class FAN to represent fan . The class contains:-a.Three constants named Slow, Medium and FAST with the values 1,2 and 3 to denote the FAN Speed.b.A private intdata field named speed that specifies the speed of the fan (Default is Slow)c.A private Boolean data field named ‘on’ that specifies whether the fan is on ( the default is false)d.A private double data field named radius that specifies the radius of the fan )default is 5)e.A string data field named colorthat specifies the colorof the fan (the default is blue)f.Define default constructor g.Method tostring() that returns a string description for the fan. If the Fan is on the method returns the fan speed, color, and radiusin one combined string. If fan is not on the method returns the fan colorand radiusalong with the string “fan is off” in one combined string.h.WAP to creates two FAN objects. Assign maximumspeed, radius 10 , color Yellow and turn it on to the first Object . Assign medium speed,radius 5 , color blue and turn it off to the second objects. Display the object by invoking to string method.

#### Similar Solved Questions

(2) Consider two firms: ABC: an all equity firm. It has 9 million common shares outstanding, worth $40/share. XYZ: is a levered firm with 4.6 million shares at$52.50/share. Its perpetual debt has a market value of $91 million and costs 8% a year. They are identical in every other way. Both firms e... 1 answer ##### Using instruments sketch or draw the two given views and a partial auxiliary view of the... Using instruments sketch or draw the two given views and a partial auxiliary view of the inclined surfaces. 1) what is partially view ? I'm not given any extra information rather than that. It is a book question. 2) Can i draw on blank paper drawing by using solid works ? It can be done in soli... 1 answer ##### 1B-8. LEAH Inc. purchases a parcel of land for$100,000. Sometime later a freeway is built...
1B-8. LEAH Inc. purchases a parcel of land for $100,000. Sometime later a freeway is built near the property. According to many experts the freeway increases the value of the land to$7,000,000. Required: 1. What would be the value of LEAH's property according to an accountant using US GAAP? 2. ...
##### CASE STUDY Answer the following questions 1. What information would you report and record? Mr. Juan...
CASE STUDY Answer the following questions 1. What information would you report and record? Mr. Juan Gomez is a 75-year-old resident of Valley View Nursing Center. You have been assigned his care this morning. Mr. Gomez told you that he had a bowel movement at 0500 (5:00 AM) You helped Mr. Gomez get ...
##### In earlier days, horses pulled barges down canals in the manner shown below. Suppose that the...
In earlier days, horses pulled barges down canals in the manner shown below. Suppose that the horse pulls on the rope with a force of 7900 N at an angle of 18° to the direction of motion of the barge, which is headed straight along the positive direction of an x axis. The mass of the barge is 91...