Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SO I need to write code that checks all these boxes, I've posted the same question twice now and no one is doing it fully

SO I need to write code that checks all these boxes, I've posted the same question twice now and no one is doing it fully :( I need to understand this code. Someone please help, It has to be java, and it NEEDs to check these boxes ->

- input: create a class for students that prompts the user to input their name, grade level, and list of courses they are enrolled in. use the Scanner class to read in this information from the keyboard. - Processing: use the information input to calculate a student's GPA by manipulating String data of their grades and converting them to numeric values and performing calculations.

- Output: use the System.out.println() method to print out the student's information and GPA. Working with 1-dimensional and 2-dimensional arrays: create a 2D array to store information for multiple students, where each row represents a single student and the columns represent their name, grade level, and courses. Use loops to access and manipulate the elements of the array. - Coding structures: Use loops (such as for, while, or do-while) to iterate through the 2D array of students and if-statements to make decisions based on certain conditions, such as a student's grade level. - Checking and verification of data with try/catch: Use try-catch blocks to handle exceptions that might occur during the execution of your program, such as invalid input for the student's grade.

- Working with text files: Use the File and Scanner classes to read in data from a text file containing a list of students and their information, or the FileWriter and PrintWriter classes to write data to a text file. Encapsulation: use the private keyword to hide the data and information of the student class, such as their grades. Inheritance: create a class that extends the student class, such as a class for teachers and inherits their properties and methods. Abstraction: create an abstract class that contains abstract methods that must be implemented by any concrete classes that extend it, such as a class for the school, that defines the general properties and methods of school.

Polymorphism: use the same method name in different classes but with different implementation, such as a method for calculating the GPA but with different formula.

I am also okay if you can make a different program but it needs to check everything on this list: Input (variables, reading in data from the keyboard) Processing (calculations with variables, manipulating String data) Output (print statements) Working with 1-dimensional and 2-dimensional arrays Coding structures (loops and if-statements) Checking and verification of data with try/catch Working with text files Encapsulation (hiding data and information) Inheritance (extending classes) Abstraction (abstract classes and interfaces) Polymorphism (creating objects from classes) please please

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

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

Students also viewed these Databases questions

Question

Explain how the Johari Window is related to cultural shock.

Answered: 1 week ago