CSC205_FinalExamStudyGuide

# Egh frnkblntk oitk0egh iajbkcut fon bek ra

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: n) sm=0 u ; fr(n ;k<alnt;k+ o itk=0 .egh +) sm=sm+ak u u *bk; Operation: ___________ Operation Count:__________ Time Complexity_______ / on o ayeeet r omnbtenaadb /Cuthwmn lmnsaecmo ewe n cut=0 on ; fr(n ;j<alnt;j+ o itj=0 .egh +) fr(n ;k<blnt;k+ o itk=0 .egh +) { i aj =bk)cut+ f(= on+; bek ra; } Operation: ___________ Operation Count:__________ Time Complexity_______ /Aohrwyt on o ayeeet r omn /nte a ocuthwmn lmnsaecmo /btenaadb /ewe n pbi ola sebrita] n ) ulcboeniMme(n [,itx /rtr rei samme fa as tews /euntu fxi ebro ,fleohrie { fr(n ;j<alnt;j+ o itj=0 .egh +) i aj =x euntu; f(= )rtr re rtr as; eunfle } cut=0 on ; fr(n ;j<blnt;j+ o itj=0 .egh +) i iMme(,bj)cut+ f(sebra on+; Operation: ___________ Operation Count:__________ Time Complexity_______ Java Concepts: a. Let the classes Parent and Child be defined as follows. For each line of executable code, indicate whether it is syntactically correct, or not. If not correct, explain why. pbi ls aet ulccasPrn { piaeitv 0; rvt n 1=10 pbi n 2=20 ulcitv 0; poetditv 0; rtce n 3=30 pbi ttcitv 0; ulcsai n 4=40 pbi ia n 5=50 ulcfnlitv 0; pbi n 1) eun1 ulcitf({rtr ;} pbi ttcitf({rtr ;} ulcsai n 2) eun2 } pbi ls hl xed aet ulccasCidetnsPrn { piaeitx 00 rvt n 1=10; pbi n 2=20; ulcitx 00 pbi n 1=30; ulcitv 00 pbi hl( ulcCid) { Sse.u.rn(v 1; ytmotpit"1="+v)...
View Full Document

## This note was uploaded on 01/10/2014 for the course CSC 205 taught by Professor Dr.t.m.rao during the Spring '12 term at SUNY Brockport.

Ask a homework question - tutors are online