Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can someone help me on these java array questions plz?

0
Posted

Can someone help me on these java array questions plz?

0

Break you question into parts ( I’ll give the pseudo code but not the java code, so you can go through it and learn from it ) 1) Write Asking question to the screen System.out.println(“How many students in a class?”); //Then read input //Then you can loop through asking each number or //request all at once you decide ex: //classnumber holds the input value received //make sure classnumber is not <=0 && > 25 if ( classnumber > 0 && classnumber <= 25 ) for ( int i = 0; i < classnumber; i++ ) { System.out.println("Enter Grade?"); //read grade and store in array[i] at this point } //make another loop to calculate the average //basic math: Add all and final number divide by classnumber and store value for later //make one more loop to display the grades and average 2) //Fill you array //you'll need two loops one for the outter and one for the inner loop for ( int i = 0; i < arraysizeA; i++) for ( int j = 0; j < arraysizeB; j++ ) { if ( array[i] = array[j] ) //store value in another array }

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123