- This event has passed.
5 PM – Intro to Java – William
July 14, 2023 @ 5:00 pm - 7:00 pm
Today we did:
- Finished Java Methods
- Started School System
- Add a student
- List all students
Homework:
Create new Java HW files:
- July14MethodsHW.java
- Create a new method convertFromFahrenheitToCelcius. It has one parameter int fahrenheit. Inside the method, it will convert fahrenheit parameter into celcius by using this formula (F − 32) × 5/9 = C . You have to return the result. This is very similar to what we did in the class with addFourNumbers method.
- Teacher.java
- Create Teacher.java in your SchoolSystem project. It should have the following attributes:
- String firstName
- String lastName
- int age
- String subjectExpertise
- Create a constructor with all of above attributes.
- Create getter methods
- Implement the method: “2. Add a teacher” in SchoolSystem.java (hint: you’ll need a way to store all the teachers!)
- Call the method addNewTeacher()
- Create Teacher.java in your SchoolSystem project. It should have the following attributes:
Please upload the 2 files (Teacher.java, July13MethodsHW.java) to your assigned Google Drive folders.
If you have any questions, please email me at williamsmith@ayclogic.com