Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Java Programming: Intro to Computer Science - Spring 2006 Exercise, Assignments of Computer Science

An in-class exercise for the csc2310: intro to computer science course, focusing on java programming. Students are required to read chapters 2, 3, and 4 and answer questions related to java basics, such as the structure of a java program, valid statements, data types, variables, and user input. Questions also cover converting user input to int and double.

Typology: Assignments

Pre 2010

Uploaded on 08/31/2009

koofers-user-nwp
koofers-user-nwp 🇺🇸

10 documents

1 / 1

Toggle sidebar

Related documents


Partial preview of the text

Download Java Programming: Intro to Computer Science - Spring 2006 Exercise and more Assignments Computer Science in PDF only on Docsity! CSC2310 Spring, 2006 Intro to Computer Science Ken Nguyen In class exercise 1) Please read chapters: 2, 3, and 4 And answer the following questions with your best knowledge a. What is the basic skeleton of a Java program? Please give an example. b. What is a valid Java statement? Please give an example. c. What are the data types in Java that you know? How many of them should you know by know? Please list them out. d. What do you know about variables, what is the basic requirement must be satisfied before they can be used. Give an example. e. What are the restrictions about mixing data types? Give example. f. How would you read a user’s input into a Java program and what is the input data type? How would you convert this input into an int? How would you convert it into a double? g. Would it be possible for you to study these (your answers to the above questions) by heart before the next class? If not, please explain.
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved