게시판 즐겨찾기
편집
드래그 앤 드롭으로
즐겨찾기 아이콘 위치 수정이 가능합니다.
자바 프로그래밍하는데 너무 어려워서 질묺애ㅛ.
게시물ID : computer_5996짧은주소 복사하기
작성자 : 라페밀리
추천 : 1
조회수 : 546회
댓글수 : 5개
등록시간 : 2011/05/06 23:26:28
학교 과제이기는 한데요

교수님이 수업을 제대로 안하셔서 ㅠㅠ

각설하고 제 실력도 한 없이 부족해서 그런데

문제 하나 띄워드릴테니

제가 짠 것에서 무엇이 잘 못 되었는지 좀 부탁드릴께요.

-----------------------------------------------------------------------------------
public class ConcertPromoter {
public int totalTicketsSold, remainingTickets, theNumberOfSoldPhone, theNumberOfSoldVenue;
public int theNumberOfVenue = 15000;
public int chooseTicketsAmount;

public void basicInformation(){
System.out.println("--------------------------------------------");
System.out.println("           Rock Concert          ");
System.out.println("     The name of band : MUZE     ");
System.out.println("           15000 seats           ");
System.out.println("The number of tickets sold by Phone : " +theNumberOfSoldPhone);
System.out.println("The number of tickets sold at the concertVenue : " +theNumberOfSoldVenue);
System.out.println("The price of a ticket sold by phone : $70");
System.out.println("The price of a ticket sold at the concert venue : $80");
System.out.println("The total sales amount : " +totalTicketsSold);
}

public void recordSaleTickets(){

}
public void changeToPhonetoVenue(){

}
public int getTicketsSold(int newtheNumberOfSoldPhone, int newtheNumberOfSoldVenue){
return newtheNumberOfSoldPhone, newtheNumberOfSoldVenue;
}
public int getTicketsRemaining(){
return remainingTickets;
}
public int totalSales(){
return totalTicketsSold;
}

}
-----------------------------------------------------------------------------------
진짜 대충 짰는데 진짜 잘 모르겠네요. getTicketsSold 이것도 계속 리턴 2개하는 건데 잘 모르겠고.

하이튼 고수님들의 도움을 부탁드려요. ㅠㅠ
전체 추천리스트 보기
새로운 댓글이 없습니다.
새로운 댓글 확인하기
글쓰기
◀뒤로가기
PC버전
맨위로▲
공지 운영 자료창고 청소년보호