Lab8.pdf - CSE 110 Lab 8 What this Lab Is About \u2022 \u2022 \u2022 Classes and objects Familiarization with default or no-argument constructor and constructor

Lab8.pdf - CSE 110 Lab 8 What this Lab Is About • • •...

This preview shows page 1 - 3 out of 7 pages.

CSE 110 - Lab 8 What this Lab Is About: Classes and objects Familiarization with default or no-argument constructor and constructor with arguments. Defining void methods and return value methods. Use the following Coding Guidelines: When declaring a variable, you usually want to initialize it. Remember you cannot initialize a number with a string. Remember variable names are case sensitive. Use tabs or spaces to indent code within blocks (code surrounded by braces). Use white space to make your program more readable. Use comments after the ending brace of classes, methods, and blocks to identify to which block it belongs. Problem Description: For this Lab you have to implement a class Student. Student class should have instance variables studentMajor, firstName, lastName, studentCredits, and studentPoints. For Student class, supply two constructors and the following methods: getMajor(), getGradepoints(), getCredits() , getFullName(), loopHelper(int start, int end, int incBy). Step 1: Getting Started Create a class called Lab8. Be sure to name your file Lab8.java At the beginning of each programming assignment you must have a comment block with the following information: /*------------------------------------------------------------------------- // AUTHOR: your name. // FILENAME: title of the source file. // SPECIFICATION: your own description of the program. // FOR: CSE 110- Lab #8 // TIME SPENT: how long it took you to complete the assignment. //-----------------------------------------------------------*/
Image of page 1