View Single Post
  #3   Spotlight this post!  
Unread 07-21-2015, 09:19 PM
Ari423's Avatar
Ari423 Ari423 is online now
LabVIEW aficionado and robot addict
AKA: The guy with the yellow hat
FRC #5987 (Galaxia)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2012
Location: Haifa, Israel
Posts: 518
Ari423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant futureAri423 has a brilliant future
Re: Summer Labview Challenge 2

Quote:
Originally Posted by Bpk9p4 View Post
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...
Here's my submission for Part 1. I converted the change to an integer to ensure nothing less than 1c and to get rid of floating point errors. This was the simplest solution I could come up with, but I'm interested in seeing if anyone can one-up me

Click image for larger version

Name:	Change Machine p1.png
Views:	48
Size:	23.7 KB
ID:	19224

Part 2 coming soon...
__________________
2017-present: Mentor FRC 5987
2017-present: CSA for FIRST in Israel
2012-2016: Member FRC 423
2013: Programmer
2014: Head Programmer, Wiring
2015: Head Programmer, Wiring
2016: Captain, Head Programmer, Wiring, Manipulator, Chassis, CAD, Business, Outreach (basically everything)



Last edited by Ari423 : 07-21-2015 at 10:12 PM.
Reply With Quote