• Tidak ada hasil yang ditemukan

BHCS03 – Programming in JAVA

N/A
N/A
Protected

Academic year: 2024

Membagikan "BHCS03 – Programming in JAVA"

Copied!
1
0
0

Teks penuh

(1)

B.Sc. (H) Computer Science, Semester II Lab Exercises

BHCS03 – Programming in JAVA

Attempt the following questions as part of JAVA Lab class today:

1. Write a program with which you can convert a human height given in feet and inches to centimeters. The program should ask the user to type in his or her height in two parts: first the height in feet and then the inches part for the height. (A person can say that his or her height is, for example, 5 feet and 9

inches.

There can be thus two separate input statements in the program. After the program has received the feet and the inches, it should calculate the corresponding value in centimeters and print it to the screen.

Use CUI/GUI to display the output.

PS: You may send the solutions and/or doubts to

[email protected]. The file that you send should be saved with your roll number-subject name-today’s date.

Referensi

Dokumen terkait

Writing Advanced Java Applications, Chapter 6: Project Swing: Building a User Interface. http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/swing2.html (8 of

(Hey, how about that? The word javac stands for “Java compiler!”) As a Java programmer, you often tell your computer to build some new object code.. Your computer fulfills this

A class, in the context of Java, are templates that are used to create objects, and to define object data types and methods.. For

SECOND SEMESTER, 2007 Campus: City COMPUTER SCIENCE TEST Principles of Programming Time allowed: 75 MINUTES NOTE: AttemptALL questions Write your answers in the space provided

UNIT-I OOP CONCEPTS AND JAVA PROGRAMMING Classes: 10 OOP concepts: Classes and objects, data abstraction, encapsulation, inheritance, benefits of inheritance, polymorphism,

Yaitu dengan Java Programming dengan begitu semoga dapat merahasiakan data/pesan lebih aman Keywords: Kriptografi AES, Java Programming, Data/Pesan, Enkripsi & Dekripsi PENDAHULUAN

Lab report on creating a class for student records in a Java

King Saud University College of Computer and Information Sciences Department of Computer Science CSC113 – Computer Programming II – Tutorial No 5 – Spring 2017 Counter class: