Write a program that determines how many credits 10 students need to graduate. S
ID: 3717657 • Letter: W
Question
Write a program that determines how many credits 10 students need to graduate.
Step 1. Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Place the algorithm in a Word document.
Step 2. Code the program in Eclipse and ensure the following steps are accomplished.
1. Define a two-dimension array with 10 rows and 2 columns.
2. Prompt the user to enter the number of courses they have left to graduate (value must be between 1 and 20) and the year they want to graduate
3. The program must store the number of courses and graduation year for each student in a different row of the array.
4. The program must compute the number of credits, and display this output, along with the year the student plans to graduate.
Explanation / Answer
I have done your code. Let me know if you can write pseudocode or should i write for you. import java.util.Scanner; public class StudentCredit { public static void main(String args[]) { //1. Define a two-dimension array with 10 rows and 2 columns. int arr[][]=new int[10][2]; //2. Prompt the user to enter the number of courses they have left to //graduate (value must be between 1 and 20) and the year they want to graduate Scanner sc = new Scanner(System.in); for(int count = 0 ; count=1&& arr[count][0]Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.