50 likes | 172 Vues
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.
E N D
Web Programming Homework Second Homework (~ 12월 7일 자정까지)
Homework • Server, Client를 이용한 계산기 만들기 • IP : 127.0.0.1 • Port : 4458 Client Server (10+2X3)/4 4.0
Homework • Server, Client를 이용한 계산기 만들기 • Client • 정수 사칙 연산 가능 • 소수 사칙 연산 가능 • AC 버튼 구현 • TCP 방식의 Socket을 사용 • 실제 연산은 수행하지 않음 • = 버튼을 누르면 사용자가 입력한 내용을 서버로 전송 • 서버의 연산결과를 화면에 표시 • UI는 SWING으로 구현
Homework • Server, Client를 이용한 계산기 만들기 • Server • TCP방식으로 수식을 전송 받음 • 수식의 parsing • 실제 연산 기능 • 동시에 여러 Client처리 가능(Thread 구현) • 수식 및 연산결과를 서버가 파일로 저장 : “log.txt” • 연산자 우선순위 처리가능 • 괄호의 처리 구현
eclipse@hanyang.ac.kr • angelsua@hanyang.ac.kr