Introduction To Programming
Introduction To Programming CSC 1760
Popular in Course
Popular in ComputerScienence
This 3 page Class Notes was uploaded by Chase Senger on Sunday October 25, 2015. The Class Notes belongs to CSC 1760 at University of North Carolina at Pembroke taught by Charles Lillie in Fall. Since its upload, it has received 21 views. For similar materials see /class/229075/csc-1760-university-of-north-carolina-at-pembroke in ComputerScienence at University of North Carolina at Pembroke.
Reviews for Introduction To Programming
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 10/25/15
N E CSC 1760 Introduction to Programming Lesson 3 Your First Program Due Date 1122009 Textbook Introduction to Java Programming Brief Version Seventh Edition Author Y Daniel Liang 2009 Prentice Hall a Sectionsl8 19 Overview Using Eclipse you will enter compile and run your rst Java program Tasks a Using Eclipse enter compile and run the following program Save the program in le named FirstProgram java Fquot 0 3 1 D quot1 gtxlt Student Name Your name goes here Date Due Date this program is due Date Submitted Date you submitted the program Program Name FirstProgram Program Description Displays My rst java program to screen gtxlt public class FirstProgram public static void mainstring args System outprintln My rst java program Modify FirstProgram to display I changed the display Compile and run the program Enter compile and run a program named MyNamejava The program will display your rst and last name on the same line Enter compile and run a program named MyInfo java The program will display your rst and last name on the rst line and your birthday as MMDDYYYY on the second line Enter compile and run a program named MyName2java The program will display your rst and last name using a message dialog box Enter compile and run a program named MyInf02j ava The program will display your rst and last name in one dialog message box and your birthday as MMDDYYYY in a second dialog message box 4 Assignment due a b c FirstPro gram j ava MyName j ava MyInfo j ava d MyName2j ava e MyInfoZ j ava CSC 1760 Introduction to Programming Lesson 11 While and doWhile Loops Due Date 2132009 1 Textbook Introduction to Java Programming Brief Version Seventh Edition Author Y Daniel Liang 2009 Prentice Hall a Sections 42 43 2 Overview Demonstrate using whi l e and do whi l e loops 3 Tasks a Write a program named WhileTest java that uses a whi l e loop to convert miles to kilometers and display the results in a table similar to the following Display miles from 1 to 10 Note 1 mile 1609 kilometers Miles Kilograms l 609 2 3218 9 14481 10 16090 Fquot Write a program named DoWhileTestjava that uses a do whil e loop The program reads an unspeci ed number of integers determines how many positive and negative values have been read and computes the total and average of the input values not counting zero Your program ends with the input 0 Display the average as a oatingpoint number 4 Assignments due a WhileTest j ava b DoWhileTest java
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'