Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, I need help writing this. I need to write a program that determines how many credits 10 students need to graduate. Step 2. Code

Hi, I need help writing this.

I need to write a program that determines how many credits 10 students need to graduate.

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 programmust 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.Each course is worth 3 credits.

Step 3. Test your program using this data.

Student 1, 8 courses and plans to graduate in 2018

Student 2, 10 courses and plans to graduate in 2019

Student 3, 15 courses and plans to graduate in 2020

Student 4, 5 courses and plans to graduate in 2019

Student 5, 20 courses and plans to graduate in 2021 Note: enter 22 first time by mistake to test

Student 6, 7 courses and plans to graduate in 2019

Student 7, 9 courses and plans to graduate in 2020

Student 8, 3 courses and plans to graduate in 2018

Student 9, 7 courses and plans to graduate in 2018

Student 10, 18 courses and plans to graduate in 2021

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions

Question

Which of the following strait separate north america from Asia ?

Answered: 1 week ago