Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Intro to java class chapter 1. Define a class BOOK with the following members Private members Bno of type int Bname of type String Author

Intro to java class chapter
image text in transcribed
1. Define a class BOOK with the following members Private members Bno of type int Bname of type String Author of type String Price of type float Public members void Enter0 member function to enter the values of data members void Display0 member function to display the values of data members int RBno0 member function that returns the value of Bno String RBname) member function that returns the value of Bname Write a program which creates an object BOOK Takes the input of all fhelds using Enter) method Displays all the fields using Display0 method . Display >if Bno>1000, else displays ceBname is an Old Book">> 2. Define a class CANDIDATE with the following members Private members Cno of type int Cname of type String Score of type int Public members void EnterO method to enter the values of data members void Display0 method to display the values of data members void CheckScore) method that displays "Excellent if the value of Score>90, "Good" if score> 80, else displays Average Write a program which uses the above three methods to create an object, display the details of the candidate and uses CheckScoreD method to display the kind of score. 3. Define a class ACCOUNT with the following members Private members

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions