Write a program that determines how many terms 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 how many courses they plan to take each term (value must be between 1 and 5). If the user enters either value out of range then the user must be prompted to reenter.
3. The program must store the number of courses a student has left and how many courses they plan to take each term in a different row of the array, i.e. the first student’s number of courses and how many they plan to take each term will be stored in first row of array. The second student’s info will be in second row, and so on.
4. The program must compute the number of terms a student has remaining, and this should be an integer. For example, if a student has 15 courses remaining and plans to take 2 a term then they need 8 terms to complete the courses. In other words, you can have 7.5 terms because the student must attend an entire term.
Step 3. Test your program using this data.
Student 1, 8 courses and plans to take 2 a term
Student 2, 15 courses and plans to take 3 a term
Student 3, 6 courses and plans to take 1 a term
Student 4, 12 courses and plans to take 6 a term note: error because 6 is too many courses per term
Student 4, 12 courses and plans to take 5 a term
Student 5, 13 courses and plans to take 2 a term
Student 6, 7 courses and plans to take 3 a term
Student 7, 9 and plans to take 4 a term
Student 8, 3 and plans to take 2 a term
Student 9, 5 courses and plans to take 4 a term
Student 10, 18 courses and plans to take 3 a term

import java.util.Scanner;
public class Main {
public static void main(String args[]) {
int arr[][] = new int[10][2];
Scanner in = new Scanner(System.in);
for (int i = 0; i < 10; i++) {
do {
System.out.print("Enter classes remaining and taking each term for
student " + (i + 1) + ": ");
arr[i][0] = in.nextInt();
arr[i][1] = in.nextInt();
if(arr[i][0] < 1 || arr[i][0] > 20) {
System.out.println("The number of remaining classes for student " +
(i + 1) + " is not valid");
i--;
}
if(arr[i][1] < 1 || arr[i][1] > 5) {
System.out.println("The number of classes per term for student " +
(i + 1) + " is not valid");
i--;
}
} while (arr[i][0] < 1 || arr[i][0] > 20 || arr[i][1] < 1
|| arr[i][1] > 5);
}
for (int i = 0; i < 10; i++) {
int terms = (int)Math.ceil(Double.valueOf(arr[i][0]) /
arr[i][1]);
System.out.println("Student " + (i + 1) + " needs " + terms + "
terms to graduate");
}
}
}
Write a program that determines how many terms 10 students need to graduate. Step 1. Create...
Write a program that determines how many terms 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...
This is how many classes students at Bronx College take this semester with the probabilities courses 1 2 3 4 5 probability (distribution) of taking that many courses .1 .1 .6 .1 .1 The variance for this distribution is approximately
Writе a program that dеtеrminеs how many crеdits 10 studеnts nееd to graduatе. Crеatе an algorithm (еithеr flowchart or psеudocodе) that you will usе to writе thе program. Placе thе algorithm in a Word documеnt. Codе thе program in Еclipsе and еnsurе thе following stеps arе accomplishеd. 1. Dеfinе a two-dimеnsion array with 10 rows and 2 columns. 2. Prompt thе usеr to еntеr thе numbеr of coursеs thеy havе lеft to graduatе (valuе must bе bеtwееn 1 and 20) and thе...
Write a complete JAVA program, including comments (worth 2 pts -- include a good comment at the top and at least one more good comment later in the program), to process data for the registrar as follows: NOTE: Include prompts. Send all output to the screen. 1. Read in the id number of a student, the number of credits the student has, and the student’s grade point average (this is a number like 3.25). Print the original data right after...
Question 1. Thirty graduate students were asked how many credit hours they were taking in the current quarter. Download the available data: Calculate the mean, median, standard deviation, variance, and range for this sample using Excel. Write a sentence explaining what each measure means. What is the standard error of the mean based on the data? What would be the best point estimate for the population credit hours? (“Population” refers to all graduate students’ credit hours in the universe.) What...
Writе a program that dеtеrminеs how many crеdits 10 studеnts nееd to graduatе. Crеatе an algorithm (еithеr flowchart or psеudocodе) that you will usе to writе thе program. Placе thе algorithm in a Word documеnt. Codе thе program in Еclipsе and еnsurе thе following stеps arе accomplishеd. 1. Dеfinе a two-dimеnsion array with 10 rows and 2 columns. 2. Prompt thе usеr to еntеr thе numbеr of coursеs thеy havе lеft to graduatе (valuе must bе bеtwееn 1 and 20)...
Part B(COMBINATORICS) LEAVE ALL ANSWERA IN TERMS OF C(nr) or factorials Q4(a)6) In how many ways can you arrange the letters in the word INQUISITIVE? in how many of the above arrangements, U immediately follows Q? Q4. (b)Suppose you are a math major who is behind in requirements and you must take 4 math courses and therefore next semester. Your favorite professor, John Smith, is teaching 2 courses next semester you "must" take at least one of them. If there...
For this program you create a program with multiple functions using C++ 1) You will need a function that creates an array of 100 random numbers that are generated between and including 20 and including 40. This must be a two dimensional array of 10 numbers in a row with a total of 10 rows. 2) A function that will store the array of random numbers in a data file called "rannum". 3) A function must then read the data...
Create a C# program that will first prompt the instructors to enter the number of students they currently have in their classes. Use this value for the size of the row dimension of your multidimensional array. Next, prompt the instructors to type in the number of scores they would like to enter. This variable will be used to designate the column size dimension of your multidimensional array. Then, use a loop to prompt the user to enter the number of...
I need an Entity Relationship diagram for the following scenario: (University and Student) 1. The University offers various programs 2. The university is split up into various departments 3. Student has to register for courses that are part of their program 4. The student will be charged for the course(s) they are taking based on the number of hours 5. The system will assign two different due dates depending on financial aid eligibility of the student 6. The student will...