Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 29th, 2013, 09:20 PM
grims grims is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 1 grims User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 28 sec
Reputation Power: 0
[raptor] rem and floor functions

Hello-

New to programming and taking a intro course in college. We're using raptor which is flow chart type program. the gist is i need to write something that takes an amount of change in pennies then converts it to exact change in quarters, dimes, nickels and pennies and spits out an output showing exact change. i know you would divide total by 25 take remainder than 10 then 5 etc...

i would put down what i've tried but i'm not even close. just as a sketch: i've attempted to have the assignments a couple of ways: for instance do one called quarter and give it a value of 25 but i've also tried naming it quarter and then giving it an expression of "floor (total_change /25)" but then of course, i have no remainder. I'm stumped as to how i'm supposed to get the remainder to go to the next assignment. hope somebody understands this.

the only hints i got on this are to use floor and rem.

tia.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > [raptor] rem and floor functions

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap