Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Write a java program using Encapsulation for the following class diagram. Get the values of name, id and 2 marks from the user using

image text in transcribed
3. Write a java program using Encapsulation for the following class diagram. Get the values of name, id and 2 marks from the user using getvalues() function. Calculate the average of 2 marks inside average () function. Display name, id and average inside display function. Use necessary Java class and Java main class. Create Java Main class with your name ( 3 Marks) Student +name: String #ID: int -mi: float -m2: float average() +display +getvalues()

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

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions

Question

Explain the chemical properties of acids with examples.

Answered: 1 week ago

Question

Write the properties of Group theory.

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago