• Tidak ada hasil yang ditemukan

CodeWrite –– online practice activity 

N/A
N/A
Protected

Academic year: 2023

Membagikan "CodeWrite –– online practice activity "

Copied!
2
0
0

Teks penuh

(1)

COMPSCI 101, Summer, 2013   ‐ 1 ‐  CodeWrite 

COMPSCI 101 – Summer 2013 

 

CodeWrite –– online practice activity 

   

Due:     4:00pm, Tuesday 22

nd

 January  Worth:  1%  

   

   

Introduction 

 

Before you can successfully write and understand complex programs, you need to master  basic Java syntax and develop the skills necessary to implement simple methods. 

 

Learning to program, just like any skill, requires practice.  An effective way to practice programming is to write lots  of short fragments of code (each only several lines long) so that you become comfortable with the syntax of the  language.  At the same time, you learn the basic principles of programming and build your confidence so that you  can quickly fix errors and feel ready to tackle more complex tasks.   

 

The CodeWrite tool is designed to help you practice by presenting you with a set of short exercises.  For each  exercise, you need to complete the body of a single method – that is, you know the name of the method as well as  the types of the inputs and output of the method, and you need to write the code to implement it. 

 

For example, this method: 

 

public int add(int a, int b)  

is called “add” and it should return the sum of its two integer inputs.  You could complete the body of this method  as follows: 

 

return a + b;

 

(2)

COMPSCI 101, Summer, 2013   ‐ 2 ‐  CodeWrite 

Two activities 

 

This semester, there are two activities available, but only one is compulsory: 

 

COMPSCI 101, 2013 ‐ Compulsory set (worth 1 mark)    

There are 10 exercises available in this set, and you must complete all 10 of them.  This  contributes 1% towards your final grade 

 

COMPSCI 101, 2013 ‐ Optional set    

There are at least 10 exercises available in this set.  Attempting any of the exercises in this set is  optional. 

   

Getting started 

 

Begin by logging in to CodeWrite. 

 

http://codewrite.cs.auckland.ac.nz/at/?uoa_nz  

       

 

Log in with your usual University of Auckland UPI and password. 

 

When you first log in, you will see the two activities available to you in the interface:  

 

   

Just click the link of the activity you want to work on.  Follow the prompts to select and answer exercises. 

Referensi

Dokumen terkait

White oak trees produce smaller acorns than red oak trees, but the nuts they produce are low in tannins, which become a favorite amongst the animals that consume the acorns.. Did

،سلجملا هػ حمثثىملا لمؼلا قشفَ ناجللا هػ سذصي امك خاػُضُملا لَاىتت لمػ قاسَأ ًتسسامم همض يتشؼلا ذمىلا قَذىص ذؼي ،كلر ّلإ حفاضإ .قشفلاَ ناجللا يزٌ اٍشلاىت يتلا اياضملاَ يتلا