[컴퓨터 공학과][객체지향프로그래밍]계좌 관리 프로그램
*경*
다운로드
장바구니
소개글
Develop a C++ program that will determine whether a department-store customer has exceededthe credit limit on a charge account. For each customer, the following facts are available:
a) Account number (an integer)
b) Balance at the beginning of the month
c) Total of all items charged by this customer this month
d) Total of all credits applied to this customer`s account this month
e) Allowed credit limit
The profram should use a while statement to input each of these facts, calculate the new
balance(=beginning balance + charges - credits) and determine where the new balance
exceeds the customer`s credit limit. For those customers whose credit limit is exceeded,
the program should display the customer`s account number, credit limit, new balance and
the message "Credit Limit Exceeded."
목차
<b>Debug
네번째.hwp
a.cpp
d.h
k3.dsp
k3.dsw
k3.ncb
k3.opt
k3.plg
main.cpp
</b>
본문내용
1. 계좌 관리 프로그램1.1 문제 분석
1.1.1 문제 정의
Develop a C++ program that will determine whether a department-store customer has exceeded
the credit limit on a charge account. For each customer, the following facts are available:
a) Account number (an integer)
b) Balance at the beginning of the month
c) Total of all items charged by this customer this month
d) Total of all credits applied to this customer`s account this month
e) Allowed credit limit
The profram should use a while statement to input each of these facts, calculate the new
balance(=beginning balance + charges - credits) and determine where the new balance
exceeds the customer`s credit limit. For those customers whose credit limit is exceeded,
the program should display the customer`s account number, credit limit, new balance and
the message "Credit Limit Exceeded."
1.2 프로그램 설계
① d.h 을 작성한다. 이 h 파일에는 클래스의 인터페이스만을 선언한다.
멤버 함수를 public에 작성한다.
② a.cpp 을 작성한다. 이 파일에는 멤버 함수를 정의한다. 이 파일에는 d.h 안에 있는 원래의 멤버 함수를 실행하는 부분이 포함되어 있다.
참고 자료
없음압축파일 내 파일목록
a.cpp
d.h
k3.dsp
k3.dsw
k3.ncb
k3.opt
k3.plg
main.cpp
네번째.hwp
Debug/a.obj
Debug/k3.exe
Debug/k3.ilk
Debug/k3.pch
Debug/k3.pdb
Debug/main.obj
Debug/vc60.idb
Debug/vc60.pdb
d.h
k3.dsp
k3.dsw
k3.ncb
k3.opt
k3.plg
main.cpp
네번째.hwp
Debug/a.obj
Debug/k3.exe
Debug/k3.ilk
Debug/k3.pch
Debug/k3.pdb
Debug/main.obj
Debug/vc60.idb
Debug/vc60.pdb