210 likes | 348 Views
Introduction to java programming. 1 st lab. Rules. Csc111 course has (3 hours lecture+1 hour Tutorial +2 hours Lab). You should check our announcements at our blog many times every day http://csc111java1.wordpress.com /
E N D
Introduction to java programming 1st lab Afnan Al-Hindi
Rules • Csc111 course has (3 hours lecture+1 hour Tutorial +2 hours Lab). • You should check our announcements at our blog many times every day http://csc111java1.wordpress.com/ • We will upload a sheet every week to print it ,read it , prepare it and understand it very well then we will evaluate you by 1 question randomly during lab time. Afnan Al-Hindi
Attendance & evaluation • Make sure that you attend on your lab as your schedule on time. • Make sure you attend on time on your right lab because at the beginning of each lab we will check attendance of all students. • At the beginning of each lab you can ask TA if you have any question about sheet. • Make sure that you don’t leave the lab until you finish your programming code and until your TA evaluate your code. Afnan Al-Hindi
sheets * You should submit your sheet to your TA in the beginning of your lab time (any late will not be accepted for any reason) * Make sure that you submit the (hard copy +soft copy of your solution) <<if you forget any one of them then your sheet will not be corrected. hard copy: print (you code+ sample run on paper) soft copy: save your java files on CD or floppy disk(any flash memory will not accepted) * You should print cover page for each sheet * Don’t forget to write your full information on (cover page, top of your code and at your CD\Floppy) Name: ID: Serial no # Sheet# Section# Your TA name: * Any sheets will not be accepted if you put it under TA’s office door. * After we correct your sheets we will return it to you, then you have 1 week to discuss your sheet’s grade with your TA. Afnan Al-Hindi
Code • Your code should be very well organized . • Your code should have comments to explain your code. • Your file should have a right name. • Your sheet is an individually assignment, so you should solve it alone . • Make sure that cheating is not allowed for any course and first of all it is forbidden. • If we discover any cheating between 2 students then each 2 students will take -10 out of 10 • We will not accept any late sheets for any reason • If you want to be absent one day, send your sheet with your friends or submit it before a day to your TA hand by hand with your medical report. Afnan Al-Hindi
When you want to ask your TA • Make sure that you go to your TA’s lab • Check your TA’s office hours on her schedule at office door. • Don’t noise any body in the office , just knock the door and go directly to your TA. • Also, make sure that your question is about sheets. • If you have any question about your lecture you can ask your lecturer. Afnan Al-Hindi
You need to download: • 1- Java Development Kit (JDK) • (Non-Mac users) • 2- jGRASP Hanan Al-Hindi
1- (JDK) • http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u2-download-1377129.html Hanan Al-Hindi
http://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.htmlhttp://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.html Hanan Al-Hindi
Name of class is the same name of file Hanan Al-Hindi
compile Hanan Al-Hindi
Run Hanan Al-Hindi
Example 1 • Design an algorithm that converts a Temperature from Celsius to Fahrenheit Given that F= 9/5*C+32
algorithm 1- get the temperature in Celsius. 2- find the temperature in Fahrenheit using the Fahrenheit = 9/5*Celsius+32. 3- output the temperature in Fahrenheit.
Example 2 To make a profit, prices of the items sold in a book store are marked up 60%. Design an algorithm to find the selling price of an item sold at the book store.
algorithm 1- get the original price. 2- calculate the selling price using the formula selling price = original price + original price *0.60. 3- output the selling price.
Contact Information • Name: Afnan al-Hindi • Email:aalhindi@ksu.edu.sa • Name: Maha al-Sayyari • Email: maha_ksu_edu@yahoo.com • Name: Malakal-Mojaly • Email:malmojaly@ksu.edu.sa Hanan Al-Hindi
Good luck with CSC111 course = ) Afnan Al-Hindi