CSE 8B: Introduction to Programming and Computational Problem Solving - 2

Fall 2020


Instructor: Ben Ochoa
Email: bochoa at
Office hours: W 8:00 PM-9:00 PM (primary) and M 8:00 PM-9:00 PM (secondary), and at other times by appointment

TA: Ziang (Andy) Jing
Email: z1jing at
Office hours: W 3:00 PM--5:00 PM, Th 3:00 PM--5:00 PM, F 1:00 PM--3:00 PM, and at other times by appointment

TA: Shangqing (Shawn) Gu
Email: shg034 at
Office hours: M 1:00 PM--3:00 PM, Tu 1:00 PM--3:00 PM, Th 1:00 PM--3:00 PM, and at other times by appointment

TA: Yundong Wang
Email: yuw485 at
Office hours: Tu 9:00 AM--11:00 AM and at other times by appointment

Tutor: Zhanchong (Bobby) Deng
Email: zhdeng at
Office hours: M 11:00 AM--1:00 PM, W 12:00 noon--2:00 PM, and F 11:00 AM--1:00 PM

Note: when emailing the instructor, TAs, or tutor with questions about the class, please put "CSE 8B" in the subject line.

Class section ID: 22331
Lecture: MW 5:00 PM-6:20 PM
Discussion: F 3:00 PM-3:50 PM
Class discussion: Piazza

This course covers introductory programming using an object-oriented approach with the Java programming language. It builds on basic programming constructs from CSE 8A to introduce class design and use, interfaces, basic class hierarchies, recursion, event-based programming, error reporting with exceptions, and file I/O towards the development, testing, and debugging of more complex programs. Additionally, students will learn the basics of command-line navigation for file management and running programs.

Beginning with Assignment 2, all programming must follow specific code style guidelines.

Prerequisites: CSE 8A (Introduction to Programming and Computational Problem Solving - 1).

Late Policy: Assignments will have a submission procedure described with the assignment. Assignments submitted late will receive a 15% grade reduction for each 12 hours late (i.e., 30% per day). Assignments will not be accepted 72 hours after the due date. If you require an extension (for personal reasons only) to a due date, you must request one as far in advance as possible. Extensions requested close to or after the due date will only be granted for clear emergencies or clearly unforeseeable circumstances. You are advised to begin working on assignments as soon as they are assigned.

Collaboration Policy: It is expected that you complete your academic assignments on your (or your group's, if explicitly allowed for an assignment) own and in your (or your group's, if explicitly allowed for an assignment) own words and code. The assignments have been developed by the instructor to facilitate your learning and to provide a method for fairly evaluating your knowledge and abilities (not the knowledge and abilities of others). So, to facilitate learning, you are authorized to discuss assignments with others; however, to ensure fair evaluations, you are not authorized to use the answers developed by another, copy the work completed by others in the past or present, or write your academic assignments in collaboration with another person (or group, if explicitly allowed for an assignment). On quizzes or exams, collaboration or copying of any kind is not allowed.

Academic Integrity Policy: Integrity of scholarship is essential for an academic community. The University expects that both faculty and students will honor this principle and in so doing protect the validity of University intellectual work. For students, this means that all academic work will be done by the individual (or group, if explicitly allowed for an assignment) to whom it is assigned, without unauthorized aid of any kind.

You should not attempt to search for homework solutions online or in sources outside of the course text. If you accidentally stumble upon a homework solution in an outside source you must cite it in your homework solution. If your solution proves to be too similar to the cited one, you may lose credit on the problem; however, failure to cite the other solution will be treated as an academic integrity violation.

If the work you submit is determined to be other than your own (or your group's, if explicitly allowed for an assignment), you will be reported to the Academic Integrity Office for violating UCSD's Policy on Integrity of Scholarship. In accordance with the CSE department academic integrity guidelines, students found committing an academic integrity violation on a homework assignment will receive a 0 on the assignment. Students found committing an academic integrity violation on a quiz or exam will receive an F in the course.

Grading: There will be 8 homework assignments (drop lowest one), and 8 quizzes and a final exam weighted with the following percentages:

Assignments: 50% (drop lowest one)
Quizzes and final exam: 50%
The final exam will consist of 9 parts. The first 8 parts of the final exam correspond to the 8 quizzes. If your grade on one of those parts of the final exam is greater than your grade on the quiz corresponding to the same part, then the two grades will be averaged to determine your grade for that part of your "quizzes and final exam" grade (i.e., your grade for that part will increase); otherwise, your grade for that part will be your quiz grade only. The last part of the final exam will cover material from the last week of class, which there will not be a homework assignment or quiz on. This part of your "quizzes and final exam" grade will solely be determined from the last part of the final exam.

Assignments, quizzes, and final exam:


Lecture slides:

Lecture topics (tentative):

Required textbook:

Introduction to Java Programming and Data Structures, 11th edition, comprehensive version
Y. Daniel Liang
Pearson, 2018

Diversity and Inclusion

We are committed to fostering a learning environment for this course that supports a diversity of thoughts, perspectives, and experiences while respecting your identities (including race, ethnicity, heritage, gender, sex, class, sexuality, religion, ability, age, educational background, etc.). Our goal is to create an inclusive learning environment where all students can feel comfortable and thrive. Accordingly, the instructional staff will make a concerted effort to be welcoming and inclusive to the wide range of students in this course. If there is some way we can help you feel more included, please let one of the course staff know (in person, via email/Piazza, or even using an anonymous note).

We also expect that you, as a student in this course, will honor and respect your classmates, abiding by the UCSD Principles of Community. Please understand that others' backgrounds, perspectives, and experiences may be different than your own, and help us build an environment where everyone is welcomed and respected.

If you experience any sort of harassment or discrimination, please contact an instructor as soon as possible. If you prefer to speak with someone outside of the course, please contact the Office for the Prevention of Harassment and Discrimination.

Students with Disabilities

We aim to create an environment in which all students can succeed. If you have a disability, please contact the Office for Students with Disabilities (OSD) and discuss appropriate accommodations as soon as possible. We will work to provide you with the accommodations you need, but you must first provide a current Authorization for Accommodation (AFA) letter issued by the OSD. You are required to present your AFA letters to the instructor and to the department's OSD Liaison so that accommodations may be arranged.

Basic Needs/Food Insecurities

If you are experiencing any insecurities related to basic needs (food, housing, financial resources), there are resources available on campus to help, including The Hub and the Triton Food Pantry. Please visit The Hub for more information.

Consent to Participate in Educational Research

University of California, San Diego
Consent to Act as a Research Subject

Investigating the Impact of Pedagogical Choices on University Student Learning and Engagement

Who is conducting the study, why you have been asked to participate, how you were selected, and what is the approximate number of participants in the study?
Gabriele Wienhausen, Director of the Teaching and Learning Commons, together with her education research colleagues is conducting a research study to find out more about how pedagogical choices affect student learning and experience in the classroom. You have been asked to participate in this study because you are a student in a class that is being studied or used as a control. There will be approximately 500,000 participants in this study.

Why is this study being done?
The purpose of this study is to create knowledge that has the potential to improve the learning and educational experience of students at UC San Diego and beyond.

What will happen to you in this study and which procedures are standard of care and which are experimental?
If you agree to be in this study, the following will happen:
Your data from this class including grades, homework and exam submissions, and survey responses will be included in the analysis to determine the effectiveness of the pedagogical techniques used in this course compared to other similar courses.

How much time will each study procedure take, what is your total time commitment, and how long will the study last?
Your participation involves only agreeing to let us use your data in our analysis. It will require no time on your part above the time you put into this course without agreeing to the study.

What risks are associated with this study?
Participation in this study may involve some added risks or discomforts. These include the following:
1. A potential for the loss of confidentiality. We will not share your personally identifying data with people outside our research team. Data will only be kept in anonymized form for research purposes. Course data will not be used for this research study until after final grades have been posted and will be rendered confidential by removing any identifiers before analysis. Your instructor will not know whether or not you are participating in this study until after final grades have been posted. Data from students who opt out of the study will be removed prior to data analysis. Research records will be kept confidential to the extent allowed by law. Research records may be reviewed by the UCSD Institutional Review Board.
Since this is an investigational study, there may be some unknown risks that are currently unforeseeable. You will be informed of any significant new findings.

What are the alternatives to participating in this study?
The alternatives to participation in this study are not to participate. If you choose to opt-out of participating in this research study, we will exclude your data from analysis. Whether you participate will have no impact on your experience or grade in the associated class as the professor will not know who is or is not participating in the study until after final grades are assigned.

What benefits can be reasonably expected?
There is no direct benefit to you for participating in the study. The investigator, however, may learn more about how to improve student learning, and society may benefit from this knowledge.

Can you choose to not participate or withdraw from the study without penalty or loss of benefits?
Participation in research is entirely voluntary. You may refuse to participate or withdraw or refuse to answer specific questions in an interview or on a questionnaire at any time without penalty or loss of benefits to which you are entitled. If you decide that you no longer wish to continue in this study before the end of the quarter, simply respond to the online opt-out form here: If you decide to opt out after the quarter has ended, you must contact Laurel Nelson ( and give the quarter and the course from which you would like your data withdrawn.

You will be told if any important new information is found during the course of this study that may affect your wanting to continue.

Can you be withdrawn from the study without your consent?
The PI may remove you from the study without your consent if the PI feels it is in your best interest or the best interest of the study. You may also be withdrawn from the study if you do not follow the instructions given you by the study personnel.

Will you be compensated for participating in this study?
You will not be compensated for participating in this study.

Are there any costs associated with participating in this study?
There will be no cost to you for participating in this study.

Who can you call if you have questions?
Gabriele Wienhausen and/or her colleague has explained this study to you and answered your questions. If you have other questions or research-related problems, you may reach Gabriele Wienhausen at or (858) 534-3958.

You may call the Human Research Protections Program Office at 858-246-HRPP (858-246-4777) to inquire about your rights as a research subject or to report research-related problems.

Your Consent
If you consent to participate in this study, no action is needed. If you DO NOT consent to participate in this study, or you choose to opt-out at any time during the quarter, please submit this form online at Your instructor will not have access to the list of students who opted out until after grades are posted. Note that you must separately opt-out of the study for each course involved in this study.

Last update: December 8, 2020