Upload
others
View
12
Download
0
Embed Size (px)
Citation preview
COMP110
©JeffDrobman2017-18
Dr JeffDrobman
IntrotoAlgorithms&Programming
email [email protected]
website
UsingJAVA
drjeffsoftware.com
COMP110
COMP110
©JeffDrobman2017-18Today’sAgenda
v LECTURE(PPt slides):2:00– 3:15pmq Date&Timeq Ch 7:Arrays
v BREAK:3:15– 3:30pm
v LAB:3:30– 4:45pmq Project1q Lab4
v Officehour:4:45– 5:45pm
Week 7
M- W
HOLIDAYSv Mar30– GoodFriday
SpringBreakv March26-30
COMP110
©JeffDrobman2017-18CourseOverview
vProblemSolvingvAlgorithmsvProgramming
vUsingJAVAvComparetoC,C++
vStructured Programming
vOOP – Object-Oriented Programming
Othermajortopics
ProgrammingLanguages
Introto
vMethods
vClasses
viaimplemented
via
vAlgorithmsvProgramming
vUsingJAVA
vRequirementsvAlgorithmsvProgrammingvDesignvImplementation
Ø I-P-Omodel
Ø SDLCmodel
Ø Encapsulation
Ø Encapsulation Ø Inheritance Ø Polymorphism
v Testingv Debugging
COMP110
©JeffDrobman2017-18Reading
Week
Chapter
1 2 3 4 5 6 7 8
1/2 2/3 3/5 4 6 6/7A 7B 8
9 10 11 12 13 14 15
12B 12A 9 9 9 9/10 10/11
Week
Chapter
Midterm
Final
subjecttochange
arrays[]stringsfloat
FileI/O Excepts
OOP
methodsif-then-elsecase,loops
datatypesI/O
arrays[][]
FinalPrepArrayLists(sec11.11-13)
Quiz0Quiz1
COMP110
©JeffDrobman2017-18Textbook
Chapters
1. IntrotoComputers,Programs&Java2. ElementaryProgramming3. Selections4. MathFns,Chars,Strings5. Loops6. Methods7. Arrays,Single-dim8. Arrays,Multi-dim9. Objects&Classes10. ThinkinginObjects11. Inheritance&Polymorphism12. ExceptionHandling&TextI/O13. AbstractClasses&Interfaces14. JavaFX(GUIlibrary)15. Event-drivenGUI&animation16. JavaFXcont’d17. BinaryI/O18. Event-DrivenProgramming19. Recursion
INTRODUCTIONTO
JAVAPROGRAMMING
byY.DanielLiang
now
FX
OOP
Part1
Part2
Part3
Part4
COMP110
©JeffDrobman2017-18LabSection
vI/O§ Console§ GUI(Swing)
vExercises§ Textbook§ Javaconstructs(Loops,Strings,Arrays,Date/Timeetc.)§ TheoremProofs§ Internetproblems(MontyHall,etc.)
vLabs(Programs)Ø 8programs
§ Continuingover2ormoreweeks
vProjects1. EmbeddedControl:Thermostat2. Simulation:Gameplaying
COMP110
©JeffDrobman2017-18Assignments/Exams
1 2 3 4 5 6 7 8
Lab1 Lab2 Lab2 Lab2 Lab3 Lab4 Lab4 Lab5
Proj 1 Proj 1 Proj 1Quiz0 Quiz1 Midterm
WEEK
9 10 11 12 13 14 15 16
Lab5 Lab6 Lab6 Lab7 Lab8 Lab8
Proj 2 Proj 2FINAL
v AllassignmentsmustbesubmittedbyMay11
Oct18Assesment
COMP110
©JeffDrobman2017-18LabPrograms
1. HelloWorld(I/O)2. GuessSecretName(Input,IF-THEN,loops)3. Temperatureconversion(IF-THEN,numerics,formatted output)4. Palindromes/Anagrams (strings,methods)5. Homonyms (strings,methods,arrays,files)6. Primenumbers(algorithms,loops,methods,arrays,files)7. Cryptography/blockchains (algorithms,methods)8. Tic-Tac-Toe(arrays,methods,formatted output,Classes)9. BowlingLeague(arrays,files,methods,stats, Classes)10. Calendar (algorithms,formatted output,Date/Time)11. Games(arrays,randomnumbers)à Project12. Probability(factorials->recursion)
COMP110
©JeffDrobman2017-18Projects
vProject1:EmbeddedControlØ Thermostatà useTempConversion
q Others§ TVremote§ Cartransmission/acceleration§ Anyotherapprovedapplication
vProject2:SimulationØ Cardgameà use“Shuffling”
§ Blackjack§ Poker(pickavariety)§ ThermonuclearWar
q Others§ Weatherà useTempConversion§ StockMarketà refmyapp(SMM)§ USEconomy(GDP,CPI,etc.)
DUEATMIDTERM
DUEATFINAL
v Requiredextrasq USERGUIDEq UML
Ø while(true)
Ø gameplaying§ randomnumbers§ montecarlo
v Requiredextrasq USERGUIDEq UML
COMP110
©JeffDrobman2017-18ClassSlidesonWebsite
http://drjeffsoftware.com/classroom.html
FEB18
FEB18