Go to Post communication at its best = quick, brief, clear - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 21-07-2015, 16:23
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 270
Bpk9p4 is on a distinguished road
Summer Labview Challenge 2

The challenge is to create a change machine

Part 1
You have an item that cost X and you are given X amount of money. The program will need to give back the correct amount and least amount of dollars and coins

Example: You have a basketball that cost $10.23 and they give you $20. You will need to give them back 1 five dollar bill, 4 one dollar bills, 3 quarts, 2 pennies

Inputs:
1) Cost of Item
2) Amount Paid
Outputs:
1) Number of $20
2) Number of $10
3) Number of $5
4) Number of $1
5) Number of Quarters
6) Number of Dimes
7) Number of Nickels
8) Number of Pennies

Part 2:
Same as above but you only have a limited number of each denomination however you still need to give the correct amount of change. If you cannot give back the correct amount you will need to give a fault and notify the clerk

Example: You have a basketball that cost $10.23 and they give you $20. However you only have 2 quarters. You will need to give them back 1 five dollar bill, 4 one dollar bills, 2 quarts, 2 dimes, 1 nickel and 2 pennies

Inputs:
1) Cost of Item
2) Amount Paid
3) Amount of $20
4) Amount of $10
5) Amount of $5
6) Amount of $1
7) Amount of Quarters
8) Amount of Dimes
9) Amount of Nickels
10) Amount of Pennies

Outputs:
1) Number of $20
2) Number of $10
3) Number of $5
4) Number of $1
5) Number of Quarters
6) Number of Dimes
7) Number of Nickels
8) Number of Pennies
9) Cannot give back the correct change

If you have any questions please feel free to ask them and post your result on here. Thanks
__________________
2015 Midwest Regional Finalist
2015 Central Illinois Regional Winner
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi