Project
Roulette

Dollars To Cents

Converting dollars to cents would enable you to practice your fundamental knowledge of programming.

BeginnerWeb appProductivity3–8hAI-buildable 5/5no setup

Converting dollars to cents would enable you to practice your fundamental knowledge of programming. Loops, if conditions and a simple algorithm will be used. Your task is to let the user input a dollar value (float), assuming that it can also accept extra cents (ex. $2.75), and convert it into an integer (in this case, if $2.75 = 275). After this, convert into coins with the sub-type of dollars: penny, nickel, dime and quarter. Use an algorithm that would divide the dollar value to the four coin types, and output few coins as possible. The challenge: Try this without using any frameworks…

UI
Logic
Useful

Hosting · Free forever

Deploys free on GitHub Pages, Cloudflare Pages or Vercel Hobby.

Deploy it and share a link.

Core features · 2

  • User can enter a dollar value
  • User can see the total cents from the converted dollar value

Once it works

  • User can see how many were pennies, nickels, quarters and dimes from the total cents

Suggested stack

reacttypescripttailwindreact-hook-form

Track it