1 / 5

Web Programming Homework

This project involves developing a calculator application utilizing server-client architecture. The server listens on IP address 127.0.0.1 and port 4458, allowing clients to connect and perform arithmetic operations, including integers and decimals. The calculator features an AC button, and calculations are executed through TCP sockets without performing actual computations on the client side. The server handles expression parsing, operator precedence, and saves logs in a "log.txt" file. The user interface is implemented using Java Swing.

Télécharger la présentation

Web Programming Homework

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web Programming Homework Second Homework (~ 12월 7일 자정까지)

  2. Homework • Server, Client를 이용한 계산기 만들기 • IP : 127.0.0.1 • Port : 4458 Client Server (10+2X3)/4 4.0

  3. Homework • Server, Client를 이용한 계산기 만들기 • Client • 정수 사칙 연산 가능 • 소수 사칙 연산 가능 • AC 버튼 구현 • TCP 방식의 Socket을 사용 • 실제 연산은 수행하지 않음 • = 버튼을 누르면 사용자가 입력한 내용을 서버로 전송 • 서버의 연산결과를 화면에 표시 • UI는 SWING으로 구현

  4. Homework • Server, Client를 이용한 계산기 만들기 • Server • TCP방식으로 수식을 전송 받음 • 수식의 parsing • 실제 연산 기능 • 동시에 여러 Client처리 가능(Thread 구현) • 수식 및 연산결과를 서버가 파일로 저장 : “log.txt” • 연산자 우선순위 처리가능 • 괄호의 처리 구현

  5. eclipse@hanyang.ac.kr • angelsua@hanyang.ac.kr

More Related