Course Hero Logo

Laboratory 7 - Static Methods.docx - BN108/BN108D...

This preview shows page 1 - 3 out of 4 pages.

BN108/BN108D Programming for NetworkingLaboratory 7: Static MethodsSubmission Due: End of laboratory class, submit the file on Moodleatleast 10 minutes before the end of laboratory class.Total Marks= 10 marks for 10 weeks (DIT and BNet)Marks will be given only to students who attend and participate duringthe 2 hours’ laboratory class. Submission on Moodle is mandatory as anevidence of participation.Description of the laboratory exercise:The aim of this workshop is to use methods to introduce some form ofstructure to our programs and reduce on redundancy. To get started,remember the syntax of a static method in java is as follows;public static voidname() {statements;}Exercises:Exercise 1:Write a program that prints the following statement a 1000 times;Prepared by:David ChisangaModerated by: A/Prof Savitri BevinakoppaNovember, 2016
BN108/BN108DProgramming for Networking2Coding is the coolest thing everExpectations: Your program should not use more than 1000 lines of

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 4 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
amit
Tags
Networking, Computer Programming, English language films, Subroutine, Bnet

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture