HTW Berlin Fachbereich 4 Internationaler Studiengang Internationale Medieninformatik (Bachelor) Info 1: Informatik I Winter Term 2022/23 |
Laboratory 0: Figures
|
This week's lab work is
intended to acquaint you with the BlueJ environment. You will be
working in pairs that will be assigned at the beginning of the
lab. Be on time and have your Pre-Lab ready to show.
Pre-lab
Please bring these exercises printed out or written out with you to lab. Please have your name on your page.
P1. In the lecture we have talked about data types called int and String. Java has more predefined primitive data types. What are they? Record where you found this information.
P2. What are the types of the following values?
P3. Pick up a book—you should have at least one at home. Is it an object or a class? If it is a class, name some objects. If it is an object, name the class. Give your reasoning.
P4. What class does the following constructor belong to? How many formal parameters does it have? What are their types?
public Book (String title, double price)
If you will be using your own laptop in the lab, please install
BlueJ 5.1.0 before you come to lab. Downloads are available for all
platforms—it's written in Java! Write once, run anywhere!
Lab assignments are due the night before your next lab at 22.00, we want you to get some sleep the night before class. They may, of course, be turned in earlier. You hand them in by preparing the report in PDF and submitting it to the Moodle area for your group. Each member of the pair submits their own copy of the report.
Assignment
Figures
Download the projects file from the Moodle room and open up the figures project.
Writeup
You will be doing your writeup at home. Use the notes that you took in your logbook. Submit your writeup as your post-lab to the Moodle area.