Find Jobs
Hire Freelancers

Object Oriented Development Assignment 1

RM32-99 MYR

Zaprt
Objavljeno pred več kot 9 leti

RM32-99 MYR

Plačilo ob dostavi
1. Objective: a. To expose students to the Observer design pattern. b. To sharpen students’ design skills in improving the Observer pattern to accept multiple Subjects. 2. List of software NetBeans or NotePad++ with an installed JDK 3. Report and Marks For each questions in this assignment, your report must include the following: a. A UML class-diagram of your solution 40% b. Source code of solution 40% 20 % will be given for a successful demonstration of your solution. Due marks will be given for good coding styles (indents, capitalization, variable / method / class names, etc.). Submit both a hardcopy and softcopy of your report. This assignment is worth 10% of the overall marks for the course. 4. Due date Part 5(a): 30/09/2014 (Tuesday), 5pm Part 5(b): 02/10/2014 (Thursday), 5pm 5. Questions Answer the following two questions. Mark distribution is as indicated at the end of each question. a. Modify the ObserverExample source code to handle any number of Subject objects per Observer. Use the following code for main(String[] args) : public static void main(String[] args) { PairOfNumbers numbers1=new PairOfNumbers(); PairOfNumbers numbers2=new PairOfNumbers(); SumObserver sum=new SumObserver(numbers1); ProductObserver prod=new ProductObserver(numbers2); MultiSubjectObserver m=new MultiSubjectObserver(); [login to view URL](numbers1); [login to view URL](numbers2); [login to view URL](20, 10); [login to view URL](-10, 15); } Sample output: New sum is: 30.0 MultiSubjectObserver activated with numbers: 20.0, 10.0 New product is: -150.0 MultiSubjectObserver activated with numbers: -10.0, 15.0 You are not allowed to change the following classes from the ObserverExample source code: Observer, Subject, PairOfNumbers, SumObserver, and ProductObserver. (60 marks) b. Based on the solution of 5(a), implement a WeatherObserver that would be able to track a TemperatureSensor, a PressureSensor, and a HumiditySensor. Use the following code for main(String[] args) : public static void main(String[] args) { TemperatureSensor t = new TemperatureSensor(); PressureSensor p = new PressureSensor(); HumiditySensor h = new HumiditySensor(); WeatherObserver w = new WeatherObserver(); [login to view URL](t); [login to view URL](p); [login to view URL](h); [login to view URL](28); [login to view URL]("-------------------------------"); [login to view URL](200); [login to view URL]("-------------------------------"); [login to view URL](89); } Sample output: Temperature : 28 Celcius Pressure : 0 Pascal Humidity : 0 % ------------------------------- Temperature : 28 Celcius Pressure : 200 Pascal Humidity : 0 % ------------------------------- Temperature : 28 Celcius Pressure : 200 Pascal Humidity : 89 % You are not allowed to change the following classes from 5(a): Observer and Subject. (40 marks)
ID projekta: 6507893

Več o projektu

14 ponudb
Projekt na daljavo
Aktivno pred 10 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
14 freelancerjev je oddalo ponudbo s povprečno vrednostjo RM78 MYR za to delo
Avatar uporabnika
I have 9+ years of exp in c c++ java j2ee hibernate spring webservices databases. Done multiple projects like this and almost proficient in design patterns..Checkout my completion rate and reviews.
RM97 MYR v 1 dnevu
5,0 (132 ocen)
7,9
7,9
Avatar uporabnika
A proposal has not yet been provided
RM100 MYR v 1 dnevu
5,0 (88 ocen)
5,7
5,7
Avatar uporabnika
let expert do this...............................................................................................
RM106 MYR v 1 dnevu
4,9 (14 ocen)
4,7
4,7
Avatar uporabnika
Dear Sir, We are having many development experience in Java and MySQL, We have experience in various technologies such as barcodes, RFID, FingerPrint Scanners, Touch Screens, Poll bars, Cash Drawers, Different Kind of Thermal Printers as well. And we have 84 client base as our company. (Most of them are based on Java Swing and MySQL (JDBC,Hibernate or Persistance)) And also you can see my past feedback from my one client called ozeebrown (POS System) and p4r4g0n (Inventory) We have successfully continued to two versions of that unicenta POS system. (v33 to v34, v34 - v35).we have so many experience in unicenta related projects in this site please visit our work history. Thanks for spending your time. Best Regards Bizant Technologies.
RM76 MYR v 2 dneh
5,0 (6 ocen)
4,5
4,5
Avatar uporabnika
Hi, Ping me if you are interested.... Thanks and regards, Harsh.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
RM82 MYR v 1 dnevu
4,7 (42 ocen)
4,6
4,6
Avatar uporabnika
Dear Sir/Madam Let me take this opportunity to introduce myself as experience Java/J2ee Developer having 10+ years of experience of designing and developing various complex web and desktop specific application. I have immense knowledge of UML and Java design patterns and implemented them in several projects of mine. I can complete your assignment within your timeline and budget. Suggest you to award it at the earliest, so that It can be delivered within today or tomorrow and you will be able to review the code and UML diagram before submitting your assignment. Thanks Best Regards, Naveen
RM80 MYR v 1 dnevu
4,8 (17 ocen)
4,2
4,2
Avatar uporabnika
hello sir how are you i am a software engineering student and as you can see my profile i have a strong grip on java, c++ and .net and i can make this assignemnt very well, its a piece of cake for me... so come on chat and discuss the project with me thanks
RM80 MYR v 1 dnevu
4,7 (10 ocen)
3,9
3,9
Avatar uporabnika
Hi. I did completed 100% project for my employers. I can do it for you with that price. Hope we have a deal. Thanks!
RM78 MYR v 1 dnevu
4,9 (16 ocen)
3,9
3,9
Avatar uporabnika
Hi there, I would like to work on your assignment. Please let me know for further discussion if interested.
RM50 MYR v 1 dnevu
4,2 (14 ocen)
4,2
4,2
Avatar uporabnika
HI there, I have been working in Java since last 6 years and during my professional career I have done so many projects in Java. I have my small firm under which 7 people are working with me in java. If you are interested please let me know. Thanks
RM101 MYR v 1 dnevu
4,7 (4 ocen)
3,1
3,1
Avatar uporabnika
A proposal has not yet been provided
RM82 MYR v 4 dneh
0,0 (0 ocen)
0,0
0,0
Avatar uporabnika
A proposal has not yet been provided
RM87 MYR v 2 dneh
0,0 (0 ocen)
0,0
0,0

O stranki

Zastava MALAYSIA
Bukit Mertajam, Malaysia
0,0
0
Član(ica) od okt. 21, 2013

Verifikacija stranke

Druga dela te stranke

c++ diploma project
$32-99 USD
Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.