Question
Nickeled and Dimed. Write a program that allows the user to enter a number of quarters, dimes, and nickels and then outputs the monetary value
Nickeled and Dimed. Write a program that allows the user to enter a number of quarters, dimes, and nickels and then outputs the monetary value of the coins in cents. For example, if the user enters 2 for the number of quarters, 3 for the number of dimes, and 1 for the number of nickels, then the program should output that the coins are worth 85 cents.
This is what I have:
#include
It throws this error:
Given the following was entered from the keyboard: 001 you displayed: Enternumberofquarters,thendimes,thennickels:5 instead of:
Enternumberofquarters,thendims,thennickels:5 (<-What does the arrow mean there?)
What am I doing wrong?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started