1 / 7

CS 241 – Computer Programming II Lab

CS 241 – Computer Programming II Lab . Kalpa Gunaratna – kalpa@knoesis.org http://knoesis.wright.edu/researchers/kalpa /. Contact . Contact by e-mail kalpa@knoesis.org Office hours 376 Joshi Mondays & Wednesday 3:00 pm – 4:00 pm. About me. Kalpa Gunaratna Sri Lanka

giolla
Download Presentation

CS 241 – Computer Programming II Lab

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 241 – Computer Programming IILab KalpaGunaratna – kalpa@knoesis.org http://knoesis.wright.edu/researchers/kalpa/

  2. Contact • Contact by e-mail • kalpa@knoesis.org • Office hours • 376 Joshi • Mondays & Wednesday 3:00 pm – 4:00 pm

  3. About me • KalpaGunaratna • Sri Lanka • Graduate from University of Colombo, Sri Lanka • Computer Science first year PhD student @ Wright State University and member of Kno.e.sis Center of Wright State University. • More information if you are interested in knowing my background • http://knoesis.wright.edu/researchers/kalpa/

  4. Some rules and guidelines to remember • Lab consists of two parts • Part I – in lab which is due on the second lab session of the week. • Part II – post lab which is due before next week’s lab session starts. • You cannot turn in assignments later than this deadlines. 0 marks otherwise. • Make sure you follow these deadlines and normally ignore WebCt deadlines. • Because WebCt deadline is set for all set of classes • Upload the zipped Net Beans project to WebCt.

  5. You will have 4 projects. Each project will have a deadline posted in WebCt. • Projects are accepted only until 3 days past deadline and each day accounts for 10% off from your total eligible score. • I may sometimes make minor changes to assignments in the lab and make sure you make a note of them! • If you use a lab computer please save your net beans project into pen drive or e-mail.

  6. Today’s lab! • Create an array of size 10 only. • Read a list of integers from a file (use Scanner class as shown in the assignment page). • If file contains more than 10 integers, you should print an error message. • Print the maximum value to the console. • Remove the maximum value and write it back to the same file.

  7. Create an arraylist. • ArrayList<type> <variable name> = new ArrayList<type>(); • Have the same functionality as in lab section. • But you can use the in-built functionalities of ArrayList class.

More Related