home / study / engineering / computer science / questions and answers / project
ID: 3695157 • Letter: H
Question
home / study / engineering / computer science / questions and answers / project 5 write an interactive java program. create ... Question Edit question Project 5 Write an interactive Java program. Create a Student class that contains basic information about a student. Create a Course class that stores information about a course (test grades, quiz grades, project grades, final exam grade, grade weights, etc). Modify the student class to contain several course objects (a single semester of courses). Create all appropriate setter/getter/toString methods for all the classes. Create a test class and populate it with data from your schedule for this semester Example of this program: Student Name: Dave Smith Student Major: Engineering Student Courses: CSCI 1301 – Intro to Physics 1 – 3:30PM TR – Current Grade: 4.0 ENGL1101 – Calculous 1 – 3:00PM MW – Current Grade: 3.4 Overall GPA – 3.7 info to be use: here: my classes are: principles of physics MWF 11:00 am calculous 2 MTWF 8:00 am principles of physics lab TH 1:00pm History MW 9:30am
Explanation / Answer
package student; import java.util.*; public class Student { public static void main(String[] args) { int i, q, z, c, b; int x=0; String[] name = new String[30]; int[] age = new int[30]; String[] course = new String[30]; String[] year = new String[30]; String[] section = new String[30]; int menuChoice; Scanner input = new Scanner (System.in); start: do{ System.out.println(" Student Record Menu"); System.out.println(" 1. Add Student 2. View Students 3. Search Student 4. Exit"); System.out.println("Enter a choice: "); menuChoice = input.nextInt(); if (menuChoice==1) { for (z=x; zRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.