Javier Gonzalez-Sanchez | CSE110 | Summer 2020 | 4 Problem • Create a program for Quizzes • Specifically to test your Arithmetic skills • For instance 75 + 31 = • Let us start with only additions and 2 digits numbers • Could the computer grade the Quiz? • Show the students her/his grade
Javier Gonzalez-Sanchez | CSE110 | Summer 2020 | 11 Object-Oriented Paradigm everything is an entity (object) A program is a collection of objects working together main()
Javier Gonzalez-Sanchez | CSE110 | Summer 2020 | 13 Object-Oriented Paradigm public class MyProgram { public static void main(String [] arg) { Student john = new Student(); john.name = "John Doe"; john.sayHello(); john.drawSomething(); } } public class Student { String name; int finalGrade; public void sayHello(){ // print name } public void drawSomething(){ // draw } }
CSE110 - Principles of Programming Javier Gonzalez-Sanchez [email protected] Summer 2020 Disclaimer. These slides can only be used as study material for the class CSE110 at ASU. They cannot be distributed or used for another purpose.