Menu

[solved]-Write Program Determines Many Terms 10 Students Need Graduate Create Algorithm Either Flow Q39041821

Write a program that determines how many terms 10 students needto graduate.

Create an algorithm (either flowchart or pseudocode) that youwill use to write the program.

Define a two-dimension array with 10 rows and 2 columns.

Prompt the user to enter the number of courses they have left tograduate (value must be between 1 and 20) and how many courses theyplan to take each term (value must be between 1 and 5). If the userenters either value out of range then the user must be prompted toreenter.

The program must store the number of courses a student has leftand how many courses they plan to take each term in a different rowof the array, i.e. the first student’s number of courses and howmany they plan to take each term will be stored in first row ofarray. The second student’s info will be in second row, and soon.

The program must compute the number of terms a student hasremaining, and this should be an integer.

For example, if a student has 15 courses remaining and plans totake 2 a term then they need 8 terms to

complete the courses. In other words, you can have 7.5 termsbecause the student must attend an entire term.

Test the 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

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

the output should look like the sample:

(terminated & Project) Dava Application C:Program Files Java je 1.8.0 131binjavaw.ce (Mar 26, 2019, 12:55:57 PM) Enter clas

(terminated & Project) Dava Application C:Program Files Java je 1.8.0 131binjavaw.ce (Mar 26, 2019, 12:55:57 PM) Enter classes remaining and taking each term for student 1: 82 Enter classes remaining and taking each term for student 2: 153 Enter classes remaining and taking each term for student 3: 61 Enter classes remaining and taking each term for student 4: 126 The number of classes per term for student 4 is not valid! Enter classes remaining and taking each term for student 4: 12 5 Enter classes remaining and taking each term for student 5: 132 Enter classes remaining and taking each term for student 6: 73 Enter classes remaining and taking each term for student 7: 9.4 Enter classes remaining and taking each term for student 8: 3 2 Enter classes remaining and taking each term for student 9: 5.4 Enter classes remaining and taking each term for student 1e: 18 3 MPI Student 1 needs 4 toks to graduate Student 2 needs 5 terms to graduate Student 3 needs 6 terms to graduate Student 4 needs 3 terms to graduate Student 5 needs 7 terms to graduate Student 6 needs 3 terms to graduate Student 7 needs 3 terms to graduate Student 8 needs 2 terms to graduate Student 9 needs 2 terms to graduate Student 10 needs 6 terns to graduate Show transcribed image text (terminated & Project) Dava Application C:Program Files Java je 1.8.0 131binjavaw.ce (Mar 26, 2019, 12:55:57 PM) Enter classes remaining and taking each term for student 1: 82 Enter classes remaining and taking each term for student 2: 153 Enter classes remaining and taking each term for student 3: 61 Enter classes remaining and taking each term for student 4: 126 The number of classes per term for student 4 is not valid! Enter classes remaining and taking each term for student 4: 12 5 Enter classes remaining and taking each term for student 5: 132 Enter classes remaining and taking each term for student 6: 73 Enter classes remaining and taking each term for student 7: 9.4 Enter classes remaining and taking each term for student 8: 3 2 Enter classes remaining and taking each term for student 9: 5.4 Enter classes remaining and taking each term for student 1e: 18 3 MPI Student 1 needs 4 toks to graduate Student 2 needs 5 terms to graduate Student 3 needs 6 terms to graduate Student 4 needs 3 terms to graduate Student 5 needs 7 terms to graduate Student 6 needs 3 terms to graduate Student 7 needs 3 terms to graduate Student 8 needs 2 terms to graduate Student 9 needs 2 terms to graduate Student 10 needs 6 terns to graduate

Expert Answer


Answer to Write a program that determines how many terms 10 students need to graduate. Create an algorithm (either flowchart or ps… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *