piggy bank

Welcome to primes Piggy Bank!
Menu Menu Menu
d: Deposit
w: Withdraw
s: Show total
e: Empty
q: Quit
Please enter choice: d
Number of 5 cents: 2
Number of 10 cents: 1
Number of 50 cents: 0
Number of 1 Euro: 2
Your new total is: 2.20 Euro
Menu Menu Menu
d: Deposit
w: Withdraw
s: Show total
e: Empty
q: Quit
Please enter choice: w
How much would you like to withdraw: 1.25
You will get: 1 ‘One Euro’ coins 2 ’10 Cent’ coins and 1 ‘5 cent’ coin
Your new total is now: 0.95
Menu Menu Menu
d: Deposit
w: Withdraw
s: Show total
e: Empty
q: Quit
Please enter choice: q
Goodbye!
#include <iostream>
using namespace std;

int main() {
char character;
cout << "Welcome to constantinos’s Piggy Bank"<<endl;
cout<<"\nd:deposit";
cout<<"\nw: withdraw";
cout<<"\ns: show total";
cout<<"\ne: empty";
cout<<"\nq: quit";
cout<<"\nplease enter a choice";

cin>>character;


switch (character){
case 'd':
cout<<" Deposit"<<endl;

break;
case'w':
cout<<"withdraw"<<endl;
break;
case's':
cout<<"show total"<<endl;
break;
case 'e':
cout<<"empty"<<endl;
break;
case 'q':
cout<<"quit"<<endl;
break;
default:
cout<<"please enter choice:"<<endl;
break;
}
return 0;
}






help please...
[code] "Your code goes here" [/code]
What is the problem?
i want to make this program as the output
Then you have a lot more work to do. Work on your code some more and post when you have more than a skeletal program with specific questions please.
Topic archived. No new replies allowed.