Docsity

Programming Assignment 1 - Java Programming | COP 2250, Assignments of Javascript programming

Toggle sidebar
bg1
Programming Assignment # 1
( Due on Thursday, 9/4/2003 )
Write a Java program that prints out your first name enclosed in “+” signs, which would
take 3 lines on output. Then on the next line (the 4th line), print out the last 4 digits of
your student number (treated as an integer, with leading zero’s omitted) divided by your
birth date of the month. The result needs to be a real number.
For example, the output for a student named “Rosemary”, with student number
“123-45-0111” and birth date on the 26th day of the month, would look like:
++++++++++
+Rosemary+
++++++++++
111 / 26 = 4.269230769230769
Your program should have exactly the same format, only with information specific to you.
You should only turn in a hardcopy of your Java program, that is, just print out the Java
program you have written.
On your hardcopy, write down :
Your name
Your student number
Assignment number
Instructor’s name (Chengcui Zhang).

Partial preview of the text

Download Programming Assignment 1 - Java Programming | COP 2250 and more Assignments Javascript programming in PDF only on Docsity!

Programming Assignment # 1

( Due on Thursday, 9/4/2003 ) Write a Java program that prints out your first name enclosed in “+” signs, which would take 3 lines on output. Then on the next line (the 4th^ line), print out the last 4 digits of your student number (treated as an integer, with leading zero’s omitted) divided by your birth date of the month. The result needs to be a real number. For example, the output for a student named “Rosemary”, with student number “123-45-0111” and birth date on the 26th^ day of the month, would look like: ++++++++++ +Rosemary+ ++++++++++ 111 / 26 = 4. Your program should have exactly the same format, only with information specific to you. You should only turn in a hardcopy of your Java program, that is, just print out the Java program you have written. On your hardcopy, write down :  Your name  Your student number  Assignment number  Instructor’s name (Chengcui Zhang).