SlideShare a Scribd company logo
1 of 3
Assume that the maximum number of students in a class is 50. Write a program that reads
students' names followed by their test scores from a file and outputs the following: a. Class
average. b. Names of all the students whose test scores are below the class average, with an
appropriate message. c. Highest test score and the names of all of the students having the highest
score.
Sample given from text file:
Johnson 76
Miller 90
Duffy 95
Robinson 45
Ashtony 63
Goofy 89
Pluto 95
Mickey 72
Billy 76
Danny 56
Balto 95
Roony 87
Doc 67
Minne 95
Duckey 72
Andy 76
Solution
Solution : For coding the program of students, just follow the various steps -
Step 1 - Create a class student_score which calculates the students score. For example - public
class student_score
Step 2 - Create a main method function in which define a array of double size for storing
students score and create a object of name and initialize the variables and integers. For example -
double [] score = new double[50];
string [] name = new string[50];
int i,j;
Step 3 - Take input from user using scanner. For example - scanner read_name = new
scanner(sys.in); // similarly read score and other data of student.
Step 4 - Use do for storing and reading of student name and score. For example - do {
i++;
counter++;
// display the student_name and student_score
}
Step 5 - Set initial value of score to array element and then compare one by one.
Step 6 - For calculating highest score sum all of the score. For example - sum_score = sum_score
+ student_score[g];
Step 7 - For calculating score average, average_score = sum_score / (counter - 1);
Step 8 - Use if condition for giving output of below average and highest marks students. For
example - if(student_score[g] < average_score)
then
system.out.println("Student_score is : ", student_score[k]); // Similarly print of average score.

More Related Content

Similar to Assume that the maximum number of students in a class is 50- Write a p.docx

Java căn bản - Chapter13
Java căn bản - Chapter13Java căn bản - Chapter13
Java căn bản - Chapter13Vince Vo
 
Chapter 13 - Inheritance and Polymorphism
Chapter 13 - Inheritance and PolymorphismChapter 13 - Inheritance and Polymorphism
Chapter 13 - Inheritance and PolymorphismEduardo Bergavera
 
9608 Computer Science Cambridge International AS level Pre-Release May June p...
9608 Computer Science Cambridge International AS level Pre-Release May June p...9608 Computer Science Cambridge International AS level Pre-Release May June p...
9608 Computer Science Cambridge International AS level Pre-Release May June p...Isham Rashik
 
Project 4 1/tutorialoutlet
Project 4 1/tutorialoutletProject 4 1/tutorialoutlet
Project 4 1/tutorialoutletMessanz
 
Course recommender system
Course recommender systemCourse recommender system
Course recommender systemAakash Chotrani
 

Similar to Assume that the maximum number of students in a class is 50- Write a p.docx (8)

Lab exam question_paper
Lab exam question_paperLab exam question_paper
Lab exam question_paper
 
Java căn bản - Chapter13
Java căn bản - Chapter13Java căn bản - Chapter13
Java căn bản - Chapter13
 
Chapter 13 - Inheritance and Polymorphism
Chapter 13 - Inheritance and PolymorphismChapter 13 - Inheritance and Polymorphism
Chapter 13 - Inheritance and Polymorphism
 
Analysis
AnalysisAnalysis
Analysis
 
C sharp chap5
C sharp chap5C sharp chap5
C sharp chap5
 
9608 Computer Science Cambridge International AS level Pre-Release May June p...
9608 Computer Science Cambridge International AS level Pre-Release May June p...9608 Computer Science Cambridge International AS level Pre-Release May June p...
9608 Computer Science Cambridge International AS level Pre-Release May June p...
 
Project 4 1/tutorialoutlet
Project 4 1/tutorialoutletProject 4 1/tutorialoutlet
Project 4 1/tutorialoutlet
 
Course recommender system
Course recommender systemCourse recommender system
Course recommender system
 

More from bickerstaffinell

A- Imagine you were recently hired as a general manager working in a.docx
A-  Imagine you were recently hired as a general manager working in a.docxA-  Imagine you were recently hired as a general manager working in a.docx
A- Imagine you were recently hired as a general manager working in a.docxbickerstaffinell
 
a) Describe two ways the researcher could minimise experimenter bias i.docx
a) Describe two ways the researcher could minimise experimenter bias i.docxa) Describe two ways the researcher could minimise experimenter bias i.docx
a) Describe two ways the researcher could minimise experimenter bias i.docxbickerstaffinell
 
All organisations are affected to some extent by external factors and.docx
All organisations are affected to some extent by external factors and.docxAll organisations are affected to some extent by external factors and.docx
All organisations are affected to some extent by external factors and.docxbickerstaffinell
 
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docx
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docxAll the following are important uses of -ICD-11-- EXCEPT- Select one-.docx
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docxbickerstaffinell
 
All of the following were discussed in lecture as ways teams create no.docx
All of the following were discussed in lecture as ways teams create no.docxAll of the following were discussed in lecture as ways teams create no.docx
All of the following were discussed in lecture as ways teams create no.docxbickerstaffinell
 
All of the following statements are true with respect to the bacteria.docx
All of the following statements are true with respect to the bacteria.docxAll of the following statements are true with respect to the bacteria.docx
All of the following statements are true with respect to the bacteria.docxbickerstaffinell
 
Airport Delays The problems created by increased security measures at.docx
Airport Delays The problems created by increased security measures at.docxAirport Delays The problems created by increased security measures at.docx
Airport Delays The problems created by increased security measures at.docxbickerstaffinell
 
Agency theory explains manager's behavior- Which one is false- The agm.docx
Agency theory explains manager's behavior- Which one is false- The agm.docxAgency theory explains manager's behavior- Which one is false- The agm.docx
Agency theory explains manager's behavior- Which one is false- The agm.docxbickerstaffinell
 
After studying our second case with ISIS- we should have a good unders.docx
After studying our second case with ISIS- we should have a good unders.docxAfter studying our second case with ISIS- we should have a good unders.docx
After studying our second case with ISIS- we should have a good unders.docxbickerstaffinell
 
After reading the article on Big Bottom Market make an analysis of the.docx
After reading the article on Big Bottom Market make an analysis of the.docxAfter reading the article on Big Bottom Market make an analysis of the.docx
After reading the article on Big Bottom Market make an analysis of the.docxbickerstaffinell
 
A vaccine against HIV Group of answer choices may be impossible due.docx
A vaccine against HIV    Group of answer choices may be impossible due.docxA vaccine against HIV    Group of answer choices may be impossible due.docx
A vaccine against HIV Group of answer choices may be impossible due.docxbickerstaffinell
 
Additional information for the Income Statement- 1 mterest expense of.docx
Additional information for the Income Statement- 1 mterest expense of.docxAdditional information for the Income Statement- 1 mterest expense of.docx
Additional information for the Income Statement- 1 mterest expense of.docxbickerstaffinell
 
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docx
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docxAddison Ltd owns all of the share capital of Erin Ltd- In relation to.docx
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docxbickerstaffinell
 
actually I need answers of all these questions as soon as possible ple.docx
actually I need answers of all these questions as soon as possible ple.docxactually I need answers of all these questions as soon as possible ple.docx
actually I need answers of all these questions as soon as possible ple.docxbickerstaffinell
 
accumulated depreciation A- is allocated as an expense during future p.docx
accumulated depreciation A- is allocated as an expense during future p.docxaccumulated depreciation A- is allocated as an expense during future p.docx
accumulated depreciation A- is allocated as an expense during future p.docxbickerstaffinell
 
Accounting and Economic profiss are computed differently and serve dif.docx
Accounting and Economic profiss are computed differently and serve dif.docxAccounting and Economic profiss are computed differently and serve dif.docx
Accounting and Economic profiss are computed differently and serve dif.docxbickerstaffinell
 
According to the Solow model- Suppose that an earthquake destroys most.docx
According to the Solow model- Suppose that an earthquake destroys most.docxAccording to the Solow model- Suppose that an earthquake destroys most.docx
According to the Solow model- Suppose that an earthquake destroys most.docxbickerstaffinell
 
According to Culturally-Endorsed Leadership Theory- cultures differ on.docx
According to Culturally-Endorsed Leadership Theory- cultures differ on.docxAccording to Culturally-Endorsed Leadership Theory- cultures differ on.docx
According to Culturally-Endorsed Leadership Theory- cultures differ on.docxbickerstaffinell
 
According to a study done by Nick Wilson of Otago University Wellingto.docx
According to a study done by Nick Wilson of Otago University Wellingto.docxAccording to a study done by Nick Wilson of Otago University Wellingto.docx
According to a study done by Nick Wilson of Otago University Wellingto.docxbickerstaffinell
 
A-) What is the difference between encrypting and signing in asymmetri.docx
A-) What is the difference between encrypting and signing in asymmetri.docxA-) What is the difference between encrypting and signing in asymmetri.docx
A-) What is the difference between encrypting and signing in asymmetri.docxbickerstaffinell
 

More from bickerstaffinell (20)

A- Imagine you were recently hired as a general manager working in a.docx
A-  Imagine you were recently hired as a general manager working in a.docxA-  Imagine you were recently hired as a general manager working in a.docx
A- Imagine you were recently hired as a general manager working in a.docx
 
a) Describe two ways the researcher could minimise experimenter bias i.docx
a) Describe two ways the researcher could minimise experimenter bias i.docxa) Describe two ways the researcher could minimise experimenter bias i.docx
a) Describe two ways the researcher could minimise experimenter bias i.docx
 
All organisations are affected to some extent by external factors and.docx
All organisations are affected to some extent by external factors and.docxAll organisations are affected to some extent by external factors and.docx
All organisations are affected to some extent by external factors and.docx
 
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docx
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docxAll the following are important uses of -ICD-11-- EXCEPT- Select one-.docx
All the following are important uses of -ICD-11-- EXCEPT- Select one-.docx
 
All of the following were discussed in lecture as ways teams create no.docx
All of the following were discussed in lecture as ways teams create no.docxAll of the following were discussed in lecture as ways teams create no.docx
All of the following were discussed in lecture as ways teams create no.docx
 
All of the following statements are true with respect to the bacteria.docx
All of the following statements are true with respect to the bacteria.docxAll of the following statements are true with respect to the bacteria.docx
All of the following statements are true with respect to the bacteria.docx
 
Airport Delays The problems created by increased security measures at.docx
Airport Delays The problems created by increased security measures at.docxAirport Delays The problems created by increased security measures at.docx
Airport Delays The problems created by increased security measures at.docx
 
Agency theory explains manager's behavior- Which one is false- The agm.docx
Agency theory explains manager's behavior- Which one is false- The agm.docxAgency theory explains manager's behavior- Which one is false- The agm.docx
Agency theory explains manager's behavior- Which one is false- The agm.docx
 
After studying our second case with ISIS- we should have a good unders.docx
After studying our second case with ISIS- we should have a good unders.docxAfter studying our second case with ISIS- we should have a good unders.docx
After studying our second case with ISIS- we should have a good unders.docx
 
After reading the article on Big Bottom Market make an analysis of the.docx
After reading the article on Big Bottom Market make an analysis of the.docxAfter reading the article on Big Bottom Market make an analysis of the.docx
After reading the article on Big Bottom Market make an analysis of the.docx
 
A vaccine against HIV Group of answer choices may be impossible due.docx
A vaccine against HIV    Group of answer choices may be impossible due.docxA vaccine against HIV    Group of answer choices may be impossible due.docx
A vaccine against HIV Group of answer choices may be impossible due.docx
 
Additional information for the Income Statement- 1 mterest expense of.docx
Additional information for the Income Statement- 1 mterest expense of.docxAdditional information for the Income Statement- 1 mterest expense of.docx
Additional information for the Income Statement- 1 mterest expense of.docx
 
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docx
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docxAddison Ltd owns all of the share capital of Erin Ltd- In relation to.docx
Addison Ltd owns all of the share capital of Erin Ltd- In relation to.docx
 
actually I need answers of all these questions as soon as possible ple.docx
actually I need answers of all these questions as soon as possible ple.docxactually I need answers of all these questions as soon as possible ple.docx
actually I need answers of all these questions as soon as possible ple.docx
 
accumulated depreciation A- is allocated as an expense during future p.docx
accumulated depreciation A- is allocated as an expense during future p.docxaccumulated depreciation A- is allocated as an expense during future p.docx
accumulated depreciation A- is allocated as an expense during future p.docx
 
Accounting and Economic profiss are computed differently and serve dif.docx
Accounting and Economic profiss are computed differently and serve dif.docxAccounting and Economic profiss are computed differently and serve dif.docx
Accounting and Economic profiss are computed differently and serve dif.docx
 
According to the Solow model- Suppose that an earthquake destroys most.docx
According to the Solow model- Suppose that an earthquake destroys most.docxAccording to the Solow model- Suppose that an earthquake destroys most.docx
According to the Solow model- Suppose that an earthquake destroys most.docx
 
According to Culturally-Endorsed Leadership Theory- cultures differ on.docx
According to Culturally-Endorsed Leadership Theory- cultures differ on.docxAccording to Culturally-Endorsed Leadership Theory- cultures differ on.docx
According to Culturally-Endorsed Leadership Theory- cultures differ on.docx
 
According to a study done by Nick Wilson of Otago University Wellingto.docx
According to a study done by Nick Wilson of Otago University Wellingto.docxAccording to a study done by Nick Wilson of Otago University Wellingto.docx
According to a study done by Nick Wilson of Otago University Wellingto.docx
 
A-) What is the difference between encrypting and signing in asymmetri.docx
A-) What is the difference between encrypting and signing in asymmetri.docxA-) What is the difference between encrypting and signing in asymmetri.docx
A-) What is the difference between encrypting and signing in asymmetri.docx
 

Recently uploaded

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Recently uploaded (20)

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Assume that the maximum number of students in a class is 50- Write a p.docx

  • 1. Assume that the maximum number of students in a class is 50. Write a program that reads students' names followed by their test scores from a file and outputs the following: a. Class average. b. Names of all the students whose test scores are below the class average, with an appropriate message. c. Highest test score and the names of all of the students having the highest score. Sample given from text file: Johnson 76 Miller 90 Duffy 95 Robinson 45 Ashtony 63 Goofy 89 Pluto 95 Mickey 72 Billy 76 Danny 56 Balto 95 Roony 87 Doc 67 Minne 95 Duckey 72 Andy 76
  • 2. Solution Solution : For coding the program of students, just follow the various steps - Step 1 - Create a class student_score which calculates the students score. For example - public class student_score Step 2 - Create a main method function in which define a array of double size for storing students score and create a object of name and initialize the variables and integers. For example - double [] score = new double[50]; string [] name = new string[50]; int i,j; Step 3 - Take input from user using scanner. For example - scanner read_name = new scanner(sys.in); // similarly read score and other data of student. Step 4 - Use do for storing and reading of student name and score. For example - do { i++; counter++; // display the student_name and student_score } Step 5 - Set initial value of score to array element and then compare one by one. Step 6 - For calculating highest score sum all of the score. For example - sum_score = sum_score + student_score[g]; Step 7 - For calculating score average, average_score = sum_score / (counter - 1);
  • 3. Step 8 - Use if condition for giving output of below average and highest marks students. For example - if(student_score[g] < average_score) then system.out.println("Student_score is : ", student_score[k]); // Similarly print of average score.