Find Jobs
Hire Freelancers

.NET Cash Program - ATM

$10-30 USD

진행 중
게시됨 6년 이상 전

$10-30 USD

제출할때 지불됩니다
Program: Cash Money Program You are to write a command-line cash machine (ATM). The cash machine is pre-stocked with the following denominations: • $100 - 10 Bills • $50 - 10 Bills • $20 - 10 Bills • $10 - 10 Bills • $5 - 10 Bills • $1 - 10 Bills Your application should take input from the standard input stream and support the following commands: • R - Restocks the cash machine to the original pre-stock levels defined above • W<dollar amount> - Withdraws that amount from the cash machine (e.g. "W $145") • I<denominations> - Displays the number of bills in that denomination present in the cash machine (e.g. I $20 $10 $1) • Q - Quits the application The withdrawals from the cash machine should dispense cash in the most efficient manner possible, with the least amount of bills. After a withdrawal, the program should display success or failure and the remaining balance in the cash machine (sample output below). For an inquiry, the program should display the number of bills in the denominations specified (sample output below). After a restock, the program should display the balance in the cash machine (same as after a withdrawal). If the input is not understood, "Invalid Command" should be displayed. No additional messages, prompts or errors should be displayed. Sample input/ouput. Note that the > are only in the sample to denote input and would not actually be a part of the problem as no additional prompts should be displayed. > W $208 Success: Dispensed $208 Machine balance: $100 - 8 $50 - 10 $20 – 10 $10 - 10 $5 - 9 $1 - 7 > W $9 Success: Dispensed $9 Machine balance: $100 - 8 $50 - 10 $20 - 10 $10 - 10 $5 - 8 $1 - 3 > W $9 Failure: insufficient funds > I $20 $1 $100 $20 - 10 $1 - 3 $100 – 8 > R Machine balance: $100 - 10 $50 - 10 $20 - 10 $10 - 10 $5 - 10 $1 - 10 > K Failure: Invalid Command You may use the language of your choice to implement the solution. Providing unit tests is encouraged, but not required. No external files or databases are required (i.e. the initial cash machine amount and restock levels can be hard-coded). Deliverables: - Must use VS2010 or VS2012 - Provide project with working source code - Provide output specified in the requirements
프로젝트 ID: 15633160

프로젝트 정보

4 제안서
원격근무 프로젝트
활동 중 6년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
4 이 프로젝트에 프리랜서들의 평균 입찰은 $25 USD입니다.
사용자 아바타
Let me help you Relevant Skills and Experience I can use VS2010/VS2012, i will create a C# console application to complete this project Proposed Milestones $25 USD - complete project
$25 USD 1일에
4.9 (4 건의 리뷰)
3.1
3.1

고객에 대한 정보

국기 (UNITED STATES)
United States
0.0
0
11월 13, 2017부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.