Skip to content

assignmentOne is modified#2

Open
kulkarni-laxmi wants to merge 2 commits into
satishba:masterfrom
kulkarni-laxmi:master
Open

assignmentOne is modified#2
kulkarni-laxmi wants to merge 2 commits into
satishba:masterfrom
kulkarni-laxmi:master

Conversation

@kulkarni-laxmi

Copy link
Copy Markdown

No description provided.

Comment thread assignemntOne.java
eeeStudent2.marks();

// <TO DO: Print the max marks of both students>
eeeStudent1.marks();

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the need for this call ?

Comment thread assignemntOne.java
// <TO DO: Print the max marks of both students>
eeeStudent1.marks();
int max1=arr[0];
for(int i=0;i<8;i++){

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a method inside the class

Comment thread assignemntOne.java

eeeStudent2.marks();
int max2=arr[0];
for(int i=0;i<8;i++){

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a method inside the class to find max marks

Comment thread assignemntOne.java
Scanner sc = new Scanner(System.in);
char index = sc.next().charAt(0);
if(index==char[i]){
if(eeeStudent1.marks() > eeeStudent2.marks())

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isnt marks the method to set the marks? Why is it being called here ?

@kulkarni-laxmi

kulkarni-laxmi commented Nov 24, 2022 via email

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants